-
Notifications
You must be signed in to change notification settings - Fork 5
APP-1823 - Support dry run in application CLI #62
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
base: main
Are you sure you want to change the base?
Conversation
e490be8 to
44b9838
Compare
| } | ||
|
|
||
| if response.StatusCode != http.StatusCreated { | ||
| // Dry run returns http.StatusOK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After Yuri's PR is merged, let's make sure it's valid also when async == true.
| expectedError: "", | ||
| }, | ||
| { | ||
| name: "success with dry-run (201 Created)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need to test both 200 and 201? Does this request return 201 sometimes?
44b9838 to
51f9bdd
Compare
51f9bdd to
f006882
Compare
mainbranch.go vet ./....go fmt ./....