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

Remove old API migrations #4168

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Merge branch 'main' into marrobi/remove-migrations

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

Remove old API migrations #4168

Merge branch 'main' into marrobi/remove-migrations
1426aaf
Select commit
Loading
Failed to load commit list.
GitHub Actions / Unit Test Results failed Dec 18, 2024 in 0s

226 errors, 369 pass in 18s

595 tests  ±0   369 ✅ +2   18s ⏱️ -7s
  1 suites ±0     0 💤  - 2 
  1 files   ±0     0 ❌ ±0   226 🔥 ±0 

Results for commit 1426aaf. ± Comparison against earlier commit 5b58a59.

Annotations

Check failure on line 0 in tests_ma.test_api.dependencies.test_database

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_container_proxy (tests_ma.test_api.dependencies.test_database) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_errors.test_422_error

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_frw_validation_error_format (tests_ma.test_api.test_errors.test_422_error) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_errors.test_error

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_frw_validation_error_format (tests_ma.test_api.test_errors.test_error) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_helpers

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_repository_raises_http_exception_when_unable_to_access_database (tests_ma.test_api.test_helpers) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_all_airlock_requests_by_workspace_returns_200 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_creates_airlock_request_returns_201 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_input_is_malformed_returns_400 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_with_non_deployed_workspace_id_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_with_state_store_endpoint_not_responding_returns_503 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_with_event_grid_not_responding_returns_503 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_with_airlock_disabled_returns_405 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_airlock_request_with_enable_airlock_property_missing_returns_201 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_request_returns_200 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_request_no_airlock_request_found_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_request_state_store_endpoint_not_responding_returns_503 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_submit_airlock_request_submits_airlock_request_returns_200 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_submit_airlock_request_if_request_not_found_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_submit_airlock_request_with_state_store_endpoint_not_responding_returns_503 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_submit_airlock_request_with_event_grid_not_responding_returns_503 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_submit_airlock_request_with_illegal_status_change_returns_400 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_cancel_airlock_request_cancels_request_returns_200 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_post_cancel_airlock_request_if_request_not_found_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_container_link_no_airlock_request_found_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_container_link_no_workspace_request_found_returns_404 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError

Check failure on line 0 in tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights

See this annotation in the file changed.

@github-actions github-actions / Unit Test Results

test_get_airlock_container_link_in_progress_request_returns_400 (tests_ma.test_api.test_routes.test_airlock.TestAirlockRoutesThatRequireOwnerOrResearcherRights) with error

artifacts/test-results/pytest_api_unit.xml [took 0s]
Raw output
failed on setup with "ModuleNotFoundError: No module named 'db.migrations'"
@pytest.fixture(autouse=True, scope='module')
    def no_lifespan_events():
>       with patch("main.lifespan"):

tests_ma/test_api/conftest.py:13: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/local/lib/python3.12/site-packages/mock/mock.py:1504: in __enter__
    self.target = self.getter()
/usr/local/lib/python3.12/site-packages/mock/mock.py:1691: in <lambda>
    getter = lambda: _importer(target)
/usr/local/lib/python3.12/site-packages/mock/mock.py:1330: in _importer
    thing = __import__(import_path)
main.py:14: in <module>
    from api.routes.api import router as api_router
api/routes/api.py:10: in <module>
    from api.routes import health, ping, workspaces, workspace_templates, workspace_service_templates, user_resource_templates, \
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

    from fastapi import APIRouter, Depends, HTTPException, status
>   from db.migrations.airlock import AirlockMigration
E   ModuleNotFoundError: No module named 'db.migrations'

api/routes/migrations.py:2: ModuleNotFoundError