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
0
Merge Requests
0
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
Rafael Monnerat
slapos.core
Commits
deb6e8c4
Commit
deb6e8c4
authored
Sep 28, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
0b03cb0a
a5f54eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
slapos/tests/slapformat.py
slapos/tests/slapformat.py
+15
-9
No files found.
slapos/tests/slapformat.py
View file @
deb6e8c4
...
...
@@ -636,8 +636,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet '
\
'doesnotexistsyet -r'
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '
\
'doesnotexistsyet -r'
,
'passwd -l doesnotexistsyet'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -649,8 +650,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet -G '
\
'additionalgroup1,additionalgroup2 doesnotexistsyet -r'
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -G '
\
'additionalgroup1,additionalgroup2 doesnotexistsyet -r'
,
'passwd -l doesnotexistsyet'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -662,7 +664,8 @@ class TestUser(SlapformatMixin):
user
.
create
()
self
.
assertEqual
([
'useradd -d /testuser -g testuser testuser -r'
'useradd -d /testuser -g testuser -s /bin/sh testuser -r'
,
'passwd -l testuser'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -676,8 +679,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd testuser'
,
'usermod -d /testuser -g testuser -G '
\
'additionalgroup1,additionalgroup2 testuser'
'usermod -d /testuser -g testuser -s /bin/sh -G '
\
'additionalgroup1,additionalgroup2 testuser'
,
'passwd -l testuser'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -690,7 +694,8 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd testuser'
,
'usermod -d /testuser -g testuser testuser'
'usermod -d /testuser -g testuser -s /bin/sh testuser'
,
'passwd -l testuser'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
@@ -704,7 +709,8 @@ class TestUser(SlapformatMixin):
user
.
create
()
self
.
assertEqual
([
'usermod -d /testuser -g testuser testuser'
'usermod -d /testuser -g testuser -s /bin/sh testuser'
,
'passwd -l testuser'
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
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