Skip to content

Commit

Permalink
Set default k8s snap track for registry (#852)
Browse files Browse the repository at this point in the history
The registry setup fails if we do not set config.SNAP.
However, there a valid use cases, e.g. promotion tests in which a snap is not set.
We don't really care about the concrete snap version that is deployed on the registry as it is only used to collect inspection reports.
  • Loading branch information
bschimke95 authored Nov 28, 2024
1 parent 03582e1 commit cb4e4b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/integration/tests/test_util/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ def __init__(self, h: Harness):

self.add_mirrors()

setup_k8s_snap(self.instance, Path("/"))
# Setup the k8s snap on the instance.
# Use the latest/edge/classic channel as this version is only used to collect logs.
# This would fail if the `TEST_SNAP` environment variable is not set which however has
# valid use cases, e.g. in the promotion scenarios.
setup_k8s_snap(self.instance, Path("/"), "latest/edge/classic")

def get_configured_mirrors(self) -> List[Mirror]:
mirrors: List[Mirror] = []
Expand Down

0 comments on commit cb4e4b1

Please sign in to comment.