Skip to content

Commit

Permalink
Integrate 'audit_trail_protection' into openQA
Browse files Browse the repository at this point in the history
  • Loading branch information
Amrysliu committed Jul 15, 2021
1 parent 40d240a commit 0b94b82
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions schedule/security/cc_audit_trail_protection.yaml
@@ -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
33 changes: 33 additions & 0 deletions tests/security/cc/audit_trail_protection.pm
@@ -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;

0 comments on commit 0b94b82

Please sign in to comment.