-
Notifications
You must be signed in to change notification settings - Fork 941
API: Add all projects support for network zones (from Incus) #14585
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
API: Add all projects support for network zones (from Incus) #14585
Conversation
2d261ad
to
80b5b3f
Compare
80b5b3f
to
6699a45
Compare
2755a82
to
5376741
Compare
c7a7b9d
to
3ca570e
Compare
@kadinsayani can you rebase please? Also do you still want me to review? |
Sure thing. And yes, please - I'm currently having trouble getting the authorization tests to pass. |
3ca570e
to
ae61f5d
Compare
I'm going to mark this as draft until I have the tests passing, so we can hold off on reviews for now. I've just found this which we may want to include here as well: lxc/incus@9bdeb59. |
7f5223f
to
05fd56a
Compare
0195ba2
to
a3cd378
Compare
Rebased ✅ |
a3cd378
to
ec2e6b6
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.
Do the tests we have here cover the effective project scenarios that were making the permission checks for complicated?
Yes, the tests for fetching network zones across all projects in the auth test suite cover those cases. |
c8d253d
to
d3371eb
Compare
Please rebase to include @minaelee doc fix ta |
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit 41842f2517cbba7e47445520dce5e89102d6b0d1) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit 308834b2d127ca2a42adfee8dc5fc9f18980a036) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit f2864c23250e80d2f057c3e0a70743244005721a) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
…LoadByNameAndProject` fails Since we have already checked permission for a client, don't continue when a network zone fails to load, but rather return an error. Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit 48f3de4b84402faef1741e595292d6d284fd830b) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit 3faef152f823f2321dbba18886403195b7ab18d1) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
Signed-off-by: Mohamed Ilaiwi <[email protected]> (cherry picked from commit f7dc5896def59a6adc8964af0bf10b15e76d9804) Signed-off-by: Kadin Sayani <[email protected]> License: Apache-2.0
Signed-off-by: Kadin Sayani <[email protected]>
…g for network zone test Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
Signed-off-by: Kadin Sayani <[email protected]>
d3371eb
to
85b129b
Compare
Rebased ✅ |
This PR adds support for fetching network zones across all projects.