Skip to content

Commit e5eab6d

Browse files
committed
k8s integration -> e2e, also update pytest marks
1 parent 2ec7474 commit e5eab6d

16 files changed

+22
-22
lines changed

.github/workflows/backend-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ jobs:
175175
name: backend-logs
176176
path: logs/
177177

178-
k8s-integration:
179-
name: K8s Integration Tests
178+
e2e:
179+
name: E2E Tests
180180
runs-on: ubuntu-latest
181181

182182
steps:
@@ -250,7 +250,7 @@ jobs:
250250
timeout 90 bash -c 'until sudo k3s kubectl cluster-info; do sleep 5; done'
251251
kubectl create namespace integr8scode --dry-run=client -o yaml | kubectl apply -f -
252252
253-
- name: Run k8s integration tests
253+
- name: Run E2E tests
254254
timeout-minutes: 10
255255
env:
256256
MONGO_ROOT_USER: root

backend/tests/integration/app/test_main_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RequestSizeLimitMiddleware,
1313
)
1414

15-
pytestmark = pytest.mark.unit
15+
pytestmark = pytest.mark.integration
1616

1717

1818
def test_create_app_real_instance(app) -> None: # type: ignore[valid-type]

backend/tests/integration/db/repositories/test_admin_events_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from app.domain.events.event_models import EventFields, EventFilter, EventStatistics, Event
1010
from app.infrastructure.kafka.events.metadata import AvroEventMetadata
1111

12-
pytestmark = pytest.mark.unit
12+
pytestmark = pytest.mark.integration
1313

1414

1515
@pytest.fixture()

backend/tests/integration/db/repositories/test_admin_settings_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from app.db.repositories.admin.admin_settings_repository import AdminSettingsRepository
44
from app.domain.admin import SystemSettings
55

6-
pytestmark = pytest.mark.unit
6+
pytestmark = pytest.mark.integration
77

88

99
@pytest.fixture()

backend/tests/integration/db/repositories/test_admin_user_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from app.domain.user import UserFields, UserUpdate, PasswordReset
66
from app.core.security import SecurityService
77

8-
pytestmark = pytest.mark.unit
8+
pytestmark = pytest.mark.integration
99

1010

1111
@pytest.fixture()

backend/tests/integration/db/repositories/test_dlq_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from app.domain.enums.events import EventType
77
from app.dlq import DLQFields, DLQMessageStatus
88

9-
pytestmark = pytest.mark.unit
9+
pytestmark = pytest.mark.integration
1010

1111

1212
@pytest.fixture()

backend/tests/integration/db/repositories/test_event_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from app.domain.events.event_models import Event, EventFields, EventFilter
77
from app.infrastructure.kafka.events.metadata import AvroEventMetadata
88

9-
pytestmark = pytest.mark.unit
9+
pytestmark = pytest.mark.integration
1010

1111

1212
@pytest.fixture()

backend/tests/integration/db/repositories/test_notification_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313
from app.domain.user import UserFields
1414

15-
pytestmark = pytest.mark.unit
15+
pytestmark = pytest.mark.integration
1616

1717

1818
@pytest.fixture()

backend/tests/integration/db/repositories/test_replay_repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from app.domain.replay import ReplayConfig, ReplayFilter
99
from app.schemas_pydantic.replay_models import ReplaySession
1010

11-
pytestmark = pytest.mark.unit
11+
pytestmark = pytest.mark.integration
1212

1313

1414
@pytest.fixture()

backend/tests/integration/db/repositories/test_saga_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from app.domain.enums.saga import SagaState
77
from app.domain.saga.models import Saga, SagaFilter, SagaListResult
88

9-
pytestmark = pytest.mark.unit
9+
pytestmark = pytest.mark.integration
1010

1111

1212
@pytest.fixture()
@@ -25,7 +25,7 @@ async def test_saga_crud_and_queries(repo: SagaRepository, db) -> None: # type:
2525
saga = await repo.get_saga("s1")
2626
assert saga and saga.saga_id == "s1"
2727
lst = await repo.get_sagas_by_execution("e1")
28-
assert len(lst) >= 1
28+
assert len(lst.sagas) >= 1
2929

3030
f = SagaFilter(execution_ids=["e1"])
3131
result = await repo.list_sagas(f, limit=2)

0 commit comments

Comments
 (0)