Skip to content

Test & Automate (tier 0): Audit log survives command failure during execution #970

Description

@Tamar-Dinavetsky

https://polarion.engineering.redhat.com/polarion/#/project/MTAPathfinder/workitem?id=MTA-916

Goal:

When the command itself fails (non-zero exit), the audit log is still created and written to.

How to trigger failure:

Run transform with a --export-dir that does not exist → command fails.

Assertions:

  • command returns an error
  • auditLogPath exists (BeAnExistingFile())
  • audit log contains at least one entry

Note: No redundant checks for permissions or JSON validity — Test 1 covers those.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

testTesting related

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions