Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing bdd tests. #2236

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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-06 14:59:31.918975",
"spec_repo_commit": "35bc11b5"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-02-04 14:10:05.835266",
"spec_repo_commit": "4fb9047a"
"regenerated": "2025-02-06 14:59:31.934971",
"spec_repo_commit": "35bc11b5"
}
}
}
8 changes: 4 additions & 4 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8695,7 +8695,7 @@ components:
description: Unix timestamp when the deployment finished. It must be in
nanoseconds, milliseconds, or seconds, and it should not be older than
1 hour.
example: 1693491984000000000
example: 1693491984000
format: int64
type: integer
git:
Expand All @@ -8710,7 +8710,7 @@ components:
started_at:
description: Unix timestamp when the deployment started. It must be in nanoseconds,
milliseconds, or seconds.
example: 1693491974000000000
example: 1693491974000
format: int64
type: integer
team:
Expand Down Expand Up @@ -8794,7 +8794,7 @@ components:
finished_at:
description: Unix timestamp when the incident finished. It must be in nanoseconds,
milliseconds, or seconds, and it should not be older than 1 hour.
example: 1693491984000000000
example: 1693491984000
format: int64
type: integer
git:
Expand Down Expand Up @@ -8822,7 +8822,7 @@ components:
started_at:
description: Unix timestamp when the incident started. It must be in nanoseconds,
milliseconds, or seconds.
example: 1693491974000000000
example: 1693491974000
format: int64
type: integer
team:
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions examples/v2/dora-metrics/CreateDORADeployment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
body = DatadogAPIClient::V2::DORADeploymentRequest.new({
data: DatadogAPIClient::V2::DORADeploymentRequestData.new({
attributes: DatadogAPIClient::V2::DORADeploymentRequestAttributes.new({
finished_at: 1693491984000000000,
finished_at: 1693491984000,
git: DatadogAPIClient::V2::DORAGitInfo.new({
commit_sha: "66adc9350f2cc9b250b69abddab733dd55e1a588",
repository_url: "https://github.com/organization/example-repository",
}),
service: "shopist",
started_at: 1693491974000000000,
started_at: 1693491974000,
version: "v1.12.07",
}),
}),
Expand Down
4 changes: 2 additions & 2 deletions examples/v2/dora-metrics/CreateDORAIncident.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
body = DatadogAPIClient::V2::DORAIncidentRequest.new({
data: DatadogAPIClient::V2::DORAIncidentRequestData.new({
attributes: DatadogAPIClient::V2::DORAIncidentRequestAttributes.new({
finished_at: 1707842944600000000,
finished_at: 17078429446000,
git: DatadogAPIClient::V2::DORAGitInfo.new({
commit_sha: "66adc9350f2cc9b250b69abddab733dd55e1a588",
repository_url: "https://github.com/organization/example-repository",
Expand All @@ -19,7 +19,7 @@
"shopist",
],
severity: "High",
started_at: 1707842944500000000,
started_at: 17078429445000,
team: "backend",
version: "v1.12.07",
}),
Expand Down
8 changes: 4 additions & 4 deletions features/v2/dora_metrics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Feature: DORA Metrics
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
Given operation "CreateDORADeployment" enabled
And new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:Datadog/ci-app-backend
Scenario: Send a deployment event for DORA Metrics returns "OK" response
Given operation "CreateDORADeployment" enabled
And new "CreateDORADeployment" request
And body with value {"data": {"attributes": {"finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "version": "v1.12.07"}}}
And body with value {"data": {"attributes": {"finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000, "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK

Expand All @@ -44,14 +44,14 @@ Feature: DORA Metrics
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
Given operation "CreateDORAIncident" enabled
And new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 202 OK - but delayed due to incident

@replay-only @team:Datadog/ci-app-backend
Scenario: Send an incident event for DORA Metrics returns "OK" response
Given operation "CreateDORAIncident" enabled
And new "CreateDORAIncident" request
And body with value {"data": {"attributes": {"finished_at": 1707842944600000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 1707842944500000000, "team": "backend", "version": "v1.12.07"}}}
And body with value {"data": {"attributes": {"finished_at": 17078429446000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests", "services": ["shopist"], "severity": "High", "started_at": 17078429445000, "team": "backend", "version": "v1.12.07"}}}
When the request is sent
Then the response status is 200 OK
Loading