Beispiel #1
0
def test_groups(ucs_resource, ucs_host, group):
    _, _, groups = ucs_host(ucs_resource, 'root')
    assert group in groups
Beispiel #2
0
def test_attrs(ucs_resource, ucs_host, attr, should):
    _, attrs, _ = ucs_host(ucs_resource, 'root')
    assert attr in attrs
    assert attrs[attr] == should
Beispiel #3
0
def test_name(ucs_resource, ucs_host):
    name, _, _ = ucs_host(ucs_resource, '')
    assert name == 'control-0.mydomain.com'
Beispiel #4
0
def test_groups(ucs_resource, ucs_host, group):
    _, _, groups = ucs_host(ucs_resource, 'root')
    assert group in groups
Beispiel #5
0
def test_attrs(ucs_resource, ucs_host, attr, should):
    _, attrs, _ = ucs_host(ucs_resource, 'root')
    assert attr in attrs
    assert attrs[attr] == should
Beispiel #6
0
def test_name(ucs_resource, ucs_host):
    name, _, _ = ucs_host(ucs_resource, '')
    assert name == 'control-0.mydomain.com'