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 admin fixes #38

Closed ElijahSwiftIBM closed 7 months ago

ElijahSwiftIBM commented 8 months ago

:bulb: Issue Reference

Issue: #37

:computer: What does this address?

Resource subfunctions were extracting "" instead of None. Technically this was not a problem as this is still a falsy value, but we wanted to make this more consistent.

Additionally, testing and bug fixes were done to stabilize the APPC Session Extract function and additional traits for resource classes.

:pager: Implementation Details

Minor changes to Profile Extract in the security admin object drives "" to None. Additionally a mistake was fixed in resource admin's trait map and logic was added to resource admin's profile extract to handle the language in the APPC Session output that was not parsing properly before.

:clipboard: Is there a test case?

There are no new test cases, but existing ones were modified to accommodate the code adjustments ("" became None where possible) and the test case for APPC Session Extract was bolstered to parse real data successfully.