Skip to content

Auth unit test failures when running in container on Fedora #113

@jberkus

Description

@jberkus

When running the unit tests in a podman container on Fedora 42, I get the following test failures which do not happen when running the tests not in a container:

FAILED test/controllers/test_authentication.py::test_github_login - AssertionError: assert 'https://gith...e=fooBar42%21' == 'https://gith...e=...
FAILED test/controllers/test_authentication.py::test_github_login_with_redirect_for_existing_user - AssertionError: assert 'https://gith...rN7qPgDqyfaQ0' == 'https://gith...rN...
FAILED test/controllers/test_authentication.py::test_github_login_with_redirect_for_new_user - AssertionError: assert 'https://gith...mZM8C-zrv2ccE' == 'https://gith...mZ...
FAILED test/controllers/test_authentication.py::test_github_login_fails_user_not_found - AssertionError: assert 'https://gith...jCpq8t48lv5jY' == 'https://gith...jC...
FAILED test/middlewares/test_webhook.py::test_webhook_guard_ok - AssertionError: assert not True
FAILED test/middlewares/test_webhook.py::test_webhook_guard_bad_compare - AssertionError: expected call not found.

This appears to be happening because somehow the assertions return a diffferent error code when running inside a container, but I've no idea why.

Complete logs attached.

FAILED test controllers.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions