summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/integration_tests/conftest.py1
-rw-r--r--tests/integration_tests/platforms.py11
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/integration_tests/conftest.py b/tests/integration_tests/conftest.py
index 37197ae3..9c4eb03a 100644
--- a/tests/integration_tests/conftest.py
+++ b/tests/integration_tests/conftest.py
@@ -48,6 +48,7 @@ def setup_image():
"""
client = dynamic_client()
log.info('Setting up environment for %s', client.datasource)
+ client.emit_settings_to_log()
if integration_settings.CLOUD_INIT_SOURCE == 'NONE':
pass # that was easy
elif integration_settings.CLOUD_INIT_SOURCE == 'IN_PLACE':
diff --git a/tests/integration_tests/platforms.py b/tests/integration_tests/platforms.py
index 3755eb1e..bade5fe0 100644
--- a/tests/integration_tests/platforms.py
+++ b/tests/integration_tests/platforms.py
@@ -37,6 +37,17 @@ class IntegrationClient(ABC):
self.launch_kwargs = launch_kwargs if launch_kwargs else {}
self.client = self._get_client()
+ def emit_settings_to_log(self) -> None:
+ log.info(
+ "\n".join(
+ ["Settings:"]
+ + [
+ "{}={}".format(key, getattr(self.settings, key))
+ for key in sorted(self.settings.current_settings)
+ ]
+ )
+ )
+
@abstractmethod
def _get_client(self):
raise NotImplementedError