summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Holman <bholman.devel@gmail.com>2022-03-08 15:56:56 +0100
committerGitHub <noreply@github.com>2022-03-08 08:56:56 -0600
commit9f73454f135c83dc664fa5cebce7a3682604e9f9 (patch)
treebda80f3e5c23763f6ada22aa5c7ceafd5008223f
parent29aaa0b5398ab64bc2450412861d77b5bc51a0fe (diff)
downloadcloud-init-git-9f73454f135c83dc664fa5cebce7a3682604e9f9.tar.gz
remove flaky test from ci (#1322)
Move test_ssh_import_id to cause us problems in jenkins instead
-rw-r--r--tests/integration_tests/modules/test_combined.py37
1 files changed, 20 insertions, 17 deletions
diff --git a/tests/integration_tests/modules/test_combined.py b/tests/integration_tests/modules/test_combined.py
index 05499580..60254712 100644
--- a/tests/integration_tests/modules/test_combined.py
+++ b/tests/integration_tests/modules/test_combined.py
@@ -145,23 +145,6 @@ class TestCombined:
client = class_client
assert "hello world" == client.read_from_file("/var/tmp/runcmd_output")
- @retry(tries=30, delay=1)
- def test_ssh_import_id(self, class_client: IntegrationInstance):
- """Integration test for the ssh_import_id module.
-
- This test specifies ssh keys to be imported by the ``ssh_import_id``
- module and then checks that if the ssh keys were successfully imported.
-
- TODO:
- * This test assumes that SSH keys will be imported into the
- /home/ubuntu; this will need modification to run on other OSes.
- """
- client = class_client
- ssh_output = client.read_from_file("/home/ubuntu/.ssh/authorized_keys")
-
- assert "# ssh-import-id gh:powersj" in ssh_output
- assert "# ssh-import-id lp:smoser" in ssh_output
-
def test_snap(self, class_client: IntegrationInstance):
"""Integration test for the snap module.
@@ -340,3 +323,23 @@ class TestCombined:
assert v1_data["availability_zone"] == client.instance.zone
assert v1_data["instance_id"] == client.instance.instance_id
assert v1_data["local_hostname"] == client.instance.name
+
+
+@pytest.mark.user_data(USER_DATA)
+class TestCombinedNoCI:
+ @retry(tries=30, delay=1)
+ def test_ssh_import_id(self, class_client: IntegrationInstance):
+ """Integration test for the ssh_import_id module.
+
+ This test specifies ssh keys to be imported by the ``ssh_import_id``
+ module and then checks that if the ssh keys were successfully imported.
+
+ TODO:
+ * This test assumes that SSH keys will be imported into the
+ /home/ubuntu; this will need modification to run on other OSes.
+ """
+ client = class_client
+ ssh_output = client.read_from_file("/home/ubuntu/.ssh/authorized_keys")
+
+ assert "# ssh-import-id gh:powersj" in ssh_output
+ assert "# ssh-import-id lp:smoser" in ssh_output