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
Klaus Wölfel
slapos.core
Commits
fba3eed7
Commit
fba3eed7
authored
8 years ago
by
Alain Takoudjou
Committed by
Alain Takoudjou
8 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapformat: update tests with changes on login shell for slapos users
parent
095e3aff
Changes
1
Show 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 @
fba3eed7
...
...
@@ -636,8 +636,9 @@ class TestUser(SlapformatMixin):
self
.
assertEqual
([
'groupadd doesnotexistsyet'
,
'useradd -d /doesnotexistsyet -g doesnotexistsyet '
\
'doesnotexistsyet -r'
'useradd -d /doesnotexistsyet -g -s /bin/sh doesnotexistsyet '
\
'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 testuser -s /bin/sh testuser'
,
'passwd -l testuser'
]
],
self
.
fakeCallAndRead
.
external_command_list
)
...
...
This diff is collapsed.
Click to expand it.
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