Skip to content

Commit

Permalink
fix: Pin integration test dependencies (#162)
Browse files Browse the repository at this point in the history
Pin dependencies to their corresponding stable channels.

Ref canonical/bundle-kubeflow#865
  • Loading branch information
orfeas-k authored Apr 15, 2024
1 parent cdfb7a1 commit a9ae634
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@

METADATA = yaml.safe_load(Path("./metadata.yaml").read_text())
CHARM_NAME = METADATA["name"]
ADMISSION_WEBHOOK_NAME = "admission-webhook"
ADMISSION_WEBHOOK = "admission-webhook"
ADMISSION_WEBHOOK_CHANNEL = "1.8/stable"
ADMISSION_WEBHOOK_TRUST = True


@pytest.mark.abort_on_fail
Expand Down Expand Up @@ -106,8 +108,10 @@ async def test_create_profile_action(lightkube_client, ops_test):
Deploy admission-webhook before testing success of the actions to enable applying PodDefaults,
PodDefault CRD is part of admission-webhooks's CRDs.
"""
await ops_test.model.deploy(ADMISSION_WEBHOOK_NAME, channel="latest/edge", trust=True)
await ops_test.model.wait_for_idle(apps=[ADMISSION_WEBHOOK_NAME], status="active")
await ops_test.model.deploy(
ADMISSION_WEBHOOK, channel=ADMISSION_WEBHOOK_CHANNEL, trust=ADMISSION_WEBHOOK_TRUST
)
await ops_test.model.wait_for_idle(apps=[ADMISSION_WEBHOOK], status="active")
namespace = ops_test.model_name
username = "admin"
profile_name = "myname"
Expand Down

0 comments on commit a9ae634

Please sign in to comment.