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

Metrics: Add restricted and unrestricted certificate tests #13224

Closed
wants to merge 1 commit into from

Conversation

roosterfish
Copy link
Contributor

This precedes #13214 and is in another PR so that we can ensure we don't introduce any regressions with the PR.

Add tests to check the metrics responses for restricted and unrestricted certificates.
Additionally check if the endpoint gets queried using the project parameter as this is producing different results for restricted and unrestricted metrics certificates.

Additionally check the responses if the endpoint gets queried using the project parameter
as this is producing different results for restricted and unrestricted metrics certificates.

Signed-off-by: Julian Pelizäus <julian.pelizaeus@canonical.com>
@roosterfish roosterfish marked this pull request as ready for review March 27, 2024 12:00
@tomponline
Copy link
Member

@roosterfish so the tests are failing - thats expected right? That proves you're testing the issue and now we need to wait for #13214 to be merged and rebase to check it fixes it?

@roosterfish
Copy link
Contributor Author

@roosterfish so the tests are failing - thats expected right?

My plan was that those succeed so that when we merge the other PR see that there wasn't a change in the metrics returned by the API. But looks there is as I wrote the test using the changes from the other PR. Let me check what is the delta here.

@roosterfish roosterfish marked this pull request as draft March 27, 2024 12:56
@roosterfish
Copy link
Contributor Author

It looks that when using a restricted metrics certificate the API currently returns nothing, same as when using OIDC.
I'll move the commit over to #13214 and close this PR.

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.

2 participants