Skip to content

Commit

Permalink
fix arch check
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical committed May 27, 2024
1 parent 851a1bb commit c0f6026
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/integration/test_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c0f6026

Please sign in to comment.