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
Labels
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
slapos.core
Commits
abac54ed
Commit
abac54ed
authored
Dec 14, 2018
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud: User is only valid after its indexation
This test lacks the use case of same user transaction
parent
de67aec3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
...rtal_components/test.erp5.testSlapOSCloudSecurityGroup.py
+9
-9
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.py
...Item/portal_components/test.erp5.testSlapOSCloudShadow.py
+6
-6
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudSecurityGroup.py
View file @
abac54ed
...
...
@@ -93,7 +93,7 @@ class TestSlapOSComputerSecurity(TestSlapOSSecurityMixin):
computer
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
).
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
None
)
...
...
@@ -112,7 +112,7 @@ class TestSlapOSComputerSecurity(TestSlapOSSecurityMixin):
computer
.
setUserId
(
user_id
)
computer
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
None
)
...
...
@@ -128,7 +128,7 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
instance
.
validate
()
instance
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
).
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
None
)
...
...
@@ -147,7 +147,7 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
reference
=
subscription_reference
)
subscription
.
validate
()
instance
.
setSpecialise
(
subscription
.
getRelativeUrl
())
self
.
commit
()
self
.
tic
()
# clear cache in order to reset calculation
self
.
portal
.
portal_caches
.
clearAllCache
()
...
...
@@ -164,7 +164,7 @@ class TestSlapOSSoftwareInstanceSecurity(TestSlapOSSecurityMixin):
instance
=
self
.
portal
.
getDefaultModule
(
portal_type
=
self
.
portal_type
)
\
.
newContent
(
portal_type
=
self
.
portal_type
,
reference
=
reference
)
instance
.
setUserId
(
user_id
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
None
)
...
...
@@ -183,7 +183,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
person
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
,
password
=
password
).
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
password
)
...
...
@@ -196,7 +196,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
# add to group category
self
.
login
()
person
.
newContent
(
portal_type
=
'Assignment'
,
group
=
'company'
).
open
()
self
.
commit
()
self
.
tic
()
self
.
tic
()
self
.
portal
.
portal_caches
.
clearAllCache
()
...
...
@@ -208,7 +208,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
# add to role category
self
.
login
()
person
.
newContent
(
portal_type
=
'Assignment'
,
role
=
'member'
).
open
()
self
.
commit
()
self
.
tic
()
self
.
portal
.
portal_caches
.
clearAllCache
()
self
.
login
(
person
.
getUserId
())
...
...
@@ -224,7 +224,7 @@ class TestSlapOSPersonSecurity(TestSlapOSSecurityMixin):
person
=
self
.
portal
.
person_module
.
newContent
(
portal_type
=
'Person'
,
reference
=
reference
,
password
=
password
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
password
)
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudShadow.py
View file @
abac54ed
...
...
@@ -45,7 +45,7 @@ class TestSlapOSShadowPerson(TestSlapOSSecurityMixin):
person
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
,
password
=
password
).
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
password
)
...
...
@@ -68,7 +68,7 @@ class TestSlapOSShadowPerson(TestSlapOSSecurityMixin):
portal_type
=
'Person'
)
person
.
setUserId
(
user_id
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
password
)
self
.
_assertUserDoesNotExists
(
shadow_user_id
,
reference
,
None
)
...
...
@@ -88,7 +88,7 @@ class TestSlapOSShadowComputer(TestSlapOSSecurityMixin):
reference
=
reference
).
validate
()
computer
.
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
None
)
self
.
_assertUserExists
(
shadow_user_id
,
reference
,
None
)
...
...
@@ -109,7 +109,7 @@ class TestSlapOSShadowComputer(TestSlapOSSecurityMixin):
reference
=
reference
)
computer
.
setUserId
(
user_id
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
None
)
self
.
_assertUserDoesNotExists
(
user_id
,
shadow_reference
,
None
)
...
...
@@ -128,7 +128,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSSecurityMixin):
instance
.
newContent
(
portal_type
=
'ERP5 Login'
,
reference
=
reference
).
validate
()
instance
.
validate
()
self
.
commit
()
self
.
tic
()
self
.
_assertUserExists
(
user_id
,
reference
,
None
)
self
.
_assertUserExists
(
shadow_user_id
,
reference
,
None
)
...
...
@@ -148,7 +148,7 @@ class TestSlapOSShadowSoftwareInstance(TestSlapOSSecurityMixin):
instance
=
self
.
portal
.
getDefaultModule
(
portal_type
=
self
.
portal_type
)
\
.
newContent
(
portal_type
=
self
.
portal_type
,
reference
=
reference
)
instance
.
setUserId
(
user_id
)
self
.
commit
()
self
.
tic
()
self
.
_assertUserDoesNotExists
(
user_id
,
reference
,
None
)
self
.
_assertUserDoesNotExists
(
user_id
,
shadow_reference
,
None
)
...
...
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