summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMichael Abel <info@abel-ikt.de>2022-03-22 11:14:50 +0100
committerMichael Abel <info@abel-ikt.de>2022-03-22 11:16:39 +0100
commitc09f9e0f2d30938b7d5c60d8ba55b575a57c1789 (patch)
tree26dde3b64a207cb1a213aa0996962316939886d8 /tests
parent648597d8b2b52ed397fe9d11f920dc83481b5b16 (diff)
Avoid to have two platform options in PySys ...
Reduce complexity by only selecting platform "container" to select everything that modifies the OS by installing software, etc. Also reduces the danger to miss tests by test-filters. Signed-off-by: Michael Abel <info@abel-ikt.de>
Diffstat (limited to 'tests')
-rw-r--r--tests/PySys/Readme.md6
-rw-r--r--tests/PySys/software_management_end_to_end/environment_sm_management.py10
-rw-r--r--tests/PySys/software_management_end_to_end/sm_fake_install_remove/run.py2
-rw-r--r--tests/PySys/software_management_end_to_end/sm_fake_install_remove_multiple/run.py2
-rw-r--r--tests/PySys/software_management_end_to_end/sm_mixed_install_remove_multiple/run.py2
5 files changed, 11 insertions, 11 deletions
diff --git a/tests/PySys/Readme.md b/tests/PySys/Readme.md
index 24198ffd..df36a32b 100644
--- a/tests/PySys/Readme.md
+++ b/tests/PySys/Readme.md
@@ -97,11 +97,11 @@ Better run them in a VM or a container.
To run the tests:
- pysys.py run 'sm-apt*' -XmyPlatform='smcontainer'
+ pysys.py run 'sm-apt*' -XmyPlatform='container'
To run the tests with another tenant url:
- pysys.py run 'sm-apt*' -XmyPlatform='smcontainer' -Xtenant_url='thin-edge-io.eu-latest.cumulocity.com'
+ pysys.py run 'sm-apt*' -XmyPlatform='container' -Xtenant_url='thin-edge-io.eu-latest.cumulocity.com'
### Apt Plugin Tests
@@ -119,7 +119,7 @@ To run the tests:
Some of the tests desire a configured fakeplugin to simulate fruits.
To run the tests on a platform with fake plugin:
- pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=smcontainer
+ pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=container
See file software-management-end-to-end/dummy-plugin-configuration/Info.md
on how to setup and configure the fake plugin.
diff --git a/tests/PySys/software_management_end_to_end/environment_sm_management.py b/tests/PySys/software_management_end_to_end/environment_sm_management.py
index 1ee936ad..c8e27706 100644
--- a/tests/PySys/software_management_end_to_end/environment_sm_management.py
+++ b/tests/PySys/software_management_end_to_end/environment_sm_management.py
@@ -12,11 +12,11 @@ Better run them in a VM or a container.
To run the tests:
- pysys.py run 'sm-apt*' -XmyPlatform='smcontainer'
+ pysys.py run 'sm-apt*' -XmyPlatform='container'
To run the tests with another tenant url:
- pysys.py run 'sm-apt*' -XmyPlatform='smcontainer' -Xtenant_url='thin-edge-io.eu-latest.cumulocity.com'
+ pysys.py run 'sm-apt*' -XmyPlatform='container' -Xtenant_url='thin-edge-io.eu-latest.cumulocity.com'
@@ -71,7 +71,7 @@ class SoftwareManagement(EnvironmentC8y):
# Static class member that can be overridden by a command line argument
# E.g.:
- # pysys.py run 'sm-apt*' -XmyPlatform='smcontainer'
+ # pysys.py run 'sm-apt*' -XmyPlatform='container'
myPlatform = None
@@ -94,10 +94,10 @@ class SoftwareManagement(EnvironmentC8y):
def setup(self):
"""Setup Environment"""
- if self.myPlatform != "smcontainer":
+ if self.myPlatform != "container":
self.skipTest(
"Testing the apt plugin is not supported on this platform."+\
- "Use parameter -XmyPlatform='smcontainer' to enable it")
+ "Use parameter -XmyPlatform='container' to enable it")
# Database with package IDs taken from the thin-edge.io
# TODO make this somehow not hard-coded
diff --git a/tests/PySys/software_management_end_to_end/sm_fake_install_remove/run.py b/tests/PySys/software_management_end_to_end/sm_fake_install_remove/run.py
index 81323504..13549c35 100644
--- a/tests/PySys/software_management_end_to_end/sm_fake_install_remove/run.py
+++ b/tests/PySys/software_management_end_to_end/sm_fake_install_remove/run.py
@@ -14,7 +14,7 @@ This test is currently skipped as it needs a specialized setup with the
dummy-plugin set up to install fruits.
To run it do this:
- pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=smcontainer
+ pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=container
"""
diff --git a/tests/PySys/software_management_end_to_end/sm_fake_install_remove_multiple/run.py b/tests/PySys/software_management_end_to_end/sm_fake_install_remove_multiple/run.py
index 4211902d..23b6961a 100644
--- a/tests/PySys/software_management_end_to_end/sm_fake_install_remove_multiple/run.py
+++ b/tests/PySys/software_management_end_to_end/sm_fake_install_remove_multiple/run.py
@@ -14,7 +14,7 @@ This test is currently skipped as it needs a specialized setup with the
dummy-plugin set up to install fruits.
To run it do this:
- pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=smcontainer
+ pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=container
"""
diff --git a/tests/PySys/software_management_end_to_end/sm_mixed_install_remove_multiple/run.py b/tests/PySys/software_management_end_to_end/sm_mixed_install_remove_multiple/run.py
index 6567ce90..cfdab026 100644
--- a/tests/PySys/software_management_end_to_end/sm_mixed_install_remove_multiple/run.py
+++ b/tests/PySys/software_management_end_to_end/sm_mixed_install_remove_multiple/run.py
@@ -15,7 +15,7 @@ This test is currently skipped as it needs a specialized setup with the
dummy-plugin set up to install fruits.
To run it do this:
- pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=smcontainer
+ pysys.py run -v DEBUG 'sm-fake*' -Xfakeplugin=fakeplugin -XmyPlatform=container
"""