@@ -34,14 +34,14 @@ Feature: GCP Integration
34
34
@generated @skip @team:DataDog/gcp-integrations
35
35
Scenario : Create a new entry for your service account returns "Bad Request" response
36
36
Given new "CreateGCPSTSAccount" request
37
- And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_resource_change_collection_enabled" : true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"type" :
"gcp_service_account" }}
37
+ And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_per_project_quota_enabled" : true, " is_resource_change_collection_enabled": true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"type" :
"gcp_service_account" }}
38
38
When the request is sent
39
39
Then the response status is 400 Bad Request
40
40
41
41
@generated @skip @team:DataDog/gcp-integrations
42
42
Scenario : Create a new entry for your service account returns "Conflict" response
43
43
Given new "CreateGCPSTSAccount" request
44
- And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_resource_change_collection_enabled" : true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"type" :
"gcp_service_account" }}
44
+ And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_per_project_quota_enabled" : true, " is_resource_change_collection_enabled": true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"type" :
"gcp_service_account" }}
45
45
When the request is sent
46
46
Then the response status is 409 Conflict
47
47
@@ -151,15 +151,15 @@ Feature: GCP Integration
151
151
Scenario : Update STS Service Account returns "Bad Request" response
152
152
Given new "UpdateGCPSTSAccount" request
153
153
And request contains "account_id" parameter from "REPLACE.ME"
154
- And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_resource_change_collection_enabled" : true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"id" :
"d291291f-12c2-22g4-j290-123456678897" ,
"type" :
"gcp_service_account" }}
154
+ And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_per_project_quota_enabled" : true, " is_resource_change_collection_enabled": true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"id" :
"d291291f-12c2-22g4-j290-123456678897" ,
"type" :
"gcp_service_account" }}
155
155
When the request is sent
156
156
Then the response status is 400 Bad Request
157
157
158
158
@generated @skip @team:DataDog/gcp-integrations
159
159
Scenario : Update STS Service Account returns "Not Found" response
160
160
Given new "UpdateGCPSTSAccount" request
161
161
And request contains "account_id" parameter from "REPLACE.ME"
162
- And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_resource_change_collection_enabled" : true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"id" :
"d291291f-12c2-22g4-j290-123456678897" ,
"type" :
"gcp_service_account" }}
162
+ And body with value {
"data" : {
"attributes" : {
"account_tags" : [],
"client_email" :
"[email protected] " ,
"cloud_run_revision_filters" : [
"$KEY:$VALUE" ],
"host_filters" : [],
"is_per_project_quota_enabled" : true, " is_resource_change_collection_enabled": true,
"is_security_command_center_enabled" : true,
"metric_namespace_configs" : [{
"disabled" : true,
"id" :
"aiplatform" }]},
"id" :
"d291291f-12c2-22g4-j290-123456678897" ,
"type" :
"gcp_service_account" }}
163
163
When the request is sent
164
164
Then the response status is 404 Not Found
165
165
0 commit comments