From caa8bfdf8b15ace9947801ae8179214249606cb8 Mon Sep 17 00:00:00 2001 From: Andre Detsch Date: Thu, 10 Oct 2024 15:54:41 -0300 Subject: [PATCH] Update e2e-test.py --- e2e-test.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e2e-test.py b/e2e-test.py index 349c3375..054d7e4a 100644 --- a/e2e-test.py +++ b/e2e-test.py @@ -60,7 +60,7 @@ class ReturnCodes: prune = True factory_name = "detsch-aklite-test" -base_target_version = 54 +base_target_version = 89 def get_target_version(offset): return base_target_version + offset @@ -138,6 +138,7 @@ def get_device_name(): # os.getenv("DEVICE_NAME", "aklite-test-device") def verify_events(target_version, expected_events = None, second_to_last_corr_id = False): + logger.info(f"Verifying events for version {target_version}") headers = {'OSF-TOKEN': osf_token} r = requests.get(f'https://api.foundries.io/ota/devices/{device_name}/updates/', headers=headers) d = json.loads(r.text) @@ -175,6 +176,7 @@ def clear_callbacks_log(): # TODO: verify additional callback variables def verify_callback(expected_calls): + logger.info(f"Verifying callbacks") calls = [] if os.path.isfile(callback_log_path): with open(callback_log_path) as f: @@ -547,8 +549,7 @@ def run_test_sequence_update_to_latest(): check_running_apps(apps) -# @pytest.mark.parametrize('offline_', [False, True]) -@pytest.mark.parametrize('offline_', [False]) +@pytest.mark.parametrize('offline_', [True, False]) @pytest.mark.parametrize('single_step_', [True, False]) def test_incremental_updates(offline_, single_step_): global offline, single_step @@ -556,7 +557,7 @@ def test_incremental_updates(offline_, single_step_): single_step = single_step_ run_test_sequence_incremental() -@pytest.mark.parametrize('offline_', [False]) +@pytest.mark.parametrize('offline_', [True, False]) @pytest.mark.parametrize('single_step_', [True, False]) def test_update_to_latest(offline_, single_step_): global offline, single_step