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

[MAINTENANCE] create Checkpoint endpoint contract test #8882

Closed

Conversation

josectobar
Copy link
Member

@josectobar josectobar commented Oct 27, 2023

Add contract test for creating a Checkpoint in Cloud REST endpoint

  • Description of PR changes above includes a link to an existing GitHub issue
  • PR title is prefixed with one of: [BUGFIX], [FEATURE], [DOCS], [MAINTENANCE], [CONTRIB]
  • Code is linted - run invoke lint (uses black + ruff)
  • Appropriate tests and docs have been updated

For more information about contributing, see Contribute.

After you submit your PR, keep the page open and monitor the statuses of the various checks made by our continuous integration process at the bottom of the page. Please fix any issues that come up and reach out on Slack if you need help. Thanks for contributing!

@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for niobium-lead-7998 canceled.

Name Link
🔨 Latest commit 128796b
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/65451fa17a3b6e0008c601ec

@github-actions github-actions bot added the core label Oct 27, 2023
@ghost
Copy link

ghost commented Oct 27, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@josectobar josectobar force-pushed the PP-779-api-context-add-checkpoint-contract-test branch from 5f06e52 to 22d293b Compare October 28, 2023 00:16
@josectobar josectobar changed the title Add checkpoint put contract test [MAINTENANCE] create Checkpoint endpoint contract test Oct 28, 2023
@josectobar josectobar marked this pull request as ready for review October 28, 2023 00:18
@josectobar josectobar force-pushed the PP-779-api-context-add-checkpoint-contract-test branch from 970ea3b to 9a98a4a Compare October 28, 2023 00:23
"contract_interaction",
[
ContractInteraction(
method="POST",
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you testing the PUT or the POST? This request_path makes sense with the POST, but the request_body references PUT. Maybe you tried both.

),
request_body=PUT_CHECKPOINTS_MIN_REQUEST_BODY,
upon_receiving="a request to create a Checkpoint",
given="the Checkpoint is created",
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the given state here is supposed to be "the Checkpoint does not exist".

@NathanFarmer
Copy link
Contributor

These tests are no longer being added. Hopefully we can add more contract tests with the V1 API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants