Esempio n. 1
0
def test_groups(softlayer_resource, softlayer_host, group):
    _, _, groups = softlayer_host(softlayer_resource, 'module_name')
    assert group in groups
Esempio n. 2
0
def test_attrs(softlayer_resource, softlayer_host, attr, should):
    _, attrs, _ = softlayer_host(softlayer_resource, 'module_name')
    assert attr in attrs
    assert attrs[attr] == should
Esempio n. 3
0
def test_name(softlayer_resource, softlayer_host):
    name, _, _ = softlayer_host(softlayer_resource, '')
    assert name == "mi-control-01"
Esempio n. 4
0
def test_groups(softlayer_resource, softlayer_host, group):
    _, _, groups = softlayer_host(softlayer_resource, 'module_name')
    assert group in groups
Esempio n. 5
0
def test_attrs(softlayer_resource, softlayer_host, attr, should):
    _, attrs, _ = softlayer_host(softlayer_resource, 'module_name')
    assert attr in attrs
    assert attrs[attr] == should
Esempio n. 6
0
def test_name(softlayer_resource, softlayer_host):
    name, _, _ = softlayer_host(softlayer_resource, '')
    assert name == "mi-control-01"