Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test to validate availability of nogroup/nobody #725

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dirkmueller
Copy link
Member

No description provided.

tests/test_base.py Outdated Show resolved Hide resolved
tests/test_base.py Outdated Show resolved Hide resolved
@grisu48
Copy link
Contributor

grisu48 commented Jan 14, 2025

CI is failing for 15.7:

=================================== FAILURES ===================================
_ test_group_nobody_working[bci/bci-base:15.7 from registry.opensuse.org/devel/bci/sle-15-sp7/images/bci/bci-base:15.7] _
[gw0] linux -- Python 3.12.8 /home/runner/work/BCI-tests/BCI-tests/.tox/base/bin/python

auto_container = ContainerData(image_url_or_id='registry.opensuse.org/devel/bci/sle-15-sp7/images/bci/bci-base:15.7', container_id='1b7...tainerfile='', image_format=None, add_build_tags=[]), forwarded_ports=[], _container_runtime=DockerRuntime(marks=None))

    @pytest.mark.skipif(
        OS_VERSION in ("15.3", "15.4", "15.5"),
        reason="unfixed in LTSS codestreams",
    )
    def test_group_nobody_working(auto_container):
        """Test that nobody group is available in the container (bsc#1212118)."""
>       assert auto_container.connection.check_output("getent group nobody")
E       AssertionError: Unexpected exit code 2 for CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f26b3b7b350>, exit_status=2, command=b'getent group nobody', _stdout=b'', _stderr=b'')
E       assert 2 == 0
E        +  where 2 = CommandResult(backend=<testinfra.backend.docker.DockerBackend object at 0x7f26b3b7b350>, exit_status=2, command=b'getent group nobody', _stdout=b'', _stderr=b'').rc

tests/test_base.py:61: AssertionError

@dirkmueller
Copy link
Member Author

CI is failing for 15.7:

Yes, 15.7 containers have to go through 15.7 development, that will take quite a bit of more time..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants