@@ -36,11 +36,11 @@ func TestPolicySetsList(t *testing.T) {
36
36
Overridable : Bool (true ),
37
37
}
38
38
39
- psTest1 , psTestCleanup1 := createPolicySetWithOptions (t , client , orgTest , nil , []* Workspace {workspace }, []* Workspace {excludedWorkspace }, options )
39
+ psTest1 , psTestCleanup1 := createPolicySetWithOptions (t , client , orgTest , nil , []* Workspace {workspace }, []* Workspace {excludedWorkspace }, nil , options )
40
40
defer psTestCleanup1 ()
41
- psTest2 , psTestCleanup2 := createPolicySetWithOptions (t , client , orgTest , nil , []* Workspace {workspace }, []* Workspace {excludedWorkspace }, options )
41
+ psTest2 , psTestCleanup2 := createPolicySetWithOptions (t , client , orgTest , nil , []* Workspace {workspace }, []* Workspace {excludedWorkspace }, nil , options )
42
42
defer psTestCleanup2 ()
43
- psTest3 , psTestCleanup3 := createPolicySet (t , client , orgTest , nil , []* Workspace {workspace }, nil , OPA )
43
+ psTest3 , psTestCleanup3 := createPolicySet (t , client , orgTest , nil , []* Workspace {workspace }, [] * Workspace { excludedWorkspace }, nil , OPA )
44
44
defer psTestCleanup3 ()
45
45
46
46
t .Run ("without list options" , func (t * testing.T ) {
@@ -105,7 +105,7 @@ func TestPolicySetsList(t *testing.T) {
105
105
Include : []PolicySetIncludeOpt {PolicySetWorkspaceExclusions },
106
106
})
107
107
require .NoError (t , err )
108
- assert .Equal (t , 2 , len (psl .Items ))
108
+ assert .Equal (t , 3 , len (psl .Items ))
109
109
110
110
assert .NotNil (t , psl .Items [0 ].WorkspaceExclusions )
111
111
assert .Equal (t , 1 , len (psl .Items [0 ].WorkspaceExclusions ))
@@ -634,9 +634,9 @@ func TestPolicySetsUpdate(t *testing.T) {
634
634
Overridable : Bool (true ),
635
635
}
636
636
637
- psTest , psTestCleanup := createPolicySetWithOptions (t , client , orgTest , nil , nil , options )
637
+ psTest , psTestCleanup := createPolicySetWithOptions (t , client , orgTest , nil , nil , nil , nil , options )
638
638
defer psTestCleanup ()
639
- psTest2 , psTestCleanup2 := createPolicySet (t , client , orgTest , nil , nil , nil , "opa" )
639
+ psTest2 , psTestCleanup2 := createPolicySet (t , client , orgTest , nil , nil , nil , nil , "opa" )
640
640
defer psTestCleanup2 ()
641
641
642
642
t .Run ("with valid attributes" , func (t * testing.T ) {
0 commit comments