From c0f602665607f9a6e1292169de2e54a10fddf0d2 Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Mon, 27 May 2024 10:20:30 +0200 Subject: [PATCH] fix arch check --- tests/integration/test_backups.py | 4 ++-- tests/integration/test_tls.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/integration/test_backups.py b/tests/integration/test_backups.py index 7be2a7d73a..92889ed267 100644 --- a/tests/integration/test_backups.py +++ b/tests/integration/test_backups.py @@ -32,14 +32,14 @@ FAILED_TO_INITIALIZE_STANZA_ERROR_MESSAGE = "failed to initialize stanza, check your S3 settings" S3_INTEGRATOR_APP_NAME = "s3-integrator" if juju_major_version < 3: - if architecture == "arm64": + if architecture.architecture == "arm64": pytest.skip(allow_module_level=True) tls_certificates_app_name = "tls-certificates-operator" tls_channel = "legacy/stable" tls_config = {"generate-self-signed-certificates": "true", "ca-common-name": "Test CA"} else: tls_certificates_app_name = "self-signed-certificates" - if architecture == "arm64": + if architecture.architecture == "arm64": tls_channel = "latest/edge" else: tls_channel = "latest/stable" diff --git a/tests/integration/test_tls.py b/tests/integration/test_tls.py index e11e84c6ef..f627291900 100644 --- a/tests/integration/test_tls.py +++ b/tests/integration/test_tls.py @@ -31,14 +31,14 @@ APP_NAME = METADATA["name"] if juju_major_version < 3: - if architecture == "arm64": + if architecture.architecture == "arm64": pytest.skip(allow_module_level=True) tls_certificates_app_name = "tls-certificates-operator" tls_channel = "legacy/stable" tls_config = {"generate-self-signed-certificates": "true", "ca-common-name": "Test CA"} else: tls_certificates_app_name = "self-signed-certificates" - if architecture == "arm64": + if architecture.architecture == "arm64": tls_channel = "latest/edge" else: tls_channel = "latest/stable"