testcase_inreport['objective'] = ''
testcase_inreport['sub_testcase'] = []
testcase_inreport['mandatory'] = False
+ testcase_inreport['portal_key_file'] = ''
report_obj['testcases_list'].append(testcase_inreport)
continue
report_obj['vnf_type'] = vnf_type
report_obj['vnf_checksum'] = self.get_checksum(vnf_type)
testcase_inreport['mandatory'] = testcase.is_mandatory
+ testcase_inreport['portal_key_file'] = testcase.portal_key_file()
testcase_inreport['sub_testcase'] = []
if testcase.sub_testcase() is not None:
for sub_test in testcase.sub_testcase():
def validate_testcase(self):
return self.testcase['validate']['testcase']
+ def portal_key_file(self):
+ return self.testcase['report']['portal_key_file']
+
def increase_retry(self):
return self._increase_retry(self.validate_testcase())
testcase_obj.objective.return_value = 'objective'
mock_checksum.return_value = 'da39a3ee5e6b4b0d3255bfef95601890afd80709'
testcase_obj.is_mandatory = True
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.vnf_type.return_value = 'tosca'
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]
testcase_obj.objective.return_value = 'objective'
testcase_obj.is_mandatory = True
testcase_obj.vnf_type.return_value = None
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
mock_testcase.get.side_effect = [testcase_obj, None]
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]
testcase_obj.passed.return_value = 'PASS'
testcase_obj.objective.return_value = 'objective'
testcase_obj.is_mandatory = True
+ testcase_obj.portal_key_file.return_value = 'a/b.log'
testcase_obj.vnf_type.side_effect = Exception()
testcase_obj.sub_testcase.return_value = ['subt_a']
testcase_obj.sub_testcase_passed.return_value = 'PASS'
'result': 'PASS',
'objective': 'objective',
'mandatory': True,
+ 'portal_key_file': 'a/b.log',
'sub_testcase': [{
'name': 'subt_a',
'result': 'PASS'
'result': 'Undefined',
'objective': '',
'mandatory': False,
+ 'portal_key_file': '',
'sub_testcase': []
}
]
self.assertEquals('tempest_smoke_serial', result)
+ def test_portal_key_file(self):
+ testcase = tcase.Testcase(self.testcase_yaml)
+
+ result = testcase.portal_key_file()
+
+ self.assertEquals('tempest_logs/tempest_smoke_serial.html', result)
+
def test_vnf_type(self):
testcase = tcase.OnapVtpTestcase(self.testcase_yaml)
type: functest
testcase: tempest_smoke_serial
report:
+ portal_key_file: tempest_logs/tempest_smoke_serial.html
sub_testcase_list:
- tempest.api.network.test_networks.BulkNetworkOpsIpV6Test.test_bulk_create_delete_network
- tempest.api.network.test_networks.BulkNetworkOpsIpV7Test.test_bulk_create_delete_port
- stress_logs/bottlenecks.stress.ping.out
check_results_files:
- stress_logs/bottlenecks.stress.ping.out
+ portal_key_file: stress_logs/bottlenecks.stress.ping.log
sub_testcase_list:
- healthcheck_logs/functest.healthcheck.connection_check.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: healthcheck_logs/functest.healthcheck.connection_check.log
sub_testcase_list:
- k8s_logs/functest.k8s.conformance.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: k8s_logs/functest.k8s.conformance.log
sub_testcase_list:
- k8s_logs/functest.k8s.smoke.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: k8s_logs/functest.k8s.smoke.log
sub_testcase_list:
- rally_authenticate_logs/authenticate.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_authenticate_logs/functest.rally.authenticate.functest.log
sub_testcase_list:
- 'Authenticate.keystone'
- 'Authenticate.validate_cinder'
- rally_cinder_logs/cinder.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_cinder_logs/functest.rally.cinder.functest.log
sub_testcase_list:
- 'CinderVolumes.create_and_attach_volume'
- 'CinderVolumes.create_and_list_snapshots'
- rally_glance_logs/glance.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_glance_logs/functest.rally.glance.functest.log
sub_testcase_list:
- 'GlanceImages.create_and_delete_image'
- 'GlanceImages.create_and_list_image'
- rally_gnocchi_logs/gnocchi.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_gnocchi_logs/functest.rally.gnocchi.functest.log
sub_testcase_list:
- 'Gnocchi.list_capabilities'
- 'Gnocchi.get_status'
- rally_heat_logs/heat.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_heat_logs/functest.rally.heat.functest.log
sub_testcase_list:
- 'HeatStacks.create_and_delete_stack'
- 'HeatStacks.create_and_delete_stack-2'
- rally_keystone_logs/keystone.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_keystone_logs/functest.rally.keystone.functest.log
sub_testcase_list:
- 'KeystoneBasic.add_and_remove_user_role'
- 'KeystoneBasic.create_add_and_list_user_roles'
- rally_neutron_logs/neutron.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_neutron_logs/functest.rally.neutron.functest.log
sub_testcase_list:
- 'NeutronNetworks.create_and_update_networks'
- 'NeutronNetworks.create_and_update_ports'
- rally_nova_logs/nova.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_nova_logs/functest.rally.nova.functest.log
sub_testcase_list:
- 'NovaKeypair.create_and_delete_keypair'
- 'NovaKeypair.create_and_list_keypairs'
- rally_quotas_logs/quotas.xml
check_results_files:
- 'functest_results.txt'
+ portal_key_file: rally_quotas_logs/functest.rally.quotas.functest.log
sub_testcase_list:
- 'Quotas.cinder_update_and_delete'
- 'Quotas.cinder_update'
- security_logs/functest.security.patrole.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: security_logs/functest.security.patrole.html
sub_testcase_list:
- patrole_tempest_plugin.tests.api.image.test_image_namespace_objects_rbac.ImageNamespacesObjectsRbacTest.test_create_metadef_object_in_namespace
- patrole_tempest_plugin.tests.api.image.test_image_namespace_objects_rbac.ImageNamespacesObjectsRbacTest.test_list_metadef_objects_in_namespace
- security_logs/functest.security.patrole_vxlan_dependent.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: security_logs/functest.security.patrole_vxlan_dependent.html
sub_testcase_list:
- patrole_tempest_plugin.tests.api.network.test_networks_rbac.NetworksRbacTest.test_create_network_provider_network_type[id-3c42f7b8-b80c-44ef-8fa4-69ec4b1836bc]
- patrole_tempest_plugin.tests.api.network.test_networks_rbac.NetworksRbacTest.test_create_network_provider_segmentation_id[id-b9decb7b-68ef-4504-b99b-41edbf7d2af5]
- tempest_logs/functest.tempest.bgpvpn.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.bgpvpn.html
sub_testcase_list:
- networking_bgpvpn_tempest.tests.api.test_bgpvpn.BgpvpnTest.test_associate_disassociate_network
- networking_bgpvpn_tempest.tests.api.test_bgpvpn.BgpvpnTest.test_associate_disassociate_router
- tempest_logs/functest.tempest.compute.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.compute.html
sub_testcase_list:
- tempest.api.compute.flavors.test_flavors.FlavorsV2TestJSON.test_get_flavor[id-1f12046b-753d-40d2-abb6-d8eb8b30cb2f,smoke]
- tempest.api.compute.flavors.test_flavors.FlavorsV2TestJSON.test_list_flavors[id-e36c0eaa-dff5-4082-ad1f-3f9a80aa3f59,smoke]
- tempest_logs/functest.tempest.identity_v3.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.identity_v3.html
sub_testcase_list:
- tempest.api.identity.admin.v3.test_credentials.CredentialsTestJSON.test_credentials_create_get_update_delete[id-7cd59bf9-bda4-4c72-9467-d21cab278355,smoke]
- tempest.api.identity.admin.v3.test_domains.DomainsTestJSON.test_create_update_delete_domain[id-f2f5b44a-82e8-4dad-8084-0661ea3b18cf,smoke]
- tempest_logs/functest.tempest.image.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.image.html
sub_testcase_list:
- tempest.api.image.v2.test_images.BasicOperationsImagesTest.test_register_upload_get_image_file[id-139b765e-7f3d-4b3d-8b37-3ca3876ee318,smoke]
- tempest.api.image.v2.test_versions.VersionsTest.test_list_versions[id-659ea30a-a17c-4317-832c-0f68ed23c31d,smoke]
- tempest_logs/functest.tempest.ipv6_api.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.ipv6_api.html
sub_testcase_list:
- tempest.api.network.test_networks.BulkNetworkOpsIpV6Test.test_bulk_create_delete_network[id-d4f9024d-1e28-4fc1-a6b1-25dbc6fa11e2,smoke]
- tempest.api.network.test_networks.BulkNetworkOpsIpV6Test.test_bulk_create_delete_port[id-48037ff2-e889-4c3b-b86a-8e3f34d2d060,smoke]
- tempest_logs/functest.tempest.ipv6_scenario.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.ipv6_scenario.html
sub_testcase_list:
- tempest.scenario.test_network_v6.TestGettingAddress.test_dhcp6_stateless_from_os[compute,id-d7e1f858-187c-45a6-89c9-bdafde619a9f,network,slow]
- tempest.scenario.test_network_v6.TestGettingAddress.test_dualnet_dhcp6_stateless_from_os[compute,id-76f26acd-9688-42b4-bc3e-cd134c4cb09e,network,slow]
- tempest_logs/functest.tempest.multi_node_scheduling.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.multi_node_scheduling.html
sub_testcase_list:
- tempest.scenario.test_server_multinode.TestServerMultinode.test_schedule_to_all_nodes[compute,id-9cecbe35-b9d4-48da-a37e-7ce70aa43d30,network,smoke]
- tempest.api.compute.servers.test_server_group.ServerGroupTestJSON.test_create_delete_multiple_server_groups_with_same_name_policy[id-154dc5a4-a2fe-44b5-b99e-f15806a4a113]
- tempest_logs/functest.tempest.network_api.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.network_api.html
sub_testcase_list:
- tempest.api.network.test_extensions.ExtensionsTestJSON.test_list_show_extensions[id-ef28c7e6-e646-4979-9d67-deb207bc5564,smoke]
- tempest.api.network.test_floating_ips.FloatingIPTestJSON.test_create_floating_ip_specifying_a_fixed_ip_address[id-36de4bd0-f09c-43e3-a8e1-1decc1ffd3a5,smoke]
- tempest_logs/functest.tempest.network_scenario.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.network_scenario.html
sub_testcase_list:
- tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_hotplug_nic[compute,id-c5adff73-e961-41f1-b4a9-343614f18cfa,network]
- tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_network_basic_ops[compute,id-f323b3ba-82f8-4db7-8ea6-6a895869ec49,network,smoke]
- tempest_logs/functest.tempest.network_security.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.network_security.html
sub_testcase_list:
- tempest.scenario.test_network_basic_ops.TestNetworkBasicOps.test_port_security_macspoofing_port[compute,id-7c0bb1a2-d053-49a4-98f9-ca1a1d849f63,network,slow]
- tempest.scenario.test_security_groups_basic_ops.TestSecurityGroupsBasicOps.test_cross_tenant_traffic[compute,id-e79f879e-debb-440c-a7e4-efeda05b6848,network]
- neutron_tempest_plugin_api_logs/functest.tempest.neutron_tempest_plugin_api.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: neutron_tempest_plugin_api_logs/functest.tempest.neutron_tempest_plugin_api.html
sub_testcase_list:
- neutron_tempest_plugin.api.test_qos.QosBandwidthLimitRuleTestJSON.test_rule_create
- neutron_tempest_plugin.api.test_qos.QosBandwidthLimitRuleTestJSON.test_get_rules_by_policy
- tempest_logs/functest.tempest.osinterop.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.osinterop.html
sub_testcase_list:
- tempest.api.network.test_security_groups.SecGroupTest.test_create_security_group_rule_with_icmp_type_code
- tempest.api.network.test_networks.NetworksTest.test_update_subnet_gw_dns_host_routes_dhcp
- tempest_logs/functest.tempest.neutron_trunk_ports.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.neutron_trunk_ports.html
sub_testcase_list:
- neutron_tempest_plugin.api.test_trunk.TrunkTestJSON.test_add_subports
- neutron_tempest_plugin.api.test_trunk.TrunkTestJSON.test_create_show_delete_trunk
- tempest_logs/functest.tempest.vm_lifecycle.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.vm_lifecycle.html
sub_testcase_list:
- tempest.scenario.test_minimum_basic.TestMinimumBasicScenario.test_minimum_basic_scenario[compute,id-bdbb5441-9204-419d-a225-b4fdbfb1a1a8,image,network,volume]
- tempest.scenario.test_network_advanced_server_ops.TestNetworkAdvancedServerOps.test_server_connectivity_cold_migration[compute,id-a4858f6c-401e-4155-9a49-d5cd053d1a2f,network,slow]
- tempest_logs/functest.tempest.volume.html
check_results_files:
- 'functest_results.txt'
+ portal_key_file: tempest_logs/functest.tempest.volume.html
sub_testcase_list:
- tempest.api.volume.test_volumes_actions.VolumesActionsTest.test_attach_detach_volume_to_instance[compute,id-fff42874-7db5-4487-a8e1-ddda5fb5288d,smoke]
- tempest.scenario.test_volume_boot_pattern.TestVolumeBootPattern.test_volume_boot_pattern[compute,id-557cd2c2-4eb8-4dce-98be-f86765ff311b,image,slow,volume]
- vnf_logs/functest.vnf.vepc.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: vnf_logs/functest.vnf.vepc.log
sub_testcase_list:
- vnf_logs/functest.vnf.vims.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: vnf_logs/functest.vnf.vims.log
sub_testcase_list:
- vping_logs/functest.vping.ssh.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: vping_logs/functest.vping.ssh.log
sub_testcase_list:
- vping_logs/functest.vping.userdata.log
check_results_files:
- 'functest_results.txt'
+ portal_key_file: vping_logs/functest.vping.userdata.log
sub_testcase_list:
- onap-vtp_logs/onap-vtp.validate.csar.out
check_results_files:
- onap-vtp_logs/onap-vtp.validate.csar.out
+ portal_key_file: onap-vtp_logs/onap-vtp.validate.csar.out
sub_testcase_list:
- onap-vvp_logs/report.json
check_results_files:
- onap-vvp_logs/report.json
+ portal_key_file: onap-vvp_logs/report.json
sub_testcase_list:
- ha_logs/yardstick.ha.cinder_api.out
check_results_files:
- ha_logs/yardstick.ha.cinder_api.out
+ portal_key_file: ha_logs/yardstick.ha.cinder_api.log
sub_testcase_list:
- ha_logs/yardstick.ha.controller_restart.out
check_results_files:
- ha_logs/yardstick.ha.controller_restart.out
+ portal_key_file: ha_logs/yardstick.ha.controller_restart.log
sub_testcase_list:
- ha_logs/yardstick.ha.cpu_load.out
check_results_files:
- ha_logs/yardstick.ha.cpu_load.out
+ portal_key_file: ha_logs/yardstick.ha.cpu_load.log
sub_testcase_list:
- ha_logs/yardstick.ha.database.out
check_results_files:
- ha_logs/yardstick.ha.database.out
+ portal_key_file: ha_logs/yardstick.ha.database.log
sub_testcase_list:
- ha_logs/yardstick.ha.disk_load.out
check_results_files:
- ha_logs/yardstick.ha.disk_load.out
+ portal_key_file: ha_logs/yardstick.ha.disk_load.log
sub_testcase_list:
- ha_logs/yardstick.ha.glance_api.out
check_results_files:
- ha_logs/yardstick.ha.glance_api.out
+ portal_key_file: ha_logs/yardstick.ha.glance_api.log
sub_testcase_list:
- ha_logs/yardstick.ha.haproxy.out
check_results_files:
- ha_logs/yardstick.ha.haproxy.out
+ portal_key_file: ha_logs/yardstick.ha.haproxy.log
sub_testcase_list:
- ha_logs/yardstick.ha.keystone.out
check_results_files:
- ha_logs/yardstick.ha.keystone.out
+ portal_key_file: ha_logs/yardstick.ha.keystone.log
sub_testcase_list:
- ha_logs/yardstick.ha.neutron_l3_agent.out
check_results_files:
- ha_logs/yardstick.ha.neutron_l3_agent.out
+ portal_key_file: ha_logs/yardstick.ha.neutron_l3_agent.log
sub_testcase_list:
- ha_logs/yardstick.ha.neutron_server.out
check_results_files:
- ha_logs/yardstick.ha.neutron_server.out
+ portal_key_file: ha_logs/yardstick.ha.neutron_server.log
sub_testcase_list:
- ha_logs/yardstick.ha.nova_api.out
check_results_files:
- ha_logs/yardstick.ha.nova_api.out
+ portal_key_file: ha_logs/yardstick.ha.nova_api.log
sub_testcase_list:
- ha_logs/yardstick.ha.rabbitmq.out
check_results_files:
- ha_logs/yardstick.ha.rabbitmq.out
+ portal_key_file: ha_logs/yardstick.ha.rabbitmq.log
sub_testcase_list: