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

[synthetics] Support tunneled multi-step tests #964

Merged

Conversation

Drarig29
Copy link
Contributor

@Drarig29 Drarig29 commented Jul 8, 2023

What and why?

Closes #959

Currently, multi-step tests are forbidden to run in the tunnel but HTTP steps in multi-step tests are now supported.

How?

  • Refactor the checks on step.type and step.subtype into a isTestSupportedByTunnel() utility function.
  • Allow a multi-step test to be tunneled as long as all its steps are http steps.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@Drarig29 Drarig29 requested a review from a team as a code owner July 8, 2023 12:24
@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jul 8, 2023

Datadog Report

Branch report: corentin.girard/SYNTH-10330/support-multi-step-tests-in-tunnel
Commit report: d73a370

datadog-ci-tests: 0 Failed, 0 New Flaky, 675 Passed, 0 Skipped, 1m 12.02s Wall Time

`The tunnel is only supported with HTTP API tests and Browser tests (public ID: ${test.public_id}, type: ${
test.type
}${test.subtype ? `, sub-type: ${test.subtype}` : ''}).`
`The tunnel is only supported with HTTP API tests and Browser tests (${details.join(', ')}).`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kept this error message because a multi-step test is a subtype of API test so in a sense, HTTP steps are HTTP API tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 love it

Copy link
Contributor

@jakepruitt jakepruitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great

`The tunnel is only supported with HTTP API tests and Browser tests (public ID: ${test.public_id}, type: ${
test.type
}${test.subtype ? `, sub-type: ${test.subtype}` : ''}).`
`The tunnel is only supported with HTTP API tests and Browser tests (${details.join(', ')}).`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 love it

@Drarig29 Drarig29 merged commit d5bd3c8 into master Jul 11, 2023
10 checks passed
@Drarig29 Drarig29 deleted the corentin.girard/SYNTH-10330/support-multi-step-tests-in-tunnel branch July 11, 2023 08:53
This was referenced Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow datadog-ci CLI to execute tunneled multi-step API tests
2 participants