コード例 #1
0
def test_attrs(openstack_resource, openstack_host, attr, should):
    _, attrs, _ = openstack_host(openstack_resource, 'module_name')
    assert attr in attrs
    assert attrs[attr] == should
コード例 #2
0
def test_groups(openstack_resource, openstack_host, group):
    _, _, groups = openstack_host(openstack_resource, 'module_name')
    assert group in groups
コード例 #3
0
def test_name(openstack_resource, openstack_host):
    name, _, _ = openstack_host(openstack_resource, '')
    assert name == 'mi-control-01'
コード例 #4
0
def test_name(openstack_resource, openstack_host):
    name, _, _ = openstack_host(openstack_resource, '')
    assert name == 'mi-control-01'
コード例 #5
0
def test_groups(openstack_resource, openstack_host, group):
    _, _, groups = openstack_host(openstack_resource, 'module_name')
    assert group in groups
コード例 #6
0
def test_attrs(openstack_resource, openstack_host, attr, should):
    _, attrs, _ = openstack_host(openstack_resource, 'module_name')
    assert attr in attrs
    assert attrs[attr] == should
コード例 #7
0
def test_groups(openstack_resource, openstack_host, group):
    _, _, groups = openstack_host(openstack_resource)
    assert group in groups