@@ -772,12 +772,12 @@ async def test_get_machines(event_loop):
772772
773773@base .bootstrapped
774774@pytest .mark .asyncio
775+ @pytest .mark .wait_for_idle
775776async def test_wait_for_idle_without_units (event_loop ):
776777 async with base .CleanModel () as model :
777778 await model .deploy (
778779 'ubuntu' ,
779780 application_name = 'ubuntu' ,
780- series = 'bionic' ,
781781 channel = 'stable' ,
782782 num_units = 0 ,
783783 )
@@ -787,12 +787,12 @@ async def test_wait_for_idle_without_units(event_loop):
787787
788788@base .bootstrapped
789789@pytest .mark .asyncio
790+ @pytest .mark .wait_for_idle
790791async def test_wait_for_idle_with_not_enough_units (event_loop ):
791792 async with base .CleanModel () as model :
792793 await model .deploy (
793794 'ubuntu' ,
794795 application_name = 'ubuntu' ,
795- series = 'bionic' ,
796796 channel = 'stable' ,
797797 num_units = 2 ,
798798 )
@@ -802,6 +802,7 @@ async def test_wait_for_idle_with_not_enough_units(event_loop):
802802
803803@base .bootstrapped
804804@pytest .mark .asyncio
805+ @pytest .mark .wait_for_idle
805806async def test_wait_for_idle_more_units_than_needed (event_loop ):
806807 async with base .CleanModel () as model :
807808 charm_path = TESTS_DIR / 'charm'
@@ -824,12 +825,12 @@ async def test_wait_for_idle_more_units_than_needed(event_loop):
824825
825826@base .bootstrapped
826827@pytest .mark .asyncio
828+ @pytest .mark .wait_for_idle
827829async def test_wait_for_idle_with_enough_units (event_loop ):
828830 async with base .CleanModel () as model :
829831 await model .deploy (
830832 'ubuntu' ,
831833 application_name = 'ubuntu' ,
832- series = 'bionic' ,
833834 channel = 'stable' ,
834835 num_units = 3 ,
835836 )
@@ -838,12 +839,12 @@ async def test_wait_for_idle_with_enough_units(event_loop):
838839
839840@base .bootstrapped
840841@pytest .mark .asyncio
842+ @pytest .mark .wait_for_idle
841843async def test_wait_for_idle_with_exact_units (event_loop ):
842844 async with base .CleanModel () as model :
843845 await model .deploy (
844846 'ubuntu' ,
845847 application_name = 'ubuntu' ,
846- series = 'bionic' ,
847848 channel = 'stable' ,
848849 num_units = 2 ,
849850 )
@@ -852,6 +853,7 @@ async def test_wait_for_idle_with_exact_units(event_loop):
852853
853854@base .bootstrapped
854855@pytest .mark .asyncio
856+ @pytest .mark .wait_for_idle
855857async def test_wait_for_idle_with_exact_units_scale_down (event_loop ):
856858 """Deploys 3 units, waits for them to be idle, then removes 2 of them,
857859 then waits for exactly 1 unit to be left.
@@ -861,7 +863,7 @@ async def test_wait_for_idle_with_exact_units_scale_down(event_loop):
861863 app = await model .deploy (
862864 'ubuntu' ,
863865 application_name = 'ubuntu' ,
864- series = 'bionic ' ,
866+ series = 'jammy ' ,
865867 channel = 'stable' ,
866868 num_units = 3 ,
867869 )
0 commit comments