ambitus / pyracf

Python interface to the RACF Command interface.
https://ambitus.github.io/pyracf/
Apache License 2.0
10 stars 4 forks source link

Bug/resource extract auditing #51

Closed ElijahSwiftIBM closed 5 months ago

ElijahSwiftIBM commented 7 months ago

:bulb: Issue Reference

Issue: #40

:computer: What does this address?

Audit rules were not properly handled by General Resource profile extract. There can be multiple entries in this category.

Additionally, new features were added to manipulate these audit rules to provide smoother test interfaces and future use of these traits.

:pager: Implementation Details

Logic was changed in general resource profile extract to break apart multi-entry sections that present like Auditing Rules.

Added several getters and setters including new compound setters that use information obtained in an extract to apply proper traits in an alter.

:clipboard: Is there a test case?

I edited existing test cases for profile extract to use an audit rules value that would have failed in the previous implementation.

New test cases were added for the getters and setters including a new test case type that leverages debug logging as the compound setters needed to verify both request building and result parsing while mocking in the initial extract request, so the conventional architecture of generaterequestonly could not fully satisfy this.