-
Notifications
You must be signed in to change notification settings - Fork 295
Refine az_validate_uuid_pattern API #22741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
bfa8079
to
e32d0cf
Compare
Refine two azure_cli API: az_validate_uuid_pattern and az_storage_lease_acquire by defining some additional unit tests and improving the documentation. Fix all the API caller both in SDAF and QESAP lib.
e32d0cf
to
97287e6
Compare
@@ -1530,10 +1544,10 @@ sub az_resource_list { | |||
sub az_validate_uuid_pattern { | |||
my (%args) = @_; | |||
croak "Mandatory argument 'uuid' missing" unless $args{uuid}; | |||
my $pattern = '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'; | |||
my $pattern = '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good finding. 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove the related code changes after your PR merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not review the UT, but other code changes are LGTM.
There is a failure in http://openqaworker15.qa.suse.cz/tests/333692#step/configure/258 but it seems not related to this PR. |
Exactly. And that one does not result in the test to fail. Test fails in |
Refine two azure_cli API: az_validate_uuid_pattern and az_storage_lease_acquire by defining some additional unit tests and improving the documentation.
Verification