Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "2025-02-04 14:10:05.819748",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:30.937270",
"spec_repo_commit": "9fa25bca"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:05.835266",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-04 19:29:30.953098",
"spec_repo_commit": "9fa25bca"
}
}
}
4 changes: 2 additions & 2 deletions features/v1/authentication.feature
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ Feature: Authentication
Given an instance of "Authentication" API
And new "Validate" request

@skip-validation @team:DataDog/credentials-management
@skip-validation @team:DataDog/credentials-management @team:DataDog/web-frameworks-approvers
Scenario: Validate API key returns "Forbidden" response
When the request is sent
Then the response status is 403 OK

@team:DataDog/credentials-management
@team:DataDog/credentials-management @team:DataDog/web-frameworks-approvers
Scenario: Validate API key returns "OK" response
Given a valid "apiKeyAuth" key in the system
When the request is sent
Expand Down
52 changes: 26 additions & 26 deletions features/v1/aws_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -9,178 +9,178 @@ Feature: AWS Integration
And a valid "appKeyAuth" key in the system
And an instance of "AWSIntegration" API

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Create an AWS integration returns "Bad Request" response
Given new "CreateAWSAccount" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Create an AWS integration returns "Conflict Error" response
Given new "CreateAWSAccount" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 409 Conflict Error

@team:DataDog/aws-integrations
@team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Create an AWS integration returns "OK" response
Given new "CreateAWSAccount" request
And body with value {"account_id": "{{ timestamp("now") }}00", "account_specific_namespace_rules": {"auto_scaling": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Create an Amazon EventBridge source returns "Bad Request" response
Given new "CreateAWSEventBridgeSource" request
And body with value {"account_id": "123456789012", "create_event_bus": true, "event_generator_name": "app-alerts", "region": "us-east-1"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Create an Amazon EventBridge source returns "OK" response
Given new "CreateAWSEventBridgeSource" request
And body with value {"account_id": "123456789012", "create_event_bus": true, "event_generator_name": "app-alerts", "region": "us-east-1"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete a tag filtering entry returns "Bad Request" response
Given new "DeleteAWSTagFilter" request
And body with value {"account_id": "FAKEAC0FAKEAC2FAKEAC", "namespace": "elb"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete a tag filtering entry returns "OK" response
Given new "DeleteAWSTagFilter" request
And body with value {"account_id": "FAKEAC0FAKEAC2FAKEAC", "namespace": "elb"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an AWS integration returns "Bad Request" response
Given new "DeleteAWSAccount" request
And body with value {"account_id": "123456789012", "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an AWS integration returns "Conflict Error" response
Given new "DeleteAWSAccount" request
And body with value {"account_id": "123456789012", "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 409 Conflict Error

@team:DataDog/aws-integrations
@team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an AWS integration returns "OK" response
Given there is a valid "aws_account" in the system
And new "DeleteAWSAccount" request
And body with value {"account_id": "{{ timestamp("now") }}00", "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an Amazon EventBridge source returns "Bad Request" response
Given new "DeleteAWSEventBridgeSource" request
And body with value {"account_id": "123456789012", "event_generator_name": "app-alerts-zyxw3210", "region": "us-east-1"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an Amazon EventBridge source returns "OK" response
Given new "DeleteAWSEventBridgeSource" request
And body with value {"account_id": "123456789012", "event_generator_name": "app-alerts-zyxw3210", "region": "us-east-1"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Generate a new external ID returns "Bad Request" response
Given new "CreateNewAWSExternalID" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Generate a new external ID returns "OK" response
Given new "CreateNewAWSExternalID" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Get all AWS tag filters returns "Bad Request" response
Given new "ListAWSTagFilters" request
And request contains "account_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Get all AWS tag filters returns "OK" response
Given new "ListAWSTagFilters" request
And request contains "account_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Get all Amazon EventBridge sources returns "Bad Request" response
Given new "ListAWSEventBridgeSources" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Get all Amazon EventBridge sources returns "OK" response
Given new "ListAWSEventBridgeSources" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: List all AWS integrations returns "Bad Request" response
Given new "ListAWSAccounts" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: List all AWS integrations returns "OK" response
Given new "ListAWSAccounts" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: List namespace rules returns "OK" response
Given new "ListAvailableAWSNamespaces" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Set an AWS tag filter returns "Bad Request" response
Given new "CreateAWSTagFilter" request
And body with value {"account_id": "123456789012", "namespace": "elb", "tag_filter_str": "prod*"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Set an AWS tag filter returns "OK" response
Given new "CreateAWSTagFilter" request
And body with value {"account_id": "123456789012", "namespace": "elb", "tag_filter_str": "prod*"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Update an AWS integration returns "Bad Request" response
Given new "UpdateAWSAccount" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Update an AWS integration returns "Conflict Error" response
Given new "UpdateAWSAccount" request
And body with value {"account_id": "123456789012", "account_specific_namespace_rules": {"auto_scaling": false, "opswork": false}, "cspm_resource_collection_enabled": true, "excluded_regions": ["us-east-1", "us-west-2"], "extended_resource_collection_enabled": true, "filter_tags": ["$KEY:$VALUE"], "host_tags": ["$KEY:$VALUE"], "metrics_collection_enabled": false, "resource_collection_enabled": true, "role_name": "DatadogAWSIntegrationRole"}
When the request is sent
Then the response status is 409 Conflict Error

@team:DataDog/aws-integrations
@team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Update an AWS integration returns "OK" response
Given there is a valid "aws_account" in the system
And new "UpdateAWSAccount" request
Expand Down
26 changes: 13 additions & 13 deletions features/v1/aws_logs_integration.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,89 +10,89 @@ Feature: AWS Logs Integration
And a valid "appKeyAuth" key in the system
And an instance of "AWSLogsIntegration" API

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Add AWS Log Lambda ARN returns "Bad Request" response
Given new "CreateAWSLambdaARN" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Add AWS Log Lambda ARN returns "OK" response
Given new "CreateAWSLambdaARN" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Check permissions for log services returns "Bad Request" response
Given new "CheckAWSLogsServicesAsync" request
And body with value {"account_id": "1234567", "services": ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"]}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Check permissions for log services returns "OK" response
Given new "CheckAWSLogsServicesAsync" request
And body with value {"account_id": "1234567", "services": ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"]}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Check that an AWS Lambda Function exists returns "Bad Request" response
Given new "CheckAWSLogsLambdaAsync" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Check that an AWS Lambda Function exists returns "OK" response
Given new "CheckAWSLogsLambdaAsync" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an AWS Logs integration returns "Bad Request" response
Given new "DeleteAWSLambdaARN" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Delete an AWS Logs integration returns "OK" response
Given new "DeleteAWSLambdaARN" request
And body with value {"account_id": "1234567", "lambda_arn": "arn:aws:lambda:us-east-1:1234567:function:LogsCollectionAPITest"}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Enable an AWS Logs integration returns "Bad Request" response
Given new "EnableAWSLogServices" request
And body with value {"account_id": "1234567", "services": ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"]}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Enable an AWS Logs integration returns "OK" response
Given new "EnableAWSLogServices" request
And body with value {"account_id": "1234567", "services": ["s3", "elb", "elbv2", "cloudfront", "redshift", "lambda"]}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: Get list of AWS log ready services returns "OK" response
Given new "ListAWSLogsServices" request
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: List all AWS Logs integrations returns "Bad Request" response
Given new "ListAWSLogsIntegrations" request
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/aws-integrations
@generated @skip @team:DataDog/aws-integrations @team:DataDog/web-frameworks-approvers
Scenario: List all AWS Logs integrations returns "OK" response
Given new "ListAWSLogsIntegrations" request
When the request is sent
Expand Down
Loading
Loading