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();
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:
executes SDAF remover script - destroys existing sap-systems and workload zone deployments
destroys deployer VM and related resources like OS disk, NIC, Security group, etc.
keeps control plane intact (Control plane must not be deleted)
_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();
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>' } }