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

Overhaul test suite with fixtures #3248

Draft
wants to merge 20 commits into
base: master
Choose a base branch
from

Move django-admin check command to test suite

9168ad0
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Draft

Overhaul test suite with fixtures #3248

Move django-admin check command to test suite
9168ad0
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test results failed Nov 27, 2024 in 0s

476 errors, 115 fail, 10 skipped, 1 539 pass in 4m 5s

    9 files      9 suites   4m 5s ⏱️
2 140 tests 1 539 ✅ 10 💤 115 ❌ 476 🔥
4 021 runs  2 815 ✅ 20 💤 234 ❌ 952 🔥

Results for commit 9168ad0.

Annotations

Check failure on line 0 in tests.functional.arnold_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_title_should_contain_detentions (tests.functional.arnold_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 6s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 6s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.geomap_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_geomap_loaded (tests.functional.geomap_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.navbar_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_simple_ip_search_should_return_result (tests.functional.navbar_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.netmap_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_netmap_index_should_not_have_syntax_errors (tests.functional.netmap_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.room_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_room_image_upload (tests.functional.room_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.status_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_panel_should_toggle_when_clicked (tests.functional.status_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.functional.status_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_remember_last_panel_state (tests.functional.status_test)

artifacts/test-reports-3.10/functional-py310-django32/functional-results.xml [took 0s]
artifacts/test-reports-3.9/functional-py39-django32/functional-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_title_should_contain_detentions>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/functional-py39-django32/lib/python3.9/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
.tox/functional-py39-django32/lib/python3.9/site-packages/retry/api.py:33: in __retry_internal
    return f()
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/functional-py39-django32/bin:/opt/hostedtoolcache/setup-chrome/chromi...r/local/games', 'PGDATABASE': '12051871365_functional_py39_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/functional-py39-django32/bin/navsyncdb']' returned non-zero exit status 1.

/opt/hostedtoolcache/Python/3.9.20/x64/lib/python3.9/subprocess.py:373: CalledProcessError

Check failure on line 0 in tests.integration.alertengine_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_all_handlers_should_be_loadable (tests.integration.alertengine_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 6s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 6s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/account/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/accountgroup/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/alert/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/auditlog/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/arp/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/cabling/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/cam/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/interface/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/location/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/management-profile/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/netbox/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/patch/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/prefix/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/prefix/routed] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/prefix/usage] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/room/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError

Check failure on line 0 in tests.integration.api_test

See this annotation in the file changed.

@github-actions github-actions / Test results

All 2 runs with error: test_forbidden_endpoints[/api/1/servicehandler/] (tests.integration.api_test)

artifacts/test-reports-3.10/integration-py310-django32/integration-results.xml [took 0s]
artifacts/test-reports-3.9/integration-py39-django32/integration-results.xml [took 0s]
Raw output
failed on setup with "subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1."
request = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>
admin_username = 'admin', admin_password = 'admin'

    @pytest.fixture(scope='session')
    def postgresql(request, admin_username, admin_password):
        """Fixture for all tests that depend on a running PostgreSQL server. This fixture
        will try to detect and use an existing PostgreSQL instance (like if running in a
        GitHub action), otherwise it will set up a temporary PostgreSQL server for the test
        session.
    
        If your test needs to write to the database, it should ask for the `db` fixture
        instead, as this ensures changes are rolled back when the test is done.  However,
        if your test makes db changes that need to be visible from another process, you
        must make your own data fixture to ensure the data is removed when the test is
        done.
        """
        if not is_running_in_github_actions():
            request.getfixturevalue("docker_services")
    
        dbname = _get_preferred_database_name()
        _update_db_conf_for_test_run(dbname)
>       _populate_test_database(dbname, admin_username, admin_password)

admin_password = 'admin'
admin_username = 'admin'
dbname     = '12051871365_integration_py310_django32'
request    = <SubRequest 'postgresql' for <Function test_all_handlers_should_be_loadable>>

tests/conftest.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.tox/integration-py310-django32/lib/python3.10/site-packages/decorator.py:232: in fun
    return caller(func, *(extras + args), **kw)
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        caller     = <function retry.<locals>.retry_decorator at 0x7fee0045b0a0>
        extras     = ()
        func       = <function _populate_test_database at 0x7fee0045b1c0>
        kw         = {}
        kwsyntax   = False
        sig        = <Signature (database_name, admin_username, admin_password)>
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:73: in retry_decorator
    return __retry_internal(partial(f, *args, **kwargs), exceptions, tries, delay, max_delay, backoff, jitter,
        args       = ('12051871365_integration_py310_django32', 'admin', 'admin')
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = <function _populate_test_database at 0x7fee0045b1c0>
        fargs      = ('12051871365_integration_py310_django32', 'admin', 'admin')
        fkwargs    = {}
        jitter     = 0
        kwargs     = {}
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
.tox/integration-py310-django32/lib/python3.10/site-packages/retry/api.py:33: in __retry_internal
    return f()
        _delay     = 8
        _tries     = 0
        backoff    = 2
        delay      = 2
        exceptions = <class 'Exception'>
        f          = functools.partial(<function _populate_test_database at 0x7fee0045b1c0>, '12051871365_integration_py310_django32', 'admin', 'admin')
        jitter     = 0
        logger     = <Logger retry.api (WARNING)>
        max_delay  = None
        tries      = 3
tests/conftest.py:106: in _populate_test_database
    subprocess.check_call([navsyncdb_path], env=env)  # , '-c'], #, '--drop-database'],
        admin_password = 'admin'
        admin_username = 'admin'
        database_name = '12051871365_integration_py310_django32'
        env        = {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chromium/138.../local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}
        navsyncdb_path = '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

popenargs = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
kwargs = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
retcode = 1
cmd = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']

    def check_call(*popenargs, **kwargs):
        """Run command with arguments.  Wait for command to complete.  If
        the exit code was zero then return, otherwise raise
        CalledProcessError.  The CalledProcessError object will have the
        return code in the returncode attribute.
    
        The arguments are the same as for the call function.  Example:
    
        check_call(["ls", "-l"])
        """
        retcode = call(*popenargs, **kwargs)
        if retcode:
            cmd = kwargs.get("args")
            if cmd is None:
                cmd = popenargs[0]
>           raise CalledProcessError(retcode, cmd)
E           subprocess.CalledProcessError: Command '['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']' returned non-zero exit status 1.

cmd        = ['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb']
kwargs     = {'env': {'PATH': '/home/runner/work/nav/nav/.tox/integration-py310-django32/bin:/opt/hostedtoolcache/setup-chrome/chro...local/games', 'PGDATABASE': '12051871365_integration_py310_django32', 'PGHOST': 'localhost', 'PGPASSWORD': 'nav', ...}}
popenargs  = (['/home/runner/work/nav/nav/.tox/integration-py310-django32/bin/navsyncdb'],)
retcode    = 1

/opt/hostedtoolcache/Python/3.10.15/x64/lib/python3.10/subprocess.py:369: CalledProcessError