fix: align schedule policy transport types
This commit is contained in:
@@ -5,6 +5,7 @@ from pydantic import ValidationError
|
||||
|
||||
from wf_core.models.steps import InputExpressionBinding
|
||||
from wf_transport_rpc_http.models import (
|
||||
CreateScheduleParams,
|
||||
InspectCapabilityParams,
|
||||
ListCapabilitiesParams,
|
||||
ReadRunTraceParams,
|
||||
@@ -94,6 +95,20 @@ def test_update_schedule_params_match_create_numeric_constraints() -> None:
|
||||
)
|
||||
|
||||
|
||||
def test_schedule_policy_params_reject_unknown_values() -> None:
|
||||
with pytest.raises(ValidationError):
|
||||
CreateScheduleParams(
|
||||
schedule_id="schedule",
|
||||
deployment_id="deployment",
|
||||
trigger={"kind": "oneshot", "at": "2026-09-08T12:00:00+00:00"},
|
||||
overlap="queue",
|
||||
)
|
||||
with pytest.raises(ValidationError):
|
||||
UpdateScheduleParams(
|
||||
schedule_id="schedule", expected_revision=1, misfire="replay"
|
||||
)
|
||||
|
||||
|
||||
def test_step_input_params_accept_composite_bindings_but_workflow_output_does_not() -> (
|
||||
None
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user