You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/v2/org_groups.feature
+63-15Lines changed: 63 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -12,71 +12,71 @@ Feature: Org Groups
12
12
Scenario: Bulk update org group memberships returns "Bad Request" response
13
13
Given operation "BulkUpdateOrgGroupMemberships" enabled
14
14
And new "BulkUpdateOrgGroupMemberships" request
15
-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
15
+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
16
16
When the request is sent
17
17
Then the response status is 400 Bad Request
18
18
19
19
@generated@skip@team:DataDog/org-management
20
20
Scenario: Bulk update org group memberships returns "Not Found" response
21
21
Given operation "BulkUpdateOrgGroupMemberships" enabled
22
22
And new "BulkUpdateOrgGroupMemberships" request
23
-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
23
+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
24
24
When the request is sent
25
25
Then the response status is 404 Not Found
26
26
27
27
@generated@skip@team:DataDog/org-management
28
28
Scenario: Bulk update org group memberships returns "OK" response
29
29
Given operation "BulkUpdateOrgGroupMemberships" enabled
30
30
And new "BulkUpdateOrgGroupMemberships" request
31
-
And body with value {"data": {"attributes": {"orgs": [{"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
31
+
And body with value {"data": {"attributes": {"orgs": [{"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}]}, "relationships": {"source_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "target_org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_membership_bulk_updates"}}
32
32
When the request is sent
33
33
Then the response status is 200 OK
34
34
35
35
@generated@skip@team:DataDog/org-management
36
36
Scenario: Create an org group policy override returns "Bad Request" response
37
37
Given operation "CreateOrgGroupPolicyOverride" enabled
38
38
And new "CreateOrgGroupPolicyOverride" request
39
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
39
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
40
40
When the request is sent
41
41
Then the response status is 400 Bad Request
42
42
43
43
@generated@skip@team:DataDog/org-management
44
44
Scenario: Create an org group policy override returns "Conflict" response
45
45
Given operation "CreateOrgGroupPolicyOverride" enabled
46
46
And new "CreateOrgGroupPolicyOverride" request
47
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
47
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
48
48
When the request is sent
49
49
Then the response status is 409 Conflict
50
50
51
51
@generated@skip@team:DataDog/org-management
52
52
Scenario: Create an org group policy override returns "Created" response
53
53
Given operation "CreateOrgGroupPolicyOverride" enabled
54
54
And new "CreateOrgGroupPolicyOverride" request
55
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
55
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}, "org_group_policy": {"data": {"id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}}, "type": "org_group_policy_overrides"}}
56
56
When the request is sent
57
57
Then the response status is 201 Created
58
58
59
59
@generated@skip@team:DataDog/org-management
60
60
Scenario: Create an org group policy returns "Bad Request" response
61
61
Given operation "CreateOrgGroupPolicy" enabled
62
62
And new "CreateOrgGroupPolicy" request
63
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
63
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
64
64
When the request is sent
65
65
Then the response status is 400 Bad Request
66
66
67
67
@generated@skip@team:DataDog/org-management
68
68
Scenario: Create an org group policy returns "Conflict" response
69
69
Given operation "CreateOrgGroupPolicy" enabled
70
70
And new "CreateOrgGroupPolicy" request
71
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
71
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
72
72
When the request is sent
73
73
Then the response status is 409 Conflict
74
74
75
75
@generated@skip@team:DataDog/org-management
76
76
Scenario: Create an org group policy returns "Created" response
77
77
Given operation "CreateOrgGroupPolicy" enabled
78
78
And new "CreateOrgGroupPolicy" request
79
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "policy_name": "monitor_timezone"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
79
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT", "policy_name": "monitor_timezone", "policy_type": "org_config"}, "relationships": {"org_group": {"data": {"id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789", "type": "org_groups"}}}, "type": "org_group_policies"}}
80
80
When the request is sent
81
81
Then the response status is 201 Created
82
82
@@ -200,6 +200,54 @@ Feature: Org Groups
200
200
When the request is sent
201
201
Then the response status is 200 OK
202
202
203
+
@generated@skip@team:DataDog/org-management
204
+
Scenario: Get an org group policy override returns "Bad Request" response
205
+
Given operation "GetOrgGroupPolicyOverride" enabled
206
+
And new "GetOrgGroupPolicyOverride" request
207
+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
208
+
When the request is sent
209
+
Then the response status is 400 Bad Request
210
+
211
+
@generated@skip@team:DataDog/org-management
212
+
Scenario: Get an org group policy override returns "Not Found" response
213
+
Given operation "GetOrgGroupPolicyOverride" enabled
214
+
And new "GetOrgGroupPolicyOverride" request
215
+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
216
+
When the request is sent
217
+
Then the response status is 404 Not Found
218
+
219
+
@generated@skip@team:DataDog/org-management
220
+
Scenario: Get an org group policy override returns "OK" response
221
+
Given operation "GetOrgGroupPolicyOverride" enabled
222
+
And new "GetOrgGroupPolicyOverride" request
223
+
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
224
+
When the request is sent
225
+
Then the response status is 200 OK
226
+
227
+
@generated@skip@team:DataDog/org-management
228
+
Scenario: Get an org group policy returns "Bad Request" response
229
+
Given operation "GetOrgGroupPolicy" enabled
230
+
And new "GetOrgGroupPolicy" request
231
+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
232
+
When the request is sent
233
+
Then the response status is 400 Bad Request
234
+
235
+
@generated@skip@team:DataDog/org-management
236
+
Scenario: Get an org group policy returns "Not Found" response
237
+
Given operation "GetOrgGroupPolicy" enabled
238
+
And new "GetOrgGroupPolicy" request
239
+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
240
+
When the request is sent
241
+
Then the response status is 404 Not Found
242
+
243
+
@generated@skip@team:DataDog/org-management
244
+
Scenario: Get an org group policy returns "OK" response
245
+
Given operation "GetOrgGroupPolicy" enabled
246
+
And new "GetOrgGroupPolicy" request
247
+
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
248
+
When the request is sent
249
+
Then the response status is 200 OK
250
+
203
251
@generated@skip@team:DataDog/org-management
204
252
Scenario: Get an org group returns "Bad Request" response
205
253
Given operation "GetOrgGroup" enabled
@@ -323,7 +371,7 @@ Feature: Org Groups
323
371
Given operation "UpdateOrgGroupPolicyOverride" enabled
324
372
And new "UpdateOrgGroupPolicyOverride" request
325
373
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
326
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
374
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
327
375
When the request is sent
328
376
Then the response status is 400 Bad Request
329
377
@@ -332,7 +380,7 @@ Feature: Org Groups
332
380
Given operation "UpdateOrgGroupPolicyOverride" enabled
333
381
And new "UpdateOrgGroupPolicyOverride" request
334
382
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
335
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
383
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
336
384
When the request is sent
337
385
Then the response status is 404 Not Found
338
386
@@ -341,7 +389,7 @@ Feature: Org Groups
341
389
Given operation "UpdateOrgGroupPolicyOverride" enabled
342
390
And new "UpdateOrgGroupPolicyOverride" request
343
391
And request contains "org_group_policy_override_id" parameter from "REPLACE.ME"
344
-
And body with value {"data": {"attributes": {"org_site": "datadoghq.com", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
392
+
And body with value {"data": {"attributes": {"org_site": "us1", "org_uuid": "c3d4e5f6-a7b8-9012-cdef-012345678901"}, "id": "9f8e7d6c-5b4a-3210-fedc-ba0987654321", "type": "org_group_policy_overrides"}}
345
393
When the request is sent
346
394
Then the response status is 200 OK
347
395
@@ -350,7 +398,7 @@ Feature: Org Groups
350
398
Given operation "UpdateOrgGroupPolicy" enabled
351
399
And new "UpdateOrgGroupPolicy" request
352
400
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
353
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
401
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
354
402
When the request is sent
355
403
Then the response status is 400 Bad Request
356
404
@@ -359,7 +407,7 @@ Feature: Org Groups
359
407
Given operation "UpdateOrgGroupPolicy" enabled
360
408
And new "UpdateOrgGroupPolicy" request
361
409
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
362
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
410
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
363
411
When the request is sent
364
412
Then the response status is 404 Not Found
365
413
@@ -368,7 +416,7 @@ Feature: Org Groups
368
416
Given operation "UpdateOrgGroupPolicy" enabled
369
417
And new "UpdateOrgGroupPolicy" request
370
418
And request contains "org_group_policy_id" parameter from "REPLACE.ME"
371
-
And body with value {"data": {"attributes": {"content": {"value": "UTC"}}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
419
+
And body with value {"data": {"attributes": {"content": {"value": "UTC"}, "enforcement_tier": "DEFAULT"}, "id": "1a2b3c4d-5e6f-7890-abcd-ef0123456789", "type": "org_group_policies"}}
0 commit comments