@@ -697,7 +697,7 @@ func createPolicySet(t *testing.T, client *Client, org *Organization, policies [
697
697
}
698
698
}
699
699
700
- func createPolicySetWithOptions (t * testing.T , client * Client , org * Organization , policies []* Policy , workspaces []* Workspace , opts PolicySetCreateOptions ) (* PolicySet , func ()) {
700
+ func createPolicySetWithOptions (t * testing.T , client * Client , org * Organization , policies []* Policy , workspaces , excludedWorkspace []* Workspace , projects [] * Project , opts PolicySetCreateOptions ) (* PolicySet , func ()) {
701
701
var orgCleanup func ()
702
702
703
703
if org == nil {
@@ -706,11 +706,15 @@ func createPolicySetWithOptions(t *testing.T, client *Client, org *Organization,
706
706
707
707
ctx := context .Background ()
708
708
ps , err := client .PolicySets .Create (ctx , org .Name , PolicySetCreateOptions {
709
- Name : String (randomString (t )),
710
- Policies : policies ,
711
- Workspaces : workspaces ,
712
- Kind : opts .Kind ,
713
- Overridable : opts .Overridable ,
709
+ Name : String (randomString (t )),
710
+ Policies : policies ,
711
+ Workspaces : workspaces ,
712
+ WorkspaceExclusions : excludedWorkspace ,
713
+ Projects : projects ,
714
+ Kind : opts .Kind ,
715
+ Overridable : opts .Overridable ,
716
+ AgentEnabled : opts .AgentEnabled ,
717
+ PolicyToolVersion : opts .PolicyToolVersion ,
714
718
})
715
719
if err != nil {
716
720
t .Fatal (err )
0 commit comments