-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathorganizations.feature
More file actions
96 lines (83 loc) · 5.21 KB
/
organizations.feature
File metadata and controls
96 lines (83 loc) · 5.21 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
@endpoint(organizations) @endpoint(organizations-v1)
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/org-management
Scenario: Create a child organization returns "Bad Request" response
Given new "CreateChildOrg" request
And body with value {"billing": {"type": "parent_billing"}, "name": "New child org", "subscription": {"type": "pro"}}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/org-management
Scenario: Create a child organization returns "OK" response
Given new "CreateChildOrg" request
And body with value {"billing": {"type": "parent_billing"}, "name": "New child org", "subscription": {"type": "pro"}}
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: Get organization information returns "Bad Request" response
Given new "GetOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/org-management
Scenario: Get organization information returns "OK" response
Given new "GetOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
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/org-management
Scenario: Spin-off Child Organization returns "Bad Request" response
Given new "DowngradeOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/org-management
Scenario: Spin-off Child Organization returns "OK" response
Given new "DowngradeOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: Update your organization returns "Bad Request" response
Given new "UpdateOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"billing": {"type": "parent_billing"}, "description": "some description", "name": "New child org", "public_id": "abcdef12345", "settings": {"private_widget_share": false, "saml": {"enabled": false}, "saml_autocreate_access_role": "ro", "saml_autocreate_users_domains": {"domains": ["example.com"], "enabled": false}, "saml_can_be_enabled": false, "saml_idp_endpoint": "https://my.saml.endpoint", "saml_idp_initiated_login": {"enabled": false}, "saml_idp_metadata_uploaded": false, "saml_login_url": "https://my.saml.login.url", "saml_strict_mode": {"enabled": false}}, "subscription": {"type": "pro"}, "trial": false}
When the request is sent
Then the response status is 400 Bad Request
@generated @skip @team:DataDog/org-management
Scenario: Update your organization returns "OK" response
Given new "UpdateOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
And body with value {"billing": {"type": "parent_billing"}, "description": "some description", "name": "New child org", "public_id": "abcdef12345", "settings": {"private_widget_share": false, "saml": {"enabled": false}, "saml_autocreate_access_role": "ro", "saml_autocreate_users_domains": {"domains": ["example.com"], "enabled": false}, "saml_can_be_enabled": false, "saml_idp_endpoint": "https://my.saml.endpoint", "saml_idp_initiated_login": {"enabled": false}, "saml_idp_metadata_uploaded": false, "saml_login_url": "https://my.saml.login.url", "saml_strict_mode": {"enabled": false}}, "subscription": {"type": "pro"}, "trial": false}
When the request is sent
Then the response status is 200 OK
@skip @team:DataDog/org-management
Scenario: Upload IdP metadata returns "Bad Request" response
Given new "UploadIdPForOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
And request contains "idp_file" parameter with value "./idp_metadata_invalid.xml"
When the request is sent
Then the response status is 400 Bad Request
@skip @team:DataDog/org-management
Scenario: Upload IdP metadata returns "OK" response
Given new "UploadIdPForOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
And request contains "idp_file" parameter with value "./idp_metadata.xml"
When the request is sent
Then the response status is 200 OK
@generated @skip @team:DataDog/org-management
Scenario: Upload IdP metadata returns "Unsupported Media Type" response
Given new "UploadIdPForOrg" request
And request contains "public_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 415 Unsupported Media Type