From ad487ffce9c5f2016b9c1caf7f3305d5e4cbe5f7 Mon Sep 17 00:00:00 2001 From: Michael Abel <75477722+abelikt@users.noreply.github.com> Date: Tue, 15 Feb 2022 17:40:26 +0100 Subject: [#835] Dynamic Cumulocity id management in system tests (#839) * Add find_device_id.py from ci branch * Add delete_current_device_c8y.py from ci branch * Use URL from GitHub secrets * Disconnect old bridge before configuring the new one * Add shebang to avoid that we run this with dash * Delete the current device, reconenct and retrieve the new ID * Regenerate bridge in integration test workflow * Use ID from within the script * Remove unused, forgotten variables * Use dynamic C8YDEVICEID in smoke_test * Use dynamic C8YDEVICEID in plugin_test * Use dynamic C8YDEVICEID in software management tests * Use dynamic C8YDEVICEID to run all tests ... ... and avoid an additional bridge configuration * Also configure bridge in offsite workflow ... ... and fix a job name * Move invocation of find device ... ... where we have an enabled environment. And specifically call the interpreter in the environment * Use separate environment in the smoke test and ... ... switch to bash to have source * Also use c8y-api environment for bridge setup * Set executable bits * Also add the c8y API to the requirements * Work on review comments * Replace check for zero with regex * Use name keyword to get the right device --- tests/requirements.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/requirements.txt') diff --git a/tests/requirements.txt b/tests/requirements.txt index f32fdafc..457f65f5 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,3 +5,5 @@ retry == 0.9.2 junitparser == 2.2.0 junit2html == 30.0.6 psutil == 5.9.0 +c8y-api == 1.1.1 + -- cgit v1.2.3