def test_bld_spot(m, example_data):
    m.return_value = example_data
    slaves = get_classified_slaves(True)
    assert slaves == {
        'bld-linux64': {
            'us-west-2': set(['slave-spot-1'])
        },
        'tst-emulator64': {
            'us-west-2': set(['slave-spot-3'])
        }
    }
Пример #2
0
def test_bld_ondemand(m, example_data):
    m.return_value = example_data
    slaves = get_classified_slaves(False)
    assert slaves == {'bld-linux64': {'us-west-2': set(['slave-1'])}}
def test_bld_ondemand(m, example_data):
    m.return_value = example_data
    slaves = get_classified_slaves(False)
    assert slaves == {'bld-linux64': {'us-west-2': set(['slave-1'])}}
def test_bld_spot(m, example_data):
    m.return_value = example_data
    slaves = get_classified_slaves(True)
    assert slaves == {'bld-linux64': {'us-west-2': set(['slave-spot-1'])},
                      'tst-emulator64': {'us-west-2': set(['slave-spot-3'])}}