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
19
Merge Requests
19
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
9d39b815
Commit
9d39b815
authored
Jan 16, 2024
by
Titouan Soulard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format: update tests after
09d2ca06
parent
5140ec99
Pipeline
#32206
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
slapos/tests/test_slapformat.py
slapos/tests/test_slapformat.py
+5
-5
No files found.
slapos/tests/test_slapformat.py
View file @
9d39b815
...
...
@@ -822,7 +822,7 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '
\
'
doesnotexistsyet -r
'
,
'
-r doesnotexistsyet
'
,
'passwd -l doesnotexistsyet'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -835,8 +835,8 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -G '
\
'additionalgroup1,additionalgroup2 doesnotexistsyet
-r
'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -
r -
G '
\
'additionalgroup1,additionalgroup2 doesnotexistsyet'
,
'passwd -l doesnotexistsyet'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -849,7 +849,7 @@ class TestUser(SlapformatMixin):
user
.
create
()
self
.
assertEqual
([
'useradd -d /testuser -g testuser -s /bin/sh
testuser -
r'
,
'useradd -d /testuser -g testuser -s /bin/sh
-r testuse
r'
,
'passwd -l testuser'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -864,7 +864,7 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd testuser'
,
'usermod -d /testuser -g testuser -s /bin/sh -G '
\
'usermod -d /testuser -g testuser -s /bin/sh -
a
G '
\
'additionalgroup1,additionalgroup2 testuser'
,
'passwd -l testuser'
],
...
...
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