-
Notifications
You must be signed in to change notification settings - Fork 75
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
u.pro.services.dependencies.v1 #2961
Conversation
🌎 This PR changes translatable messages. 🌏 Please select which scenarios apply. For further explanation, please read our policy on message changes.
|
Jira: This PR is not related to a Jira item. (The PR title does not include a SC-#### reference) GitHub Issues: No GitHub issues are fixed by this PR. (No commits have Fixes: #### references) Launchpad Bugs: No Launchpad bugs are fixed by this PR. (No commits have LP: #### references) Documentation: Documentation changes addressed in #2962 👍 this comment to confirm that this is correct. |
df20893
to
e8dc51d
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.
Even though we are already testing this on the new integration test, I think we should also add the new endpoint here:
https://github.com/canonical/ubuntu-pro-client/blob/main/features/api.feature#L3
Just for consistency reasons
This message is a detail of the stdlib and could change and it doesn't matter to us. The important thing that this test is testing is that base.UAEntitlement cannot be instantiated itself and will raise a TypeError.
This endpoint will return a full list of all service dependencies, regardless of the current system state. That means it will always return the same thing, until new services are added, or if we add/remove dependencies between services.
8fe9541
to
11764e2
Compare
@lucasmoura great catch! added! |
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.
LGTM
I honestly am sad about the EntitlementWithMessage
name, but I have no better idea to suggest so
Why is this needed?
This is part two of prep for the enable api. This introduces the dependencies endpoint as described in the spec.
Test Steps
New tests should pass
Checklist
Does this PR require extra reviews?