diff options
author | Daniel Watkins <oddbloke@ubuntu.com> | 2021-01-08 14:29:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-08 14:29:08 -0500 |
commit | 88581e540728035c74af6173824e2cc517d13391 (patch) | |
tree | 1c3a594565ce509a99e7186b2a1ad65ba4ce9f31 /tests/integration_tests | |
parent | 83ba4d18b383d5dff1a897a8506fd90408d3efe2 (diff) | |
download | vyos-cloud-init-88581e540728035c74af6173824e2cc517d13391.tar.gz vyos-cloud-init-88581e540728035c74af6173824e2cc517d13391.zip |
integration_tests: log cloud-init version in SUT (#758)
Diffstat (limited to 'tests/integration_tests')
-rw-r--r-- | tests/integration_tests/clouds.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index 8ae20442..72d77058 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -166,7 +166,14 @@ class IntegrationCloud(ABC): if wait: pycloudlib_instance.wait(raise_on_cloudinit_failure=False) log.info('Launched instance: %s', pycloudlib_instance) - return self.get_instance(pycloudlib_instance, settings) + instance = self.get_instance(pycloudlib_instance, settings) + if wait: + # If we aren't waiting, we can't rely on command execution here + log.info( + 'cloud-init version: %s', + instance.execute("cloud-init --version") + ) + return instance def get_instance(self, cloud_instance, settings=integration_settings): return self.integration_instance_cls(self, cloud_instance, settings) |