Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
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
Paul Graydon
wendelin-telecom
Commits
068abf1d
Commit
068abf1d
authored
Oct 21, 2024
by
Paul Graydon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wendelin_telecom_test: Update tests
parent
d3fead90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
bt5/wendelin_telecom_test/TestTemplateItem/portal_components/test.erp5.testWendelinTelecom.py
...teItem/portal_components/test.erp5.testWendelinTelecom.py
+7
-4
No files found.
bt5/wendelin_telecom_test/TestTemplateItem/portal_components/test.erp5.testWendelinTelecom.py
View file @
068abf1d
...
...
@@ -730,18 +730,16 @@ class WendelinTelecomTest(SecurityTestCase):
check that different users have the correct permissions according to their function and project.
'''
# Setup two di
stinc
t projects with one linked ORS each
# Setup two di
fferen
t projects with one linked ORS each
project_a_item_dict
=
self
.
registerOrsClientProject
()
ors_a_item_dict
=
self
.
registerOrs
()
ors_a_tag
=
ors_a_item_dict
[
'data_acquisition_unit'
].
getReference
()
ors_a_item_dict
[
'data_supply'
].
setDestinationProject
(
project_a_item_dict
[
'project'
].
getRelativeUrl
())
project_b_item_dict
=
self
.
registerOrsClientProject
()
ors_b_item_dict
=
self
.
registerOrs
()
ors_b_tag
=
ors_b_item_dict
[
'data_acquisition_unit'
].
getReference
()
ors_b_item_dict
[
'data_supply'
].
setDestinationProject
(
project_b_item_dict
[
'project'
].
getRelativeUrl
())
# Register a third ORS
without linking it
to a project
# Register a third ORS
that will not be linked
to a project
ors_n_item_dict
=
self
.
registerOrs
()
ors_n_tag
=
ors_n_item_dict
[
'data_acquisition_unit'
].
getReference
()
...
...
@@ -762,6 +760,11 @@ class WendelinTelecomTest(SecurityTestCase):
stop_data_analysis
=
True
)
# Link the first two ORSs to their project AFTER the ingestion
# To check that project propagation on ingestion objects works correctly
ors_a_item_dict
[
'data_supply'
].
setDestinationProject
(
project_a_item_dict
[
'project'
].
getRelativeUrl
())
ors_b_item_dict
[
'data_supply'
].
setDestinationProject
(
project_b_item_dict
[
'project'
].
getRelativeUrl
())
# Create a client user not associated to a project
client_user_n
=
self
.
createWendelinTelecomUser
(
'test_user_%s'
%
generateRandomString
(),
None
,
'user'
)
...
...
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