lib/sles4sap/sap_deployment_automation_framework/basetest.pm

SYNOPSIS

Basetest for SDAF deployment. It includes full cleanup routine and post_fail hook. Post run hook is not necessary as cleanup should not be triggered at the end of each test module.

full_cleanup

full_cleanup();

Function performs full SDAF cleanup. First, it checks which stages of deployment are applied to avoid executing unnecessary cleanup commands. Cleanup is done in following order:

_sdaf_ibsm_teardown

_sdaf_ibsm_teardown();

All existing peerings are deleted in 3 attempts. Function does not croak/die. Only reports about failure and lets other cleanup procedures to continue.

ibsm_data_collect

ibsm_data_collect();

Collects information about existing network peerings between IBSM mirror VNET and test workload zone VNET. Returns HASHREF with all data collected in following format:

{ peering_type = { peering_name => 'peering_name', source_resource_group => 'source_resource_group_name', target_resource_group => 'target_resource_group_name', source_vnet => 'source_vnet_game', target_vnet => 'target_vnet_game', exists => '<0/1>' } }