def resource_setup(cls): super(DaisyHostTest, cls).resource_setup() cls.fake = logical_fake() cls.host_meta = copy.deepcopy(FakeDiscoverHosts().daisy_data[0]) cls.host_meta_interfaces = { 'type': 'ether', 'name': 'enp129s0f0', 'mac': '4c:09:b4:b2:78:8a', 'ip': '99.99.1.121', 'netmask': '255.255.255.0', 'is_deployment': 'True', 'slaves': 'eth1', 'pci': '1', 'gateway': '99.99.1.1'}
def resource_setup(cls): super(DaisyCinderVolumeTest, cls).resource_setup() cls.fake = logical_fake() cls.cinder_volume_add_meta = \ {'disk_array': [{'management_ips': '10.43.177.1,10.43.177.2', 'pools': 'pool1,pool2', 'user_name': 'rooot', 'user_pwd': 'pwd', 'volume_driver': 'KS3200_FCSAN', 'volume_type': 'KISP-1'}]} cls.cinder_volume_update_meta = {'management_ips': '10.43.177.3', 'pools': 'pool3', 'user_name': 'rooot', 'user_pwd': 'pwd', 'volume_driver': 'KS3200_FCSAN', 'volume_type': 'KISP-1'} cls.cluster_meta = \ {'description': 'desc', 'logic_networks': [{'name': 'external1', 'physnet_name': 'phynet2', 'segmentation_id': 200, 'segmentation_type': 'vlan', 'shared': True, 'subnets': [{'cidr': '192.168.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.1.2', '192.168.1.200']], 'gateway': '192.168.1.1', 'name': 'subnet2'}, {'cidr': '172.16.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['172.16.1.130', '172.16.1.150'], ['172.16.1.151', '172.16.1.254']], 'gateway': '172.16.1.1', 'name': 'subnet10'}], 'type': 'external'}, {'name': 'internal2', 'physnet_name': 'phynet1', 'segmentation_id': 1023, 'segmentation_type': 'vxlan', 'shared': True, 'subnets': [{'cidr': '192.168.2.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.2.130', '192.168.2.254']], 'gateway': '192.168.2.1', 'name': 'subnet123'}], 'type': 'internal'}, {'name': 'internal1', 'physnet_name': 'phynet3', 'segmentation_id': '777', 'segmentation_type': 'vlan', 'shared': False, 'subnets': [{'cidr': '192.168.31.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.31.130', '192.168.31.254']], 'gateway': '192.168.31.1', 'name': 'subnet3'}, {'cidr': '192.168.4.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.4.130', '192.168.4.254']], 'gateway': '192.168.4.1', 'name': 'subnet4'}], 'type': 'internal'}], 'name': 'test', 'networking_parameters': {'base_mac': 'fa:16:3e:00:00:00', 'gre_id_range': [2, 2000], 'net_l23_provider': 'ovs', 'public_vip': '172.16.0.3', 'segmentation_type': 'vlan,vxlan', 'vlan_range': [2, 4094], 'vni_range': [1000, 1030]}, 'networks': [], 'nodes': [], 'routers': [{'description': 'router1', 'external_logic_network': 'external1', 'name': 'router1', 'subnets': ['subnet4', 'subnet3', 'subnet2']}, {'description': 'router2', 'external_logic_network': 'external1', 'name': 'router2', 'subnets': ['subnet10']}]} cls.role_meta = {'name': 'test_role', 'description': 'test'}
def resource_setup(cls): super(DaisyDiscoverHostTest, cls).resource_setup() cls.fake = logical_fake() cls.host_meta = {'ip': '127.0.0.1', 'passwd': 'ossdbg1'}
def resource_setup(cls): super(TecsClusterTest, cls).resource_setup() cls.fake = logical_fake() cls.host_meta = { 'name': 'test_add_host', 'description': 'test_tempest' } cls.cluster_meta1 = {'description': 'desc', 'name': 'test'} cls.cluster_meta2 = \ {'description': 'desc', 'logic_networks': [{'name': 'external1', 'physnet_name': 'phynet2', 'segmentation_id': 200, 'segmentation_type': 'vlan', 'shared': True, 'subnets': [{'cidr': '192.168.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.1.2', '192.168.1.200']], 'gateway': '192.168.1.1', 'name': 'subnet2'}, {'cidr': '172.16.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['172.16.1.130', '172.16.1.150']], 'gateway': '172.16.1.1', 'name': 'subnet10'}], 'type': 'external'}, {'name': 'internal1', 'physnet_name': 'phynet1', 'segmentation_id': '777', 'segmentation_type': 'vlan', 'shared': False, 'subnets': [{'cidr': '192.168.31.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.31.130', '192.168.31.254']], 'gateway': '192.168.31.1', 'name': 'subnet3'}, {'cidr': '192.168.4.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.4.130', '192.168.4.254']], 'gateway': '192.168.4.1', 'name': 'subnet4'}], 'type': 'internal'}], 'name': 'test', 'networking_parameters': {'base_mac': 'fa:16:3e:00:00:00', 'gre_id_range': [2, 2000], 'net_l23_provider': 'ovs', 'public_vip': '172.16.0.3', 'segmentation_type': 'vlan,vxlan', 'vlan_range': [2, 4094], 'vni_range': [1000, 1030]}, 'networks': [], 'nodes': [], 'routers': [{'description': 'router1', 'external_logic_network': 'external1', 'name': 'router1', 'subnets': ['subnet4']}, {'description': 'router2', 'external_logic_network': 'external1', 'name': 'router2', 'subnets': ['subnet10']}]} cls.cluster_meta3 = { 'description': "This cluster's name is null", 'name': "" } cls.cluster_meta4 = { 'description': "", 'name': "rwj_test_add_cluster_no_description" } cls.cluster_meta5 = { 'description': "test_add_host5", 'name': "test_add_host5" } cls.cluster_meta6 = { 'description': "test_add_host6", 'name': "test_add_host6" } cls.cluster_meta7 = { 'description': "test_add_host7", 'name': "test_add_host7" } cls.cluster_meta8 = { 'description': "test_add_host7", 'name': "test_add_host7", 'auto_scale': 1 }
def resource_setup(cls): super(TecsClusterTest, cls).resource_setup() cls.fake = logical_fake() cls.host_meta = {'name': 'test_add_host', 'description': 'test_tempest'} cls.cluster_meta1 = {'description': 'desc', 'name': 'test'} cls.cluster_meta2 = \ {'description': 'desc', 'logic_networks': [{'name': 'external1', 'physnet_name': 'phynet2', 'segmentation_id': 200, 'segmentation_type': 'vlan', 'shared': True, 'subnets': [{'cidr': '192.168.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.1.2', '192.168.1.200']], 'gateway': '192.168.1.1', 'name': 'subnet2'}, {'cidr': '172.16.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['172.16.1.130', '172.16.1.150']], 'gateway': '172.16.1.1', 'name': 'subnet10'}], 'type': 'external'}, {'name': 'internal1', 'physnet_name': 'phynet1', 'segmentation_id': '777', 'segmentation_type': 'vlan', 'shared': False, 'subnets': [{'cidr': '192.168.31.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.31.130', '192.168.31.254']], 'gateway': '192.168.31.1', 'name': 'subnet3'}, {'cidr': '192.168.4.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.4.130', '192.168.4.254']], 'gateway': '192.168.4.1', 'name': 'subnet4'}], 'type': 'internal'}], 'name': 'test', 'networking_parameters': {'base_mac': 'fa:16:3e:00:00:00', 'gre_id_range': [2, 2000], 'net_l23_provider': 'ovs', 'public_vip': '172.16.0.3', 'segmentation_type': 'vlan,vxlan', 'vlan_range': [2, 4094], 'vni_range': [1000, 1030]}, 'networks': [], 'nodes': [], 'routers': [{'description': 'router1', 'external_logic_network': 'external1', 'name': 'router1', 'subnets': ['subnet4']}, {'description': 'router2', 'external_logic_network': 'external1', 'name': 'router2', 'subnets': ['subnet10']}]} cls.cluster_meta3 = {'description': "This cluster's name is null", 'name': ""} cls.cluster_meta4 = {'description': "", 'name': "rwj_test_add_cluster_no_description"} cls.cluster_meta5 = {'description': "test_add_host5", 'name': "test_add_host5"} cls.cluster_meta6 = {'description': "test_add_host6", 'name': "test_add_host6"} cls.cluster_meta7 = {'description': "test_add_host7", 'name': "test_add_host7"} cls.cluster_meta8 = {'description': "test_add_host7", 'name': "test_add_host7", 'auto_scale': 1}
def resource_setup(cls): super(TecsLogicalNetworkTest, cls).resource_setup() cls.fake = logical_fake()
def resource_setup(cls): super(DaisyCinderVolumeTest, cls).resource_setup() cls.fake = logical_fake() cls.cinder_volume_add_meta = \ {'disk_array': [{'management_ips': '10.43.177.1,10.43.177.2', 'pools': 'pool1,pool2', 'user_name': 'rooot', 'user_pwd': 'pwd', 'volume_driver': 'KS3200_FCSAN', 'volume_type': 'KISP-1'}]} cls.cinder_volume_update_meta = { 'management_ips': '10.43.177.3', 'pools': 'pool3', 'user_name': 'rooot', 'user_pwd': 'pwd', 'volume_driver': 'KS3200_FCSAN', 'volume_type': 'KISP-1' } cls.cluster_meta = \ {'description': 'desc', 'logic_networks': [{'name': 'external1', 'physnet_name': 'phynet2', 'segmentation_id': 200, 'segmentation_type': 'vlan', 'shared': True, 'subnets': [{'cidr': '192.168.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.1.2', '192.168.1.200']], 'gateway': '192.168.1.1', 'name': 'subnet2'}, {'cidr': '172.16.1.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['172.16.1.130', '172.16.1.150'], ['172.16.1.151', '172.16.1.254']], 'gateway': '172.16.1.1', 'name': 'subnet10'}], 'type': 'external'}, {'name': 'internal2', 'physnet_name': 'phynet1', 'segmentation_id': 1023, 'segmentation_type': 'vxlan', 'shared': True, 'subnets': [{'cidr': '192.168.2.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.2.130', '192.168.2.254']], 'gateway': '192.168.2.1', 'name': 'subnet123'}], 'type': 'internal'}, {'name': 'internal1', 'physnet_name': 'phynet3', 'segmentation_id': '777', 'segmentation_type': 'vlan', 'shared': False, 'subnets': [{'cidr': '192.168.31.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.31.130', '192.168.31.254']], 'gateway': '192.168.31.1', 'name': 'subnet3'}, {'cidr': '192.168.4.0/24', 'dns_nameservers': ['8.8.4.4', '8.8.8.8'], 'floating_ranges': [['192.168.4.130', '192.168.4.254']], 'gateway': '192.168.4.1', 'name': 'subnet4'}], 'type': 'internal'}], 'name': 'test', 'networking_parameters': {'base_mac': 'fa:16:3e:00:00:00', 'gre_id_range': [2, 2000], 'net_l23_provider': 'ovs', 'public_vip': '172.16.0.3', 'segmentation_type': 'vlan,vxlan', 'vlan_range': [2, 4094], 'vni_range': [1000, 1030]}, 'networks': [], 'nodes': [], 'routers': [{'description': 'router1', 'external_logic_network': 'external1', 'name': 'router1', 'subnets': ['subnet4', 'subnet3', 'subnet2']}, {'description': 'router2', 'external_logic_network': 'external1', 'name': 'router2', 'subnets': ['subnet10']}]} cls.role_meta = {'name': 'test_role', 'description': 'test'}