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: tests/scenarios/features/v2/gcp_integration.feature
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ Feature: GCP Integration
45
45
When the request is sent
46
46
Then the response status is 409 Conflict
47
47
48
-
@replay-only@team:DataDog/gcp-integrations
48
+
@team:DataDog/gcp-integrations
49
49
Scenario: Create a new entry for your service account returns "OK" response
50
50
Given new "CreateGCPSTSAccount" request
51
51
And body with value {"data": {"attributes": {"client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
@@ -54,7 +54,7 @@ Feature: GCP Integration
54
54
And the response "data.type" is equal to "gcp_service_account"
55
55
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
56
56
57
-
@replay-only@team:DataDog/gcp-integrations
57
+
@team:DataDog/gcp-integrations
58
58
Scenario: Create a new entry for your service account with account_tags returns "OK" response
59
59
Given new "CreateGCPSTSAccount" request
60
60
And body with value {"data": {"attributes": {"account_tags": ["lorem", "ipsum"], "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
@@ -64,7 +64,7 @@ Feature: GCP Integration
64
64
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
65
65
And the response "data.attributes.account_tags" is equal to ["lorem", "ipsum"]
66
66
67
-
@replay-only@team:DataDog/gcp-integrations
67
+
@team:DataDog/gcp-integrations
68
68
Scenario: Create a new entry for your service account with cloud run revision filters enabled returns "OK" response
69
69
Given new "CreateGCPSTSAccount" request
70
70
And body with value {"data": {"attributes": {"cloud_run_revision_filters": ["meh:bleh"], "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
@@ -74,7 +74,7 @@ Feature: GCP Integration
74
74
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
75
75
And the response "data.attributes.cloud_run_revision_filters" is equal to ["meh:bleh"]
76
76
77
-
@replay-only@team:DataDog/gcp-integrations
77
+
@team:DataDog/gcp-integrations
78
78
Scenario: Create a new entry for your service account with cspm enabled returns "OK" response
79
79
Given new "CreateGCPSTSAccount" request
80
80
And body with value {"data": {"attributes": {"is_cspm_enabled": true, "resource_collection_enabled": true, "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
@@ -84,14 +84,14 @@ Feature: GCP Integration
84
84
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
85
85
And the response "data.attributes.is_cspm_enabled" is equal to true
86
86
87
-
@replay-only@team:DataDog/gcp-integrations
87
+
@team:DataDog/gcp-integrations
88
88
Scenario: Create a new entry for your service account with resource collection enabled disabled and cspm enabled returns "Bad Request" response
89
89
Given new "CreateGCPSTSAccount" request
90
90
And body with value {"data": {"attributes": {"resource_collection_enabled": false, "is_cspm_enabled": true, "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
91
91
When the request is sent
92
92
Then the response status is 400 Bad Request
93
93
94
-
@replay-only@team:DataDog/gcp-integrations
94
+
@team:DataDog/gcp-integrations
95
95
Scenario: Create a new entry for your service account with resource collection enabled returns "OK" response
96
96
Given new "CreateGCPSTSAccount" request
97
97
And body with value {"data": {"attributes": {"resource_collection_enabled": true, "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
@@ -101,7 +101,7 @@ Feature: GCP Integration
101
101
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
102
102
And the response "data.attributes.resource_collection_enabled" is equal to true
103
103
104
-
@replay-only@team:DataDog/gcp-integrations
104
+
@team:DataDog/gcp-integrations
105
105
Scenario: Create a new entry for your service account with security command center enabled returns "OK" response
106
106
Given new "CreateGCPSTSAccount" request
107
107
And body with value {"data": {"attributes": {"is_security_command_center_enabled": true, "is_resource_change_collection_enabled": true, "client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
0 commit comments