-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathorganizations.feature
More file actions
182 lines (157 loc) · 9.74 KB
/
Copy pathorganizations.feature
File metadata and controls
182 lines (157 loc) · 9.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
@endpoint(organizations) @endpoint(organizations-v2)
Feature: Organizations
Create, edit, and manage your organizations. Read more about [multi-org ac
counts](https://docs.datadoghq.com/account_management/multi_organization).
Background:
Given a valid "apiKeyAuth" key in the system
And a valid "appKeyAuth" key in the system
And an instance of "Organizations" API
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Get a SAML configuration returns "Not Found" response
Given new "GetSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Get a SAML configuration returns "OK" response
Given new "GetSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: Get a specific Org Config value returns "Bad Request" response
Given new "GetOrgConfig" request
And request contains "org_config_name" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@team:DataDog/org-management
Scenario: Get a specific Org Config value returns "Not Found" response
Given new "GetOrgConfig" request
And request contains "org_config_name" parameter with value "i_dont_exist"
When the request is sent
Then the response status is 404 Not Found
@team:DataDog/org-management
Scenario: Get a specific Org Config value returns "OK" response
Given new "GetOrgConfig" request
And request contains "org_config_name" parameter with value "custom_roles"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: List Org Configs returns "Bad Request" response
Given new "ListOrgConfigs" request
When the request is sent
Then the response status is 400 Bad Request
@team:DataDog/org-management
Scenario: List Org Configs returns "OK" response
Given new "ListOrgConfigs" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/delegated-auth-login
Scenario: List SAML configurations returns "OK" response
Given new "ListSAMLConfigurations" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: List your managed organizations returns "OK" response
Given new "ListOrgs" request
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update a SAML configuration returns "Bad Request" response
Given new "UpdateSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"idp_initiated": true, "jit_domains": ["example.com"]}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"default_roles": {"data": [{"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "type": "roles"}]}}, "type": "saml_configurations"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update a SAML configuration returns "Not Found" response
Given new "UpdateSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"idp_initiated": true, "jit_domains": ["example.com"]}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"default_roles": {"data": [{"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "type": "roles"}]}}, "type": "saml_configurations"}}
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update a SAML configuration returns "OK" response
Given new "UpdateSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"idp_initiated": true, "jit_domains": ["example.com"]}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"default_roles": {"data": [{"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "type": "roles"}]}}, "type": "saml_configurations"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update a SAML configuration returns "Unprocessable Entity" response
Given new "UpdateSAMLConfiguration" request
And request contains "saml_config_uuid" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"idp_initiated": true, "jit_domains": ["example.com"]}, "id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "relationships": {"default_roles": {"data": [{"id": "3653d3c6-0c75-11ea-ad28-fb5701eabc7d", "type": "roles"}]}}, "type": "saml_configurations"}}
When the request is sent
Then the response status is 422 Unprocessable Entity
@team:DataDog/org-management
Scenario: Update a specific Org Config returns "Bad Request" response
Given new "UpdateOrgConfig" request
And request contains "org_config_name" parameter with value "custom_roles"
And body with value {"data": {"attributes": {"value": "not-a-boolean"}, "type": "org_configs"}}
When the request is sent
Then the response status is 400 Bad Request
@team:DataDog/org-management
Scenario: Update a specific Org Config returns "Not Found" response
Given new "UpdateOrgConfig" request
And request contains "org_config_name" parameter with value "i_dont_exist"
And body with value {"data": {"attributes": {"value": []}, "type": "org_configs"}}
When the request is sent
Then the response status is 404 Not Found
@team:DataDog/org-management
Scenario: Update a specific Org Config returns "OK" response
Given new "UpdateOrgConfig" request
And request contains "org_config_name" parameter with value "monitor_timezone"
And body with value {"data": {"attributes": {"value": "UTC"}, "type": "org_configs"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update organization SAML preferences returns "Bad Request" response
Given operation "UpdateOrgSamlConfigurations" enabled
And new "UpdateOrgSamlConfigurations" request
And body with value {"data": {"attributes": {"default_role_uuids": ["8dd1cf3c-0c75-11ea-ad28-fb5701eabc7d"], "jit_domains": ["example.com"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "saml_preferences"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update organization SAML preferences returns "No Content" response
Given operation "UpdateOrgSamlConfigurations" enabled
And new "UpdateOrgSamlConfigurations" request
And body with value {"data": {"attributes": {"default_role_uuids": ["8dd1cf3c-0c75-11ea-ad28-fb5701eabc7d"], "jit_domains": ["example.com"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "saml_preferences"}}
When the request is sent
Then the response status is 204 No Content
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update organization SAML preferences returns "Not Found" response
Given operation "UpdateOrgSamlConfigurations" enabled
And new "UpdateOrgSamlConfigurations" request
And body with value {"data": {"attributes": {"default_role_uuids": ["8dd1cf3c-0c75-11ea-ad28-fb5701eabc7d"], "jit_domains": ["example.com"]}, "id": "00000000-0000-0000-0000-000000000000", "type": "saml_preferences"}}
When the request is sent
Then the response status is 404 Not Found
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update the maximum session duration returns "Bad Request" response
Given new "UpdateLoginOrgConfigsMaxSessionDuration" request
And body with value {"data": {"attributes": {"max_session_duration": 604800}, "type": "max_session_duration"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Update the maximum session duration returns "No Content" response
Given new "UpdateLoginOrgConfigsMaxSessionDuration" request
And body with value {"data": {"attributes": {"max_session_duration": 604800}, "type": "max_session_duration"}}
When the request is sent
Then the response status is 204 No Content
@skip-go @skip-java @skip-python @skip-ruby @skip-rust @skip-terraform-config @skip-typescript @skip-validation @team:DataDog/delegated-auth-login
Scenario: Upload IdP metadata returns "Bad Request - caused by either malformed XML or invalid SAML IdP metadata" response
Given new "UploadIdPMetadata" request
And request contains "idp_file" parameter with value "fixtures/organizations/saml_configurations/invalid_idp_metadata.xml"
When the request is sent
Then the response status is 400 Bad Request - caused by either malformed XML or invalid SAML IdP metadata
@generated @skip @team:DataDog/delegated-auth-login
Scenario: Upload IdP metadata returns "Bad Request" response
Given new "UploadIdPMetadata" request
When the request is sent
Then the response status is 400 Bad Request
@integration-only @skip-terraform-config @skip-validation @team:DataDog/delegated-auth-login
Scenario: Upload IdP metadata returns "OK" response
Given new "UploadIdPMetadata" request
And request contains "idp_file" parameter with value "fixtures/organizations/saml_configurations/valid_idp_metadata.xml"
When the request is sent
Then the response status is 200 OK