-
Notifications
You must be signed in to change notification settings - Fork 255
Recreate deleted k6 resources #2173
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
Conversation
In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. |
2338b21
to
371f96c
Compare
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.
Looks good, thanks @fornfrey!
I think it could be a very nice idea to try to write a test that:
- Loads a config directory, with a given resource (and so it creates it)
- Use the Go client/direct HTTP request to remove it.
- Try to reload the configuration, and see how it behaves (no error).
However, I'm not sure how easy that would be, and if there's any similar test for any other resource within the provider. If so, and it's easy to copy and adjust, I'd try it, if not, feel free to merge it as-is! We could look at it later.
Thanks! 🙌🏻
script, httpResp, err := scriptReq.Execute() | ||
|
||
if httpResp != nil && httpResp.StatusCode == http.StatusNotFound { | ||
// 404 response from the script endpoin for an existing test means that the script is undefined |
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.
// 404 response from the script endpoin for an existing test means that the script is undefined | |
// 404 response from the script endpoint for an existing test means that the script is undefined |
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.
Thanks for fix the cloud tests 😃
Uh oh!
There was an error while loading. Please reload this page.