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/cloud_authentication.feature
+60-2Lines changed: 60 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,15 +7,73 @@ Feature: Cloud Authentication
7
7
Given a valid "apiKeyAuth" key in the system
8
8
And a valid "appKeyAuth" key in the system
9
9
And an instance of "CloudAuthentication" API
10
-
And operation "ListAWSCloudAuthPersonaMappings" enabled
11
-
And new "ListAWSCloudAuthPersonaMappings" request
10
+
11
+
@generated@skip@team:DataDog/team-aaaauthn
12
+
Scenario: Create an AWS cloud authentication persona mapping returns "Bad Request" response
13
+
Given operation "CreateAWSCloudAuthPersonaMapping" enabled
14
+
And new "CreateAWSCloudAuthPersonaMapping" request
15
+
And body with value {"data": {"attributes": {"account_identifier": "test@test.com", "arn_pattern": "arn:aws:iam::123456789012:user/testuser"}, "type": "aws_cloud_auth_config"}}
16
+
When the request is sent
17
+
Then the response status is 400 Bad Request
18
+
19
+
@generated@skip@team:DataDog/team-aaaauthn
20
+
Scenario: Create an AWS cloud authentication persona mapping returns "Conflict" response
21
+
Given operation "CreateAWSCloudAuthPersonaMapping" enabled
22
+
And new "CreateAWSCloudAuthPersonaMapping" request
23
+
And body with value {"data": {"attributes": {"account_identifier": "test@test.com", "arn_pattern": "arn:aws:iam::123456789012:user/testuser"}, "type": "aws_cloud_auth_config"}}
24
+
When the request is sent
25
+
Then the response status is 409 Conflict
26
+
27
+
@generated@skip@team:DataDog/team-aaaauthn
28
+
Scenario: Create an AWS cloud authentication persona mapping returns "Created" response
29
+
Given operation "CreateAWSCloudAuthPersonaMapping" enabled
30
+
And new "CreateAWSCloudAuthPersonaMapping" request
31
+
And body with value {"data": {"attributes": {"account_identifier": "test@test.com", "arn_pattern": "arn:aws:iam::123456789012:user/testuser"}, "type": "aws_cloud_auth_config"}}
32
+
When the request is sent
33
+
Then the response status is 201 Created
34
+
35
+
@generated@skip@team:DataDog/team-aaaauthn
36
+
Scenario: Delete an AWS cloud authentication persona mapping returns "No Content" response
37
+
Given operation "DeleteAWSCloudAuthPersonaMapping" enabled
38
+
And new "DeleteAWSCloudAuthPersonaMapping" request
39
+
And request contains "persona_mapping_id" parameter from "REPLACE.ME"
40
+
When the request is sent
41
+
Then the response status is 204 No Content
42
+
43
+
@generated@skip@team:DataDog/team-aaaauthn
44
+
Scenario: Delete an AWS cloud authentication persona mapping returns "Not Found" response
45
+
Given operation "DeleteAWSCloudAuthPersonaMapping" enabled
46
+
And new "DeleteAWSCloudAuthPersonaMapping" request
47
+
And request contains "persona_mapping_id" parameter from "REPLACE.ME"
48
+
When the request is sent
49
+
Then the response status is 404 Not Found
50
+
51
+
@generated@skip@team:DataDog/team-aaaauthn
52
+
Scenario: Get an AWS cloud authentication persona mapping returns "Not Found" response
53
+
Given operation "GetAWSCloudAuthPersonaMapping" enabled
54
+
And new "GetAWSCloudAuthPersonaMapping" request
55
+
And request contains "persona_mapping_id" parameter from "REPLACE.ME"
56
+
When the request is sent
57
+
Then the response status is 404 Not Found
58
+
59
+
@generated@skip@team:DataDog/team-aaaauthn
60
+
Scenario: Get an AWS cloud authentication persona mapping returns "OK" response
61
+
Given operation "GetAWSCloudAuthPersonaMapping" enabled
62
+
And new "GetAWSCloudAuthPersonaMapping" request
63
+
And request contains "persona_mapping_id" parameter from "REPLACE.ME"
64
+
When the request is sent
65
+
Then the response status is 200 OK
12
66
13
67
@generated@skip@team:DataDog/team-aaaauthn
14
68
Scenario: List AWS cloud authentication persona mappings returns "Bad Request" response
69
+
Given operation "ListAWSCloudAuthPersonaMappings" enabled
70
+
And new "ListAWSCloudAuthPersonaMappings" request
15
71
When the request is sent
16
72
Then the response status is 400 Bad Request
17
73
18
74
@generated@skip@team:DataDog/team-aaaauthn
19
75
Scenario: List AWS cloud authentication persona mappings returns "OK" response
76
+
Given operation "ListAWSCloudAuthPersonaMappings" enabled
0 commit comments