-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add validation to cryptlvm+cancel_existing scenario
The https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/10744/files#diff-02e3850fe36faeb4fe731d27cdf08818 returns an error code 4 when the encryption is not activated. Passing the proceed_on_failure so we can run assertions even if the script_output gets the error code.
- Loading branch information
Showing
5 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mapped_device: '/dev/mapper/cr-auto-2' | ||
device_status: | ||
message: 'is inactive.' |
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,31 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2020 SUSE LLC | ||
# | ||
# Copying and distribution of this file, with or without modification, | ||
# are permitted in any medium without royalty provided the copyright | ||
# notice and this notice are preserved. This file is offered as-is, | ||
# without any warranty. | ||
|
||
# Summary: Validation module to check that partition is inactive. | ||
# Covered scenarios: | ||
# - Validate that there are no encrypted partition activated | ||
# | ||
# Maintainer: QA SLE YaST team <qa-sle-yast@suse.de> | ||
|
||
use strict; | ||
use warnings; | ||
use base "installbasetest"; | ||
use scheduler 'get_test_suite_data'; | ||
use testapi; | ||
use validate_encrypt_utils; | ||
|
||
sub run { | ||
my $test_data = get_test_suite_data(); | ||
select_console 'install-shell'; | ||
my $status = parse_cryptsetup_status($test_data->{mapped_device}); | ||
verify_cryptsetup_message($test_data->{device_status}->{message}, $status->{message}); | ||
select_console 'installation'; | ||
} | ||
|
||
1; |