Skip to content

Commit

Permalink
Regenerate client from commit fc2d395a of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Oct 21, 2024
1 parent 7bdbd7b commit 48e4e70
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-18 21:00:50.939199",
"spec_repo_commit": "37070fd4"
"regenerated": "2024-10-21 20:41:36.840088",
"spec_repo_commit": "fc2d395a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-18 21:00:50.957619",
"spec_repo_commit": "37070fd4"
"regenerated": "2024-10-21 20:41:36.857969",
"spec_repo_commit": "fc2d395a"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a GCP integration returns "OK" response
Given new "CreateGCPIntegration" request
And body with value {"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "client_email": "{{unique_hash}}@example.com", "client_id": "{{ timestamp("now") }}{{ timestamp("now") }}0", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/$CLIENT_EMAIL", "host_filters": "key:value,filter:example", "cloud_run_revision_filters": ["dr:dre"], "is_cspm_enabled": true, "is_security_command_center_enabled": true, "is_resource_change_collection_enabled": true, "private_key": "private_key", "private_key_id": "123456789abcdefghi123456789abcdefghijklm", "project_id": "datadog-apitest", "resource_collection_enabled": true, "token_uri": "https://accounts.google.com/o/oauth2/token", "type": "service_account"}
Expand All @@ -31,7 +31,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Delete a GCP integration returns "OK" response
Given there is a valid "gcp_account" in the system
And new "DeleteGCPIntegration" request
Expand All @@ -45,13 +45,13 @@ Feature: GCP Integration
When the request is sent
Then the response status is 400 Bad Request

@skip-terraform-config @team:DataDog/gcp-integrations
@skip @skip-terraform-config @team:DataDog/gcp-integrations
Scenario: List all GCP integrations returns "OK" response
Given new "ListGCPIntegration" request
When the request is sent
Then the response status is 200 OK

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Update a GCP integration cloud run revision filters returns "OK" response
Given there is a valid "gcp_account" in the system
And new "UpdateGCPIntegration" request
Expand All @@ -66,7 +66,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Update a GCP integration returns "OK" response
Given there is a valid "gcp_account" in the system
And new "UpdateGCPIntegration" request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 409 Conflict

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account returns "OK" response
Given new "CreateGCPSTSAccount" request
And body with value {"data": {"attributes": {"client_email": "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com", "host_filters": []}, "type": "gcp_service_account"}}
Expand All @@ -54,7 +54,7 @@ Feature: GCP Integration
And the response "data.type" is equal to "gcp_service_account"
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with account_tags returns "OK" response
Given new "CreateGCPSTSAccount" request
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"}}
Expand All @@ -64,7 +64,7 @@ Feature: GCP Integration
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
And the response "data.attributes.account_tags" is equal to ["lorem", "ipsum"]

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with cloud run revision filters enabled returns "OK" response
Given new "CreateGCPSTSAccount" request
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"}}
Expand All @@ -74,7 +74,7 @@ Feature: GCP Integration
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
And the response "data.attributes.cloud_run_revision_filters" is equal to ["meh:bleh"]

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with cspm enabled returns "OK" response
Given new "CreateGCPSTSAccount" request
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"}}
Expand All @@ -84,14 +84,14 @@ Feature: GCP Integration
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
And the response "data.attributes.is_cspm_enabled" is equal to true

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with resource collection enabled disabled and cspm enabled returns "Bad Request" response
Given new "CreateGCPSTSAccount" request
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"}}
When the request is sent
Then the response status is 400 Bad Request

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with resource collection enabled returns "OK" response
Given new "CreateGCPSTSAccount" request
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"}}
Expand All @@ -101,7 +101,7 @@ Feature: GCP Integration
And the response "data.attributes.client_email" is equal to "Test-{{ unique_hash }}@test-project.iam.gserviceaccount.com"
And the response "data.attributes.resource_collection_enabled" is equal to true

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Create a new entry for your service account with security command center enabled returns "OK" response
Given new "CreateGCPSTSAccount" request
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"}}
Expand Down Expand Up @@ -132,15 +132,15 @@ Feature: GCP Integration
When the request is sent
Then the response status is 404 Not Found

@skip-terraform-config @team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: List all GCP STS-enabled service accounts returns "OK" response
Given there is a valid "gcp_sts_account" in the system
And new "ListGCPSTSAccounts" request
When the request is sent
Then the response status is 200 OK
And the response "data" has item with field "type" with value "gcp_service_account"

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: List delegate account returns "OK" response
Given new "GetGCPSTSDelegate" request
When the request is sent
Expand All @@ -163,7 +163,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 404 Not Found

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Update STS Service Account returns "OK" response
Given there is a valid "gcp_sts_account" in the system
And new "UpdateGCPSTSAccount" request
Expand All @@ -172,7 +172,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 201 OK

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Update STS Service Account returns "OK" response with cloud run revision filters
Given there is a valid "gcp_sts_account" in the system
And new "UpdateGCPSTSAccount" request
Expand All @@ -181,7 +181,7 @@ Feature: GCP Integration
When the request is sent
Then the response status is 201 OK

@team:DataDog/gcp-integrations
@skip @team:DataDog/gcp-integrations
Scenario: Update STS Service Account returns "OK" response with enable resource collection turned on
Given there is a valid "gcp_sts_account" in the system
And new "UpdateGCPSTSAccount" request
Expand Down

0 comments on commit 48e4e70

Please sign in to comment.