Basetest class for SLES for SAP Applications tests in Public Cloud.
$self->cleanup(%args)
Cleanup method intended to be called at the end of tests or in post_fail_hook
. Mostly a wrapper around sles4sap_publiccloud::sles4sap_cleanup
which will:
Remove network peerings
Run ansible de-registration playbooks
Run terraform destroy
Unless any of these has been executed previously.
$self->import_context(%run_args)
Import into $self
the class instances context passed via %run_args
, and record the information in the test results.
$self->set_cli_ssh_opts();
$self->set_cli_ssh_opts('');
$self->set_cli_ssh_opts("-4 -o LogLevel=ERROR -E $logfile");
Set command line SSH options in the instance stored in $self->{my_instance}
. It takes as an argument a string with the options in a manner that would be understood by ssh, and if no argument is provided, uses the following defaults:
-E /var/tmp/ssh_sut.log
: save logging to /var/tmp/ssh_sut.log.
Note: if the method receives an empty string, no SSH options will be set.