Commit a5f54eb9 authored by Alain Takoudjou's avatar Alain Takoudjou

fix slapformat tests

parent 1237d660
...@@ -636,7 +636,7 @@ class TestUser(SlapformatMixin): ...@@ -636,7 +636,7 @@ class TestUser(SlapformatMixin):
self.assertEqual([ self.assertEqual([
'groupadd doesnotexistsyet', 'groupadd doesnotexistsyet',
'useradd -d /doesnotexistsyet -g -s /bin/sh doesnotexistsyet '\ 'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '\
'doesnotexistsyet -r', 'doesnotexistsyet -r',
'passwd -l doesnotexistsyet' 'passwd -l doesnotexistsyet'
], ],
...@@ -709,7 +709,7 @@ class TestUser(SlapformatMixin): ...@@ -709,7 +709,7 @@ class TestUser(SlapformatMixin):
user.create() user.create()
self.assertEqual([ self.assertEqual([
'usermod -d /testuser -g testuser testuser -s /bin/sh testuser', 'usermod -d /testuser -g testuser -s /bin/sh testuser',
'passwd -l testuser' 'passwd -l testuser'
], ],
self.fakeCallAndRead.external_command_list) self.fakeCallAndRead.external_command_list)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment