Skip to content

Commit

Permalink
Merge branch 'canonical:main' into TELCO-820-Validate-if-container-is…
Browse files Browse the repository at this point in the history
…-up-before-updating-ca-certs
  • Loading branch information
gatici committed Oct 9, 2023
2 parents 8f1bc7e + d4f8cf5 commit 490bfe9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
4 changes: 0 additions & 4 deletions tests/interface/test_ingress.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ def test_ingress_v1_interface(interface_tester: InterfaceTester):

def test_ingress_v2_interface(interface_tester: InterfaceTester):
interface_tester.configure(
# todo: remove branch/repo overrides when
# https://github.com/canonical/charm-relation-interfaces/pull/85 lands
repo="https://github.com/canonical/charm-relation-interfaces",
branch="ingress-v2-json",
interface_name="ingress",
interface_version=2,
)
Expand Down
7 changes: 2 additions & 5 deletions tests/scenario/test_ipa.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pathlib import Path
from typing import List, Tuple

import pytest
import yaml
from scenario import Context, Relation, State

Expand Down Expand Up @@ -120,7 +119,5 @@ def test_traefik_remote_app_scaledown_from_2(traefik_ctx, traefik_container):
_, dynamic = get_configs(traefik_ctx, state)
assert len(get_servers(dynamic[0])) == 1

with pytest.raises(IndexError):
# FIXME: solved in scenario 5.3.1 @https://github.com/canonical/ops-scenario/pull/64
break_(traefik_ctx, state)
assert not dynamic[0].exists()
break_(traefik_ctx, state)
assert not dynamic[0].exists()
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ allowlist_externals = /usr/bin/env
description = Scenario tests
deps =
pytest
ops-scenario >= 5.3
ops-scenario >= 5.3.1
-r{toxinidir}/requirements.txt
commands =
pytest -v --tb native {[vars]tst_path}/scenario --log-cli-level=INFO -s {posargs}
Expand All @@ -94,7 +94,7 @@ commands =
description = Run interface tests
deps =
pytest
ops-scenario>=5.3
ops-scenario>=5.3.1
pytest-interface-tester > 0.3
-r{toxinidir}/requirements.txt
commands =
Expand Down

0 comments on commit 490bfe9

Please sign in to comment.