We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67772d8 commit cb9b4a9Copy full SHA for cb9b4a9
1 file changed
tests/integration/test_model.py
@@ -882,6 +882,23 @@ async def test_wait_for_idle_with_exact_units_scale_down_zero(event_loop):
882
assert (end_time - start_time) > 0.001
883
884
885
+@base.bootstrapped
886
+@pytest.mark.asyncio
887
+async def test_destroy_units(event_loop):
888
+ async with base.CleanModel() as model:
889
+ app = await model.deploy(
890
+ 'ubuntu',
891
+ application_name='ubuntu',
892
+ series='jammy',
893
+ channel='stable',
894
+ num_units=3,
895
+ )
896
+ await model.wait_for_idle(status='active')
897
+ await model.destroy_units(*[u.name for u in app.units])
898
+ await model.wait_for_idle(timeout=5 * 60, wait_for_exact_units=0)
899
+ assert app.units == []
900
+
901
902
@base.bootstrapped
903
@pytest.mark.asyncio
904
async def test_watcher_reconnect(event_loop):
0 commit comments