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
Xiaowu Zhang
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):
...
@@ -636,8 +636,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet '
\
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '
\
'doesnotexistsyet -r'
'doesnotexistsyet -r'
,
'passwd -l doesnotexistsyet'
],
],
self
.
fakeCallAndRead
.
external_command_list
)
self
.
fakeCallAndRead
.
external_command_list
)
...
@@ -649,8 +650,9 @@ class TestUser(SlapformatMixin):
...
@@ -649,8 +650,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet -G '
\
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -G '
\
'additionalgroup1,additionalgroup2 doesnotexistsyet -r'
'additionalgroup1,additionalgroup2 doesnotexistsyet -r'
,
'passwd -l doesnotexistsyet'
],
],
self
.
fakeCallAndRead
.
external_command_list
)
self
.
fakeCallAndRead
.
external_command_list
)
...
@@ -662,7 +664,8 @@ class TestUser(SlapformatMixin):
...
@@ -662,7 +664,8 @@ class TestUser(SlapformatMixin):
user
.
create
()
user
.
create
()
self
.
assertEqual
([
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
)
self
.
fakeCallAndRead
.
external_command_list
)
...
@@ -676,8 +679,9 @@ class TestUser(SlapformatMixin):
...
@@ -676,8 +679,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
self
.
assertEqual
([
'groupadd testuser'
,
'groupadd testuser'
,
'usermod -d /testuser -g testuser -G '
\
'usermod -d /testuser -g testuser -s /bin/sh -G '
\
'additionalgroup1,additionalgroup2 testuser'
'additionalgroup1,additionalgroup2 testuser'
,
'passwd -l testuser'
],
],
self
.
fakeCallAndRead
.
external_command_list
)
self
.
fakeCallAndRead
.
external_command_list
)
...
@@ -690,7 +694,8 @@ class TestUser(SlapformatMixin):
...
@@ -690,7 +694,8 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
self
.
assertEqual
([
'groupadd testuser'
,
'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
)
self
.
fakeCallAndRead
.
external_command_list
)
...
@@ -704,7 +709,8 @@ class TestUser(SlapformatMixin):
...
@@ -704,7 +709,8 @@ class TestUser(SlapformatMixin):
user
.
create
()
user
.
create
()
self
.
assertEqual
([
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
)
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