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

test/suites: Fixes wait_no_operations helper. #12464

Merged

Conversation

markylaing
Copy link
Contributor

The get_operations test is failing for me on main because the result of lxc query /1.0/operations?all-projects=true is empty when there are no operations. If this is a problem with LXD and not just the test please let me know!

@tomponline
Copy link
Member

any ideas why it wasnt failing on github?

@markylaing
Copy link
Contributor Author

any ideas why it wasnt failing on github?

No, I'm quite baffled. Returning nothing if the response is an empty object is very intentional

} else if resp.Metadata != nil && string(resp.Metadata) != "{}" {

and has had this logic since 2017.

Signed-off-by: Mark Laing <mark.laing@canonical.com>
@markylaing markylaing force-pushed the wait-no-operations-empty-response branch from 09760d5 to 84b7512 Compare October 26, 2023 07:32
@tomponline tomponline merged commit 09a882b into canonical:main Oct 27, 2023
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.

5 participants