-
-
Notifications
You must be signed in to change notification settings - Fork 218
[tests] Added multi-tentant tests for shared objects #1024
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
base: master
Are you sure you want to change the base?
Conversation
3bcabf0
to
2d4afea
Compare
.github/workflows/ci.yml
Outdated
@@ -75,6 +75,7 @@ jobs: | |||
pip install -U pip wheel setuptools | |||
pip install -U -r requirements-test.txt | |||
pip install -U -e . | |||
pip install -UI "openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/issues/238-view-shared-objects" |
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.
TODO: Remove before merging
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.
I tried accessing shared objects via REST API and this is what I found:
- Ok:
- Device, Vpn, Credential, IPAM subnet
- Not ok:
- Template: 403
- Ca: 403
- Cert: 403
- Ip address list of a shared subnet, I get 404, eg:
/api/v1/ipam/subnet/{pkl}/ip-address/
When using the admin it becomes evident that we'll need to work on #848 next.
2d4afea
to
73bc66f
Compare
Added migrations to add "view" permissions
b136c1f
to
46c0821
Compare
46c0821
to
c46269f
Compare
@@ -76,6 +76,7 @@ jobs: | |||
pip install -U pip wheel setuptools | |||
pip install -U -r requirements-test.txt | |||
pip install -U -e . | |||
pip install -UI "openwisp-users @ https://github.com/openwisp/openwisp-users/tarball/issues/238-view-shared-objects" "cryptography~=43.0.3" |
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.
Upgrading openwisp-users was installing the latest version of cryptography which is incompatible with django-x509. Thus, pinning the dependency here fixed the CI build.
Checklist
Blockers