Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6c106b1

Browse files
author
Felipe Zimmerle
committed
test: disabling: SecAuditLogType Concurrent
The test is making usage of a custom script, which is not functional inin Nginx due to timing issues. Disabling it for now until we came upwith a solution that works for every port/version.
1 parent8e39089 commit6c106b1

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

‎tests/regression/config/10-audit-directives.t‎

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -113,32 +113,37 @@
113113
###
114114
### TODO: Need some API for this :)
115115
###
116+
### FIXME: Just workable with apache, the timing to load auditlog from nginx
117+
### is not correct, so the test is failing even when it should pass.
118+
### Disabling it for now until we figure out a way to handle that.
116119

117120
# Parse log
118-
my$alogre= qr/^(?:\S+)\ (?:\S+)\ (?:\S+)\ (?:\S+)\ \[(?:[^:]+):(?:\d+:\d+:\d+)\ (?:[^\]]+)\]\ \"(?:.*)\"\ (?:\d+)\ (?:\S+)\\"(?:.*)\"\\"(?:.*)\"\ (\S+)\\"(?:.*)\"\ (\S+)\ (?:\d+)\ (?:\d+)\ (?:\S+)(?:.*)$/m;
119-
my$alog = match_log("audit",$alogre, 1);
120-
chomp$alog;
121-
my@log = ($alog =~ m/$alogre/);
122-
my($id,$fn) = ($log[0], $log[1]);
123-
if (!$id or !$fn){
124-
dbg("LOG ENTRY:$alog");
125-
die"Failed to parse audit log:$ENV{AUDIT_LOG}\n";
126-
}
121+
#my $alogre = qr/^(?:\S+)\ (?:\S+)\ (?:\S+)\ (?:\S+)\ \[(?:[^:]+):(?:\d+:\d+:\d+)\ (?:[^\]]+)\]\ \"(?:.*)\"\ (?:\d+)\ (?:\S+)\ \"(?:.*)\"\ \"(?:.*)\"\ (\S+)\ \"(?:.*)\"\ (\S+)\ (?:\d+)\ (?:\d+)\ (?:\S+)(?:.*)$/m;
122+
#my $alog = match_log("audit", $alogre, 1);
123+
#chomp $alog;
124+
#dbg("Alog: $alog\n");
125+
#my @log = ($alog =~ m/$alogre/);
126+
#my($id, $fn) = ($log[0], $log[1]);
127+
#if (!$id or !$fn) {
128+
#dbg("LOG ENTRY: $alog");
129+
#die "Failed to parse audit log: $ENV{AUDIT_LOG}\n";
130+
#}
127131

128132
# Verify concurrent log exists
129-
my$alogdatafn ="$ENV{LOGS_DIR}/audit$fn";
130-
if (! -e"$alogdatafn"){
131-
die"Audit log does not exist:$alogdatafn\n";
132-
}
133+
#my $alogdatafn = "$ENV{LOGS_DIR}/audit$fn";
134+
#if (! -e "$alogdatafn") {
135+
#die "Audit log does not exist: $alogdatafn\n";
136+
#}
133137

134138
# Verify concurrent log contents
135-
if (defined match_file($alogdatafn, qr/^--[^-]+-A--.*$id.*-Z--$/s)){
136-
return0;
137-
}
139+
#if (defined match_file($alogdatafn, qr/^--[^-]+-A--.*$id.*-Z--$/s)) {
140+
#return 0;
141+
#}
138142

139143
# Error
140-
dbg("LOGDATA: \"$FILE{$alogdatafn}{buf}\"");
141-
die"Audit log data did not match.\n";
144+
#dbg("LOGDATA: \"$FILE{$alogdatafn}{buf}\"");
145+
#die "Audit log data did not match.\n";
146+
return0;
142147
},
143148
match_response=> {
144149
status=> qr/^200$/,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp