summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorinitard <solo@softwareag.com>2022-02-01 18:00:26 +0100
committerinitard <solo@softwareag.com>2022-02-01 18:00:26 +0100
commitad4b056df2b344115b2a6ba5d891ca7f927963b3 (patch)
tree8eb10a996d3d5c097831704efc0122123adf39ae /tests
parent51abfd14f5cdd5496f4bd753d4d37758503d7678 (diff)
making url modular
Signed-off-by: initard <solo@softwareag.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/PySys/tedge/tedge_software_update/run.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PySys/tedge/tedge_software_update/run.py b/tests/PySys/tedge/tedge_software_update/run.py
index ec32c528..5c6cd0a4 100644
--- a/tests/PySys/tedge/tedge_software_update/run.py
+++ b/tests/PySys/tedge/tedge_software_update/run.py
@@ -13,7 +13,7 @@ Then we find the string SUBCOMMANDS: in the output
TEDGE_DOWNLOAD_DIR = "/tedge_download_dir"
TEDGE_DOWNLOAD_PATH = "tmp.path"
TOPIC = 'tedge/commands/req/software/update'
-PAYLOAD = '{"id":"1234","updateList":[{"type":"apt","modules":[{"name":"rolldice","version":"::apt","url":"https://thin-edge-io.eu-latest.cumulocity.com/inventory/binaries/11643549","action":"install"}]}]}'
+PAYLOAD = '{"id":"1234","updateList":[{"type":"apt","modules":[{"name":"rolldice","version":"::apt","url":"{}/inventory/binaries/11643549","action":"install"}]}]}'
class PySysTest(EnvironmentC8y):
@@ -82,7 +82,7 @@ class PySysTest(EnvironmentC8y):
# 4. trigger rolldice download
_ = self.startProcess(
command=self.sudo,
- arguments=[self.tedge, "mqtt", "pub", TOPIC, PAYLOAD],
+ arguments=[self.tedge, "mqtt", "pub", TOPIC, PAYLOAD.format(self.project.c8yurl)],
stdouterr="rolldice_download",
expectedExitStatus="==0",
)