@@ -8,6 +8,20 @@ Feature: Organizations
88 And a valid "appKeyAuth" key in the system
99 And an instance of "Organizations" API
1010
11+ @generated @skip @team:DataDog/delegated-auth-login
12+ Scenario : Get a SAML configuration returns "Not Found" response
13+ Given new "GetSAMLConfiguration" request
14+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
15+ When the request is sent
16+ Then the response status is 404 Not Found
17+
18+ @generated @skip @team:DataDog/delegated-auth-login
19+ Scenario : Get a SAML configuration returns "OK" response
20+ Given new "GetSAMLConfiguration" request
21+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
22+ When the request is sent
23+ Then the response status is 200 OK
24+
1125 @generated @skip @team:DataDog/org-management
1226 Scenario : Get a specific Org Config value returns "Bad Request" response
1327 Given new "GetOrgConfig" request
@@ -41,12 +55,50 @@ Feature: Organizations
4155 When the request is sent
4256 Then the response status is 200 OK
4357
58+ @generated @skip @team:DataDog/delegated-auth-login
59+ Scenario : List SAML configurations returns "OK" response
60+ Given new "ListSAMLConfigurations" request
61+ When the request is sent
62+ Then the response status is 200 OK
63+
4464 @generated @skip @team:DataDog/org-management
4565 Scenario : List your managed organizations returns "OK" response
4666 Given new "ListOrgs" request
4767 When the request is sent
4868 Then the response status is 200 OK
4969
70+ @generated @skip @team:DataDog/delegated-auth-login
71+ Scenario : Update a SAML configuration returns "Bad Request" response
72+ Given new "UpdateSAMLConfiguration" request
73+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
74+ 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" }}
75+ When the request is sent
76+ Then the response status is 400 Bad Request
77+
78+ @generated @skip @team:DataDog/delegated-auth-login
79+ Scenario : Update a SAML configuration returns "Not Found" response
80+ Given new "UpdateSAMLConfiguration" request
81+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
82+ 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" }}
83+ When the request is sent
84+ Then the response status is 404 Not Found
85+
86+ @generated @skip @team:DataDog/delegated-auth-login
87+ Scenario : Update a SAML configuration returns "OK" response
88+ Given new "UpdateSAMLConfiguration" request
89+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
90+ 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" }}
91+ When the request is sent
92+ Then the response status is 200 OK
93+
94+ @generated @skip @team:DataDog/delegated-auth-login
95+ Scenario : Update a SAML configuration returns "Unprocessable Entity" response
96+ Given new "UpdateSAMLConfiguration" request
97+ And request contains "saml_config_uuid" parameter from "REPLACE.ME"
98+ 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" }}
99+ When the request is sent
100+ Then the response status is 422 Unprocessable Entity
101+
50102 @team:DataDog/org-management
51103 Scenario : Update a specific Org Config returns "Bad Request" response
52104 Given new "UpdateOrgConfig" request
@@ -71,6 +123,30 @@ Feature: Organizations
71123 When the request is sent
72124 Then the response status is 200 OK
73125
126+ @generated @skip @team:DataDog/delegated-auth-login
127+ Scenario : Update organization SAML preferences returns "Bad Request" response
128+ Given operation "UpdateOrgSamlConfigurations" enabled
129+ And new "UpdateOrgSamlConfigurations" request
130+ 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" }}
131+ When the request is sent
132+ Then the response status is 400 Bad Request
133+
134+ @generated @skip @team:DataDog/delegated-auth-login
135+ Scenario : Update organization SAML preferences returns "No Content" response
136+ Given operation "UpdateOrgSamlConfigurations" enabled
137+ And new "UpdateOrgSamlConfigurations" request
138+ 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" }}
139+ When the request is sent
140+ Then the response status is 204 No Content
141+
142+ @generated @skip @team:DataDog/delegated-auth-login
143+ Scenario : Update organization SAML preferences returns "Not Found" response
144+ Given operation "UpdateOrgSamlConfigurations" enabled
145+ And new "UpdateOrgSamlConfigurations" request
146+ 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" }}
147+ When the request is sent
148+ Then the response status is 404 Not Found
149+
74150 @skip-go @skip-java @skip-python @skip-ruby @skip-rust @skip-terraform-config @skip-typescript @skip-validation @team:DataDog/delegated-auth-login
75151 Scenario : Upload IdP metadata returns "Bad Request - caused by either malformed XML or invalid SAML IdP metadata" response
76152 Given new "UploadIdPMetadata" request
0 commit comments