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
0
Merge Requests
0
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
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
Changes
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