Skip to content

Commit

Permalink
Rename test_version_logic_case
Browse files Browse the repository at this point in the history
  • Loading branch information
yfyf committed Nov 21, 2024
1 parent 2dc2556 commit 5cdd9cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion controller/tests/server/update/scenario.ml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ let rec run_test_scenario (test_context: Helpers.test_context) expected_state_se
(* NOTE: this is almost the same as the `Outcome.test_slot_spec,
except that it expects a specific state outcome and uses the
`run_test_scenario` machinery. *)
let test_version_logic_case
let scenario_from_system_spec
?(booted_slot=Rauc.Slot.SystemA)
?(primary_slot=(Some Rauc.Slot.SystemA))
~(input_versions:Update.version_info)
Expand Down
12 changes: 6 additions & 6 deletions controller/tests/server/update/update_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ let both_newer_than_upstream =
let expected_state =
UpToDate input_versions
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let booted_newer_secondary_older =
let input_versions = {
Expand All @@ -143,7 +143,7 @@ let booted_newer_secondary_older =
let expected_state =
UpToDate input_versions
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let booted_older_secondary_newer =
let input_versions = {
Expand All @@ -154,7 +154,7 @@ let booted_older_secondary_newer =
let expected_state =
OutOfDateVersionSelected
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let booted_current_secondary_current =
let input_versions = {
Expand All @@ -165,7 +165,7 @@ let booted_current_secondary_current =
let expected_state =
UpToDate input_versions
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let booted_current_secondary_older =
let input_versions = {
Expand All @@ -176,7 +176,7 @@ let booted_current_secondary_older =
let expected_state =
UpToDate input_versions
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let booted_older_secondary_current =
let input_versions = {
Expand All @@ -186,7 +186,7 @@ let booted_older_secondary_current =
} in
let expected_state = OutOfDateVersionSelected
in
Scenario.test_version_logic_case ~input_versions expected_state
Scenario.scenario_from_system_spec ~input_versions expected_state

let () =
Lwt_main.run
Expand Down

0 comments on commit 5cdd9cb

Please sign in to comment.