Skip to content

Commit

Permalink
Integration Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak committed Oct 22, 2024
1 parent 4206888 commit 82131d0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@


@pytest.mark.abort_on_fail
@pytest.mark.skip_if_deployed
async def test_deploy_charms(
ops_test: OpsTest,
application_charm,
Expand Down Expand Up @@ -1176,6 +1177,13 @@ async def test_provider_get_set_delete_fields_secrets(
await action.wait()
assert action.results["return-code"] == 0

action = await ops_test.model.units.get(leader_name).run_action(
"delete-relation-field",
**{"relation_id": pytest.second_database_relation.id, "field": "tls-ca"},
)
await action.wait()
assert action.results["return-code"] == 0


@pytest.mark.abort_on_fail
@pytest.mark.log_errors_allowed("Can't delete secret for relation")
Expand Down

0 comments on commit 82131d0

Please sign in to comment.