Skip to content

fix: add a missing assertion chain for the response entity - INS-3917 - #7474

Merged
ihexxa merged 2 commits into
developfrom
fix-response-assert
Jun 3, 2024
Merged

fix: add a missing assertion chain for the response entity - INS-3917#7474
ihexxa merged 2 commits into
developfrom
fix-response-assert

Conversation

@ihexxa

@ihexxa ihexxa commented Jun 3, 2024

Copy link
Copy Markdown
Contributor

Changes

  • Supported negative assertion chain such as insomnia.response.to.not.have.status(200);
  • Added utests
  • Only keep one instance for collectionVariables and baseEnvironment so that operations triggered from different entities will take effect.

Ref: - INS-3917

@ihexxa ihexxa self-assigned this Jun 3, 2024
globals,
environment,
collection: collectionVariables,
collection: baseEnvironment,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is collection accepting environments? If so maybe we should change the name to make more clear

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good catch, it tries to keep one one base environment instance so that operations triggered from variables would also be applied to the base environment.
Let me start another PR to rename them.

@ihexxa
ihexxa enabled auto-merge (squash) June 3, 2024 08:54
@ihexxa
ihexxa merged commit 42cd078 into develop Jun 3, 2024
@ihexxa
ihexxa deleted the fix-response-assert branch June 3, 2024 09:08
@ihexxa ihexxa changed the title fix: add a missing assertion chain for the response entity fix: add a missing assertion chain for the response entity - INS-3917 Jun 4, 2024
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.

4 participants