Skip to content

Release 1.0b3#58

Merged
ElijahSwiftIBM merged 32 commits into
mainfrom
dev
Jan 4, 2024
Merged

Release 1.0b3#58
ElijahSwiftIBM merged 32 commits into
mainfrom
dev

Conversation

@lcarcaramo

Copy link
Copy Markdown
Member

💡 Issue Reference

https://github.com/ambitus/pyracf/milestone/4

💻 What does this address?

Refer to GitHub Milestone.

📟 Implementation Details

Refer to GitHub Milestone.

📋 Is there a test case?

Refer to GitHub Milestone.

-Standardize SecurityRequestError Structure, merging IRRSMO00 Errors and that of RACF Errors with the smae internal structure in the result dictionary
-Add an install script that defines IRR.IRRSMO00.PRECHECK with UACC of none and/or checks if the profile exists and the current user's access
-Added NullResponseError
-Added Unit Testing for Install script and null response error

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Add parameters to irrsmo00.c for userid and userid_len
-Add code in irrsmo00 that can process a userid and pass it and length to c code
-Add methods to security admin object that allow for changing executing userID
-Add ImproperUSerIDError to enforce userid changes to theoretically valid ids

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Make changes to be compatible with 3.10 typing library

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Change type of default userid parm passed to irrsmo00.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Also allow for run as userid to be specified in object creation

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Fold Surrogat error (run as userid attempted with no access defined) that yields no response into Null Response Error
-Use surfaced return and reason codes from IRRSMO00 to differentiate null response errors
-Add get_user_access to resource admin
-Add unit testing for all of it
-move custom traits testing under common folder

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Update type hints and error message to bring in line with doc

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Change UserID to UserId
refactor call_racf
change error text strings

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Change ImproperUserIdError to UserIdError
-Move security request error restructuring to security result
-doc and minor updates.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Changing error text and formatting

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Refactor IRRSMO00 Security Request Errors under Null Response Error
Change Security Request Error to Security Response Error
Change Null Response Error to Security Request Error

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Get current user on OS\390 systems to add to result dictionary
-On non-OS\390 systems use placeholder "testuser"
-add this value into all unit tests

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Name and formatting changes
-Add userid to result dictionary no matter what

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Docstring Changes/Formatting updates
-Move common test xml,json and log files into common directory
-Attempted fix of build failures

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Naming changes
text updates

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
-Unit testing added for surfacing SecurityRequestErrors from initial extract in Add operations if the error is not "the resource does not yet exist"

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Change comment string for DownstreamFatalError

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Function testing revealed a couple of bugs in how the response value from the c code was parsed in python. This resolves that issue.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
pass pointers to return codes rather than values.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Add Function Test for DownstreamFatalError (Null Response checking is based off something unit testing does not fully check)
Add real error messages to tests in Add operations that surface error from initial extract.

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Changed docstring for DownstreamFatalError
Update version number to 1.0b3 for next release

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
ElijahSwiftIBM and others added 2 commits January 3, 2024 15:34
Change type hints for get_running_userid to Union[str, None]

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
Run as UserID and Error handling changes
@lcarcaramo lcarcaramo added bug Something isn't working enhancement New feature or request labels Jan 4, 2024
@lcarcaramo lcarcaramo added this to the Beta 1.0b3 milestone Jan 4, 2024

@ElijahSwiftIBM ElijahSwiftIBM left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, passed all unit and function testing

@ElijahSwiftIBM ElijahSwiftIBM merged commit 8a2c28d into main Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants