v0.7.3
- Added property
idto get service principal id (#170). The service principal functionality has been enhanced with the introduction of a newidproperty, which returns the service principal ID as a string, simplifying its usage in tests. Thecreatemethod has been updated to utilize thisidproperty, ensuring consistency throughout the code. Additionally, theidproperty is now directly used when creating secrets, updating group memberships, and updating workspace assignments, with the exception of theworkspace_assignment.updatemethod. The logging of account links has also been updated to use theidproperty. Furthermore, test cases have been updated to include service principals in group members, and a new functionmake_run_ashas been introduced to create service principals for testing purposes, along with a new test casetest_make_run_as_no_argsto verify its functionality, addressing issues related to no-cheat in linked pull requests and improving overall testing capabilities. - Updated
call_fixture()to work with pytest 8.4 (#166). Thecall_fixturefunction has been enhanced to support pytest version 8.4 and later, while maintaining backward compatibility with older versions. To address the deprecation of direct access to pytest fixtures since version 4.x, the function now dynamically checks the pytest version and utilizes the corresponding mechanism to unwrap fixtures. For pytest 8.4 and later, it leverages the_get_wrapped_functionattribute, whereas for older versions, it relies on the__pytest_wrapped__attribute. Additionally, the function now includes input validation, raising aValueErrorif the provided function is not a valid pytest fixture, ensuring more robust error handling. This update provides a temporary solution, with plans for future refinement to potentially utilizepytest.FixtureRequestandrequest.getfixturevalue()for accessing fixtures in a more supported and sustainable manner.
Contributors: @asnare, @pritishpai