fixup! trun: Spawn user test with sole regular uid/gid in /etc/{passwd,group} database
Even though slapos.core tests seem to mock getgrnam calls[1], disk group is being looked up in /etc/groups for real which fails, if there is no such group, e.g. as ERROR: test_not_existing (slapos.tests.test_slapgrid.TestSlapgridWithDevPermManagerDevPermEmptyLsblk) ---------------------------------------------------------------------- Traceback (most recent call last): File "/srv/slapgrid/slappart3/t/bvi/i/0/parts/slapos.core/slapos/tests/test_slapgrid.py", line 3246, in setUp self.setUpExpected() File "/srv/slapgrid/slappart3/t/bvi/i/0/parts/slapos.core/slapos/tests/test_slapgrid.py", line 3230, in setUpExpected gid = grp.getgrnam("disk").gr_gid KeyError: 'getgrnam(): name not found: disk' -> Fix it up by also creating "disk" group in our namespace environment. I'm not sure, but maybe the better long-term fix would be for slapos.core tests not to access /etc/groups for real and to instead mock access to this database completely. Amends commits e6b7993c and b42ccfa5. /reported-by @tomo /reported-at slapos!1107 (comment 148758) [1] https://lab.nexedi.com/nexedi/slapos.core/blob/1.7.1-28-g0b6bf2af4/slapos/tests/test_slapformat.py#L160-166
Status | Job ID | Name | Coverage | ||||||
---|---|---|---|---|---|---|---|---|---|
External | |||||||||
passed |
#338241
external
|
nxdtest.UnitTest-Master.Python2 |
00:01:57
|
||||||
failed |
#306300
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:00:53
|
||||||
failed |
#306308
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:00:56
|
||||||
failed |
#306358
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:00:59
|
||||||
failed |
#306420
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:12
|
||||||
failed |
#306679
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:45
|
||||||
failed |
#306897
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:20
|
||||||
failed |
#307044
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:14
|
||||||
failed |
#307494
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:10
|
||||||
failed |
#309224
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:31
|
||||||
failed |
#312629
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:47
|
||||||
failed |
#312820
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:02:04
|
||||||
failed |
#333697
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:16:23
|
||||||
failed |
#334127
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:14
|
||||||
failed |
#334451
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:33
|
||||||
failed |
#334868
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:08
|
||||||
failed |
#335006
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:16
|
||||||
failed |
#335494
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:12
|
||||||
failed |
#335532
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:13
|
||||||
failed |
#335673
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:02:18
|
||||||
failed |
#335721
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:36
|
||||||
failed |
#336444
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:02:00
|
||||||
failed |
#336764
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:34:16
|
||||||
passed |
#337177
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:02:47
|
||||||
failed |
#337353
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:08
|
||||||
failed |
#337421
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:15
|
||||||
failed |
#337439
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:07
|
||||||
failed |
#337562
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:57
|
||||||
failed |
#337807
external
retried
|
nxdtest.UnitTest-Master.Python2 |
00:01:32
|
||||||