@@ -45,8 +45,8 @@ func TestPolicySetsList(t *testing.T) {
45
45
46
46
options := PolicySetCreateOptions {
47
47
Kind : Sentinel ,
48
- AgentEnabled : true ,
49
- PolicyToolVersion : sv .Version ,
48
+ AgentEnabled : Bool ( true ) ,
49
+ PolicyToolVersion : String ( sv .Version ) ,
50
50
Overridable : Bool (true ),
51
51
}
52
52
@@ -170,7 +170,7 @@ func TestPolicySetsCreate(t *testing.T) {
170
170
t .Run ("with valid attributes" , func (t * testing.T ) {
171
171
options := PolicySetCreateOptions {
172
172
Name : String (randomString (t )),
173
- PolicyToolVersion : sv .Version ,
173
+ PolicyToolVersion : String ( sv .Version ) ,
174
174
}
175
175
176
176
ps , err := client .PolicySets .Create (ctx , orgTest .Name , options )
@@ -200,8 +200,8 @@ func TestPolicySetsCreate(t *testing.T) {
200
200
options := PolicySetCreateOptions {
201
201
Name : String (randomString (t )),
202
202
Kind : Sentinel ,
203
- AgentEnabled : true ,
204
- PolicyToolVersion : sv .Version ,
203
+ AgentEnabled : Bool ( true ) ,
204
+ PolicyToolVersion : String ( sv .Version ) ,
205
205
}
206
206
207
207
ps , err := client .PolicySets .Create (ctx , orgTest .Name , options )
@@ -218,8 +218,8 @@ func TestPolicySetsCreate(t *testing.T) {
218
218
t .Run ("with pinned policy runtime version and missing kind" , func (t * testing.T ) {
219
219
options := PolicySetCreateOptions {
220
220
Name : String (randomString (t )),
221
- AgentEnabled : true ,
222
- PolicyToolVersion : sv .Version ,
221
+ AgentEnabled : Bool ( true ) ,
222
+ PolicyToolVersion : String ( sv .Version ) ,
223
223
Overridable : Bool (true ),
224
224
}
225
225
ps , err := client .PolicySets .Create (ctx , orgTest .Name , options )
@@ -683,8 +683,8 @@ func TestPolicySetsUpdate(t *testing.T) {
683
683
684
684
options := PolicySetCreateOptions {
685
685
Kind : Sentinel ,
686
- AgentEnabled : true ,
687
- PolicyToolVersion : sv .Version ,
686
+ AgentEnabled : Bool ( true ) ,
687
+ PolicyToolVersion : String ( sv .Version ) ,
688
688
Overridable : Bool (true ),
689
689
}
690
690
@@ -695,7 +695,7 @@ func TestPolicySetsUpdate(t *testing.T) {
695
695
696
696
t .Run ("with valid attributes" , func (t * testing.T ) {
697
697
options := PolicySetUpdateOptions {
698
- AgentEnabled : false ,
698
+ AgentEnabled : Bool ( false ) ,
699
699
Name : String ("global" ),
700
700
Description : String ("Policies in this set will be checked in ALL workspaces!" ),
701
701
Global : Bool (true ),
0 commit comments