2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-11-22 02:12:16 +00:00
Files
xcat-core/xCAT-test/autotest/testcase
Daniel Hilst 8858c2f636 fix(xcat-test): ausearch refuses the start time the SELinux cases pass
The cases marked the start of a window with date "+%x %T" and passed the
result to ausearch -ts. Audit 4.0.3 rejects it:

    Invalid start time (10/14/2026 20:00:00). Hour, Minute, and Second are
    required.

ausearch then exits 1 with that message and no records. Measured on
xcat162-mn-tmp-286: the query returned 0 records where 653 were in the log,
and MM/DD/YY and ISO forms are refused the same way. Only a bare HH:MM:SS
is accepted. Each no-denial check therefore reported a clean node whatever
the node did, which is the defect --input-logs was meant to remove.

Each case now seeds an ausearch --checkpoint file at its start and reads
the new events with the same file, which is audit's own mechanism and has
no date to misparse. A check before the count asserts that ausearch
answered at all: the output has to hold a record or "<no matches>", and an
error message holds neither. Verified on the same node, where the guard
exits 1 on a deliberately broken query, 0 on an empty window, and the read
after a client run returned 63 new records.

Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
2026-10-14 17:31:23 -03:00
..
2018-07-02 05:27:01 -04:00
2018-04-18 16:48:28 +08:00
2018-11-05 01:19:21 -05:00
2019-03-27 04:23:39 -04:00
2024-07-16 12:42:39 +02:00
2018-11-05 03:24:53 -05:00
2018-11-28 01:51:26 -05:00
2023-01-10 10:21:40 -05:00
2018-11-05 01:19:21 -05:00
2019-04-03 02:16:17 -04:00
2018-11-15 02:44:58 -05:00