mirror of
https://github.com/ZwareBear/awx.git
synced 2026-05-05 16:01:50 -05:00
replace our usage of pexpect in IsolatedManager with ansible-runner
This commit is contained in:
@@ -126,23 +126,6 @@ class TestIsolatedManagementTask:
|
||||
inst.save()
|
||||
return inst
|
||||
|
||||
@pytest.mark.skip(reason='fix after runner merge')
|
||||
def test_old_version(self, control_instance, old_version):
|
||||
update_capacity = isolated_manager.IsolatedManager.update_capacity
|
||||
|
||||
assert old_version.capacity == 103
|
||||
with mock.patch('awx.main.tasks.settings', MockSettings()):
|
||||
# Isolated node is reporting an older version than the cluster
|
||||
# instance that issued the health check, set capacity to zero.
|
||||
update_capacity(old_version, {'version': '1.0.0'}, '3.0.0')
|
||||
assert old_version.capacity == 0
|
||||
|
||||
# Upgrade was completed, health check playbook now reports matching
|
||||
# version, make sure capacity is set.
|
||||
update_capacity(old_version, {'version': '5.0.0-things',
|
||||
'capacity_cpu':103, 'capacity_mem':103}, '5.0.0-stuff')
|
||||
assert old_version.capacity == 103
|
||||
|
||||
def test_takes_action(self, control_instance, needs_updating):
|
||||
original_isolated_instance = needs_updating.instances.all().first()
|
||||
with mock.patch('awx.main.tasks.settings', MockSettings()):
|
||||
|
||||
Reference in New Issue
Block a user