Commit 9d39b815 authored by Titouan Soulard's avatar Titouan Soulard

format: update tests after 09d2ca06

parent 5140ec99
...@@ -822,7 +822,7 @@ class TestUser(SlapformatMixin): ...@@ -822,7 +822,7 @@ class TestUser(SlapformatMixin):
self.assertEqual([ self.assertEqual([
'groupadd doesnotexistsyet', 'groupadd doesnotexistsyet',
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '\ 'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh '\
'doesnotexistsyet -r', '-r doesnotexistsyet',
'passwd -l doesnotexistsyet' 'passwd -l doesnotexistsyet'
], ],
self.fakeCallAndRead.external_command_list) self.fakeCallAndRead.external_command_list)
...@@ -835,8 +835,8 @@ class TestUser(SlapformatMixin): ...@@ -835,8 +835,8 @@ class TestUser(SlapformatMixin):
self.assertEqual([ self.assertEqual([
'groupadd doesnotexistsyet', 'groupadd doesnotexistsyet',
'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -G '\ 'useradd -d /doesnotexistsyet -g doesnotexistsyet -s /bin/sh -r -G '\
'additionalgroup1,additionalgroup2 doesnotexistsyet -r', 'additionalgroup1,additionalgroup2 doesnotexistsyet',
'passwd -l doesnotexistsyet' 'passwd -l doesnotexistsyet'
], ],
self.fakeCallAndRead.external_command_list) self.fakeCallAndRead.external_command_list)
...@@ -849,7 +849,7 @@ class TestUser(SlapformatMixin): ...@@ -849,7 +849,7 @@ class TestUser(SlapformatMixin):
user.create() user.create()
self.assertEqual([ self.assertEqual([
'useradd -d /testuser -g testuser -s /bin/sh testuser -r', 'useradd -d /testuser -g testuser -s /bin/sh -r testuser',
'passwd -l testuser' 'passwd -l testuser'
], ],
self.fakeCallAndRead.external_command_list) self.fakeCallAndRead.external_command_list)
...@@ -864,7 +864,7 @@ class TestUser(SlapformatMixin): ...@@ -864,7 +864,7 @@ class TestUser(SlapformatMixin):
self.assertEqual([ self.assertEqual([
'groupadd testuser', 'groupadd testuser',
'usermod -d /testuser -g testuser -s /bin/sh -G '\ 'usermod -d /testuser -g testuser -s /bin/sh -aG '\
'additionalgroup1,additionalgroup2 testuser', 'additionalgroup1,additionalgroup2 testuser',
'passwd -l testuser' 'passwd -l testuser'
], ],
......
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