Skip to content

Commit

Permalink
fixup! Integration Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak committed Oct 22, 2024
1 parent 82131d0 commit 8d4d88c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,6 @@ async def test_provider_get_set_delete_fields(field, value, ops_test: OpsTest):
)


@pytest.mark.log_errors_allowed(
"Non-existing field 'doesnt_exist' was attempted to be removed from the databag"
)
@pytest.mark.parametrize(
"field,value,relation_field",
[
Expand Down Expand Up @@ -1186,7 +1183,6 @@ async def test_provider_get_set_delete_fields_secrets(


@pytest.mark.abort_on_fail
@pytest.mark.log_errors_allowed("Can't delete secret for relation")
@pytest.mark.usefixtures("only_with_juju_secrets")
async def test_provider_deleted_secret_is_removed(ops_test: OpsTest):
"""The 'tls' field, that was removed in the previous test has it's secret removed."""
Expand Down Expand Up @@ -1225,7 +1221,7 @@ async def test_provider_deleted_secret_is_removed(ops_test: OpsTest):
strings=["Non-existing field 'tls' was attempted to be removed from the databag"],
)
)
assert not (await check_logs(ops_test, strings=["Can't delete secret for relation"]))
assert not (await check_logs(ops_test, strings=["Can't delete secrets from group 'tls'"]))

action = await ops_test.model.units.get(leader_name).run_action(
"delete-relation-field",
Expand All @@ -1235,7 +1231,7 @@ async def test_provider_deleted_secret_is_removed(ops_test: OpsTest):
assert await check_logs(
ops_test, strings=["Non-existing field 'tls' was attempted to be removed from the databag"]
)
assert await check_logs(ops_test, strings=["Can't delete secret for relation"])
assert await check_logs(ops_test, strings=["Can't delete secrets from group 'tls'"])

assert (
await get_application_relation_data(
Expand Down

0 comments on commit 8d4d88c

Please sign in to comment.