Example #1
0
def test_groups(softlayer_resource, softlayer_host, group):
    _, _, groups = softlayer_host(softlayer_resource, 'module_name')
    assert group in groups
Example #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
Example #3
0
def test_name(softlayer_resource, softlayer_host):
    name, _, _ = softlayer_host(softlayer_resource, '')
    assert name == "mi-control-01"
Example #4
0
def test_groups(softlayer_resource, softlayer_host, group):
    _, _, groups = softlayer_host(softlayer_resource, 'module_name')
    assert group in groups
Example #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
Example #6
0
def test_name(softlayer_resource, softlayer_host):
    name, _, _ = softlayer_host(softlayer_resource, '')
    assert name == "mi-control-01"