diff options
-rw-r--r-- | tests/integration_tests/clouds.py | 6 | ||||
-rw-r--r-- | tests/integration_tests/test_upgrade.py | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration_tests/clouds.py b/tests/integration_tests/clouds.py index e55093b1..3b80caf3 100644 --- a/tests/integration_tests/clouds.py +++ b/tests/integration_tests/clouds.py @@ -106,14 +106,14 @@ class IntegrationCloud(ABC): def __init__(self, settings=integration_settings): self.settings = settings self.cloud_instance = self._get_cloud_instance() - self.released_image_id = self._get_initial_image() + self.initial_image_id = self._get_initial_image() self.snapshot_id = None @property def image_id(self): if self.snapshot_id: return self.snapshot_id - return self.released_image_id + return self.initial_image_id def emit_settings_to_log(self) -> None: log.info( @@ -133,7 +133,7 @@ class IntegrationCloud(ABC): def _get_initial_image(self): image = ImageSpecification.from_os_image() try: - return self.cloud_instance.released_image(image.image_id) + return self.cloud_instance.daily_image(image.image_id) except (ValueError, IndexError): return image.image_id diff --git a/tests/integration_tests/test_upgrade.py b/tests/integration_tests/test_upgrade.py index e53ea998..b13d4703 100644 --- a/tests/integration_tests/test_upgrade.py +++ b/tests/integration_tests/test_upgrade.py @@ -59,7 +59,7 @@ def test_clean_boot_of_upgraded_package(session_cloud: IntegrationCloud): return launch_kwargs = { - "image_id": session_cloud.released_image_id, + "image_id": session_cloud.initial_image_id, } with session_cloud.launch( @@ -178,7 +178,7 @@ def test_subsequent_boot_of_upgraded_package(session_cloud: IntegrationCloud): pytest.skip(UNSUPPORTED_INSTALL_METHOD_MSG.format(source)) return # type checking doesn't understand that skip raises - launch_kwargs = {"image_id": session_cloud.released_image_id} + launch_kwargs = {"image_id": session_cloud.initial_image_id} with session_cloud.launch(launch_kwargs=launch_kwargs) as instance: instance.install_new_cloud_init( |