-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Compute} Fix tests #16425
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
{Compute} Fix tests #16425
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -770,9 +770,9 @@ def test_vm_disk_max_shares_etc(self, resource_group): | |
| self.cmd('sig create -g {rg} --gallery-name {g1}') | ||
| self.cmd('sig image-definition create -g {rg} --gallery-name {g1} --gallery-image-definition image --os-type linux -p publisher1 -f offer1 -s sku1 --features "IsSecureBootSupported=false IsMeasuredBootSupported=false" --hyper-v-generation V2', checks=[ | ||
| self.check('features[0].name', 'IsSecureBootSupported'), | ||
| self.check('features[0].value', 'false'), | ||
| self.check('features[0].value', 'false', False), | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why the change
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Service change. It returns "False" not "false"
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can the test util be changed to support case-insensitive compare?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "False" I added means case sensitive = False. Default value is True. |
||
| self.check('features[1].name', 'IsMeasuredBootSupported'), | ||
| self.check('features[1].value', 'false'), | ||
| self.check('features[1].value', 'false', False), | ||
| ]) | ||
| self.cmd('disk create -g {rg} -n disk --size-gb 10') | ||
| self.cmd('snapshot create -g {rg} -n s1 --source disk') | ||
|
|
@@ -4659,14 +4659,14 @@ def test_disk_access(self, resource_group): | |
| self.cmd('disk create -g {rg} -n {disk} --size-gb 10 --network-access-policy AllowPrivate --disk-access {diskaccess}') | ||
| self.cmd('disk show -g {rg} -n {disk}', checks=[ | ||
| self.check('name', '{disk}'), | ||
| self.check('diskAccessId', disk_access_id), | ||
| self.check('diskAccessId', disk_access_id, False), | ||
| self.check('networkAccessPolicy', 'AllowPrivate') | ||
| ]) | ||
|
|
||
| self.cmd('snapshot create -g {rg} -n {snapshot} --size-gb 10 --network-access-policy AllowPrivate --disk-access {diskaccess}') | ||
| self.cmd('snapshot show -g {rg} -n {snapshot}', checks=[ | ||
| self.check('name', '{snapshot}'), | ||
| self.check('diskAccessId', disk_access_id), | ||
| self.check('diskAccessId', disk_access_id, False), | ||
| self.check('networkAccessPolicy', 'AllowPrivate') | ||
| ]) | ||
|
|
||
|
|
||
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.
is this due to track2?
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.
Yes, it is.