Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
1bd7a349
Commit
1bd7a349
authored
Jan 30, 2023
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: instance has project based security group
parent
c6f5025c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
...rtal_components/test.erp5.testSlapOSCloudSecurityGroup.py
+16
-0
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
View file @
1bd7a349
...
@@ -162,6 +162,22 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
...
@@ -162,6 +162,22 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
self
.
assertSameSet
([
'R-INSTANCE'
,
subscription_reference
],
self
.
assertSameSet
([
'R-INSTANCE'
,
subscription_reference
],
user
.
getGroups
())
user
.
getGroups
())
# check project security group
self
.
login
()
project
=
self
.
addProject
()
instance
.
setFollowUpValue
(
project
)
self
.
tic
()
# clear cache in order to reset calculation
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
login
(
user_id
)
user
=
getSecurityManager
().
getUser
()
self
.
assertTrue
(
'Authenticated'
in
user
.
getRoles
())
self
.
assertSameSet
([
'R-INSTANCE'
,
subscription_reference
,
project
.
getReference
(),
'%s_R-INSTANCE'
%
project
.
getReference
()],
user
.
getGroups
())
def
test_inactive
(
self
,
login_portal_type
=
"Certificate Login"
):
def
test_inactive
(
self
,
login_portal_type
=
"Certificate Login"
):
user_id
=
self
.
_generateRandomUniqueUserId
(
self
.
portal_type
)
user_id
=
self
.
_generateRandomUniqueUserId
(
self
.
portal_type
)
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
reference
=
self
.
_generateRandomUniqueReference
(
self
.
portal_type
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment