Commit 8d1f3601 authored by Paris Stentoumis's avatar Paris Stentoumis
Browse files

feat: deploy service now uses correct action type

parent 0f248bed
Loading
Loading
Loading
Loading
+1 −1
Changes for src/srm/application/use_cases/deploy_service.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -732,7 +732,7 @@ class DeployServiceUseCase:
        return CapabilityPlacementRequest(
            capability_kind=requirement.capability_kind,
            domain_kind=requirement.domain_kind or DomainKind.COMPUTE,
            action="deploy",
            action=_ACTIVATE_ACTION,
            runtime_kind=runtime_kind,
            pin=pin,
        )
+3 −3
Changes for tests/integration/test_databus_command_flow.py: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -396,7 +396,7 @@ async def test_service_deploy_command_flow_persists_runtime_rows_and_publishes_e
            session,
            domain_kind=DomainKind.COMPUTE,
            capability_kind=CapabilityKind.WORKLOAD,
            supported_actions=["deploy"],
            supported_actions=["activate"],
            supported_runtime_kinds=[RuntimeKind.HELM],
        )
        await _seed_deploy_catalog(session, service_specification_id)
@@ -597,7 +597,7 @@ async def test_service_deploy_with_unknown_service_specification_publishes_faile
            session,
            domain_kind=DomainKind.COMPUTE,
            capability_kind=CapabilityKind.WORKLOAD,
            supported_actions=["deploy"],
            supported_actions=["activate"],
            supported_runtime_kinds=[RuntimeKind.HELM],
        )
        await session.commit()
@@ -681,7 +681,7 @@ async def test_service_deploy_with_invalid_target_pins_publishes_failed_before_s
            session,
            domain_kind=DomainKind.COMPUTE,
            capability_kind=CapabilityKind.WORKLOAD,
            supported_actions=["deploy"],
            supported_actions=["activate"],
            supported_runtime_kinds=[RuntimeKind.HELM],
        )
        await _seed_deploy_catalog(session, service_specification_id)
+1 −1
Changes for tests/integration/test_databus_deploy_e2e.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ def _zone(zone_id: UUID, domain_id: UUID, capability_id: UUID) -> Zone:
                                ref="primary",
                                control_path_ref=f"k8s.{zone_id}.compute",
                                supported_runtime_kinds=[RuntimeKind.HELM],
                                supported_actions=["deploy"],
                                supported_actions=["activate"],
                                priority=100,
                                is_default=True,
                                state=ControlPathBindingState.ACTIVE,
+1 −1
Changes for tests/integration/test_repositories.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ def _control_path_binding(capability_id: UUID) -> ControlPathBinding:
        ref="primary",
        control_path_ref="cp://k8s-athens",
        supported_runtime_kinds=[RuntimeKind.HELM],
        supported_actions=["deploy"],
        supported_actions=["activate"],
        state=ControlPathBindingState.ACTIVE,
        created_at=_now(),
        updated_at=_now(),
+1 −1
Changes for tests/unit/test_deploy_service_use_case.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -196,7 +196,7 @@ def _control_path_binding(
        ref="deploy-binding",
        control_path_ref="k8s.zone-a.compute",
        supported_runtime_kinds=runtime_kinds or [RuntimeKind.HELM],
        supported_actions=["deploy", "scale", "terminate"],
        supported_actions=["activate", "update", "terminate"],
        priority=100,
        is_default=True,
        state=ControlPathBindingState.ACTIVE,
Loading