Skip to content

Regression

OmeroPy.test.integration.clitest.test_download.TestDownload.testPolicyGroupRestriction[+read,+write,+image] (from pytest)

Failing for the past 1 build (Since #184 )
Took 13 sec.

Error Message

omero.cli.NonZeroReturnCode: assert failed

Stacktrace

self = <test.integration.clitest.test_download.TestDownload object at 0x7f489db3ca90>
tmpdir = local('/tmp/pytest-of-omero/pytest-0/testPolicyGroupRestriction__re0')
fixture = <test.integration.clitest.test_download.TestDownload.PolicyFixture object at 0x7f489e0442e0>

    @pytest.mark.parametrize('fixture', POLICY_FIXTURES,
                             ids=[str(x) for x in POLICY_FIXTURES])
    def testPolicyGroupRestriction(self, tmpdir, fixture):
        parts = fixture.cfg.split(",")
        config = [NV("omero.policy.binary_access", x) for x in parts]
        group = self.new_group(perms='rwr---', config=config)
>       self.do_restrictions(fixture, tmpdir, group)

test/integration/clitest/test_download.py:294: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
test/integration/clitest/test_download.py:355: in do_restrictions
    self.cli.invoke(self.args, strict=True)
../../../../.venv3/lib64/python3.9/site-packages/omero/cli.py:1211: in invoke
    self.assertRC()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <omero.cli.CLI object at 0x7f49048d1940>

    def assertRC(self):
        if self.rv != 0:
>           raise NonZeroReturnCode(self.rv, "assert failed")
E           omero.cli.NonZeroReturnCode: assert failed

../../../../.venv3/lib64/python3.9/site-packages/omero/cli.py:1200: NonZeroReturnCode