Skip to content

Commit

Permalink
tests: Migrate test_charm to scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Batalex committed Oct 8, 2024
1 parent 514769b commit 4d0cf61
Show file tree
Hide file tree
Showing 2 changed files with 875 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_charm.py → tests/unit/_test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ def test_zookeeper_broken_stops_service_and_removes_meta_properties(harness: Har
harness.remove_relation(zk_rel_id)

patched_stop_snap_service.assert_called_once()
assert re.match(r"rm .*/meta.properties", " ".join(patched_exec.call_args_list[1].args[0]))
assert re.findall(
r"meta.properties -delete", " ".join(patched_exec.call_args_list[1].args[0])
)
assert isinstance(harness.charm.unit.status, BlockedStatus)


Expand Down
Loading

0 comments on commit 4d0cf61

Please sign in to comment.