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

update(cli-e2e): Add e2e tests for the environment resource #2680

Merged
merged 10 commits into from Jun 7, 2023

Conversation

danielbdias
Copy link
Contributor

@danielbdias danielbdias commented Jun 7, 2023

This PR updates our CLI e2e tests to test the environment resource in more verbs.

Loom: https://www.loom.com/share/3f191e460c83490ba1ddd5301e8016fd

Changes

  • Added more e2e tests
  • Updated CLI e2e README

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@danielbdias danielbdias changed the title Update/cli e2e tests update(cli-e2e): Add e2e tests for the environment resource Jun 7, 2023
@danielbdias danielbdias marked this pull request as ready for review June 7, 2023 19:06
Copy link
Collaborator

@xoscar xoscar left a comment

Choose a reason for hiding this comment

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

Awesome job @danielbdias ! 🔥

@@ -222,6 +222,22 @@ func (resourceClient ResourceClient) List(ctx context.Context, listArgs ListArgs
return nil, fmt.Errorf("could not send request: %w", err)
}

if resp.StatusCode == http.StatusBadRequest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Definitely not the best but we can find a way to include better error handling across the CLI in the future!

@danielbdias danielbdias merged commit 8ffc254 into main Jun 7, 2023
24 checks passed
@danielbdias danielbdias deleted the update/cli-e2e-tests branch June 7, 2023 20:37
mathnogueira pushed a commit that referenced this pull request Jun 13, 2023
* Update environment tests

* Adding more tests to environment

* Updating tests

* Updating tests

* Updating tests and documentation

* Updating list tests

* Adding more test cases

* Updating test timeout to 5 min

* Updating environment list pretty test

* Adding more tests
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.

[CLI improvements] Create integration tests to guarantee that all new commands are working as intended
2 participants