-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regexp support for name filtering in find() and findall()
Details: * Fixed that the 'find()' and 'findall()' methods now also support regular expression matching when the resource name is passed as a filter argument. (issue #1070) * Improved the 'list()' methods by using the name-to-URI cache when the resource name is passed as a filter argument. (part of issue #1070) This is an incompatible change for code that accesses properties of the returned resource via resource.properties and needs to be fixed by changing the code to use either resource.get_property() or by setting full_properties=True on the list() method. * Improved the 'delete()' methods of zhmcclient resource classes by setting the ceased-existence flag on the resource. This will cause optimized find-like methods that operate on local data to properly raise CeasedExistence when used on the deleted resource object. (part of issue #1070) Depending on the user code, this change may also be incompatible. * Added unit test cases for find() and findall() to test the regular expression matching that is now supported. * Adjusted unit test cases for the name-to-URI caching because they depend on the internal call structure. * Adjusted testcases for the get_property() and prop() methods to accomodate for the changed ceased-existence and full-properties behavior. Signed-off-by: Andreas Maier <maiera@de.ibm.com>
- Loading branch information
1 parent
b3ead93
commit e9133b5
Showing
25 changed files
with
439 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.