forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tune cloud_netconfig and ipaddr2 test code (os-autoinst#20485)
Increase some timeout for zypper. Split some multiline commands. Split the sanity test module. Add few more documentation about settings.
- Loading branch information
Showing
6 changed files
with
62 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Copyright SUSE LLC | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
# Summary: Check that deployed resource in the cloud are as expected | ||
# Maintainer: QE-SAP <qe-sap@suse.de>, Michele Pagot <michele.pagot@suse.com> | ||
# Summary: Check that deployed resource in the cloud are as expected at OS level: | ||
# Check packages, connectivity between nodes, network configuration | ||
# | ||
# This test module can be configured with these variables: | ||
# - PUBLIC_CLOUD_PROVIDER: This setting is needed by other test modules usually scheduled with this one. | ||
# Variable here is only validated and only value 'AZURE' is supported at the moment. | ||
use strict; | ||
use warnings; | ||
use Mojo::Base 'publiccloud::basetest'; | ||
use testapi; | ||
use serial_terminal qw( select_serial_terminal ); | ||
use sles4sap::ipaddr2 qw( | ||
ipaddr2_bastion_pubip | ||
ipaddr2_cluster_sanity | ||
ipaddr2_deployment_logs | ||
ipaddr2_infra_destroy | ||
ipaddr2_cloudinit_logs | ||
); | ||
|
||
sub run { | ||
my ($self) = @_; | ||
|
||
die('Azure is the only CSP supported for the moment') | ||
unless check_var('PUBLIC_CLOUD_PROVIDER', 'AZURE'); | ||
|
||
select_serial_terminal; | ||
|
||
my $bastion_ip = ipaddr2_bastion_pubip(); | ||
ipaddr2_cluster_sanity(bastion_ip => $bastion_ip); | ||
} | ||
|
||
sub test_flags { | ||
return {fatal => 1, publiccloud_multi_module => 1}; | ||
} | ||
|
||
sub post_fail_hook { | ||
my ($self) = shift; | ||
ipaddr2_deployment_logs() if check_var('IPADDR2_DIAGNOSTIC', 1); | ||
ipaddr2_cloudinit_logs() unless check_var('IPADDR2_CLOUDINIT', 0); | ||
ipaddr2_infra_destroy(); | ||
$self->SUPER::post_fail_hook; | ||
} | ||
|
||
1; |
File renamed without changes.