Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate 'audit_trail_protection' into openQA
- Loading branch information
Showing
2 changed files
with
40 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
name: cc_audit_trail_protection | ||
description: > | ||
This is for audit_test audit-trail-protection | ||
schedule: | ||
- boot/boot_to_desktop | ||
- security/cc/cc_audit_test_setup | ||
- security/cc/audit_trail_protection |
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,33 @@ | ||
# SUSE's openQA tests | ||
# | ||
# Copyright © 2021 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: Run 'audit-trail-protection' test case of 'audit-test' test suite | ||
# Maintainer: Liu Xiaojing <xiaojing.liu@suse.com> | ||
# Tags: poo#94447 | ||
|
||
use base 'consoletest'; | ||
use strict; | ||
use warnings; | ||
use testapi; | ||
use utils; | ||
use audit_test qw(run_testcase compare_run_log); | ||
|
||
sub run { | ||
my ($self) = shift; | ||
|
||
select_console 'root-console'; | ||
|
||
run_testcase('audit-trail-protection', (make => 1)); | ||
|
||
# Compare current test results with baseline | ||
my $result = compare_run_log('audit_trail_protection'); | ||
$self->result($result); | ||
} | ||
|
||
1; |