Skip to content
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

[AKS] add more commands to scenario tests #5392

Merged
merged 2 commits into from
Jan 25, 2018
Merged

Conversation

mboersma
Copy link
Member

Adds az aks delete, wait, and get-versions as well as some variations to the existing tests.

@promptws
Copy link

View a preview at https://prompt.ws/r/Azure/azure-cli/5392
This is an experimental preview for @microsoft users.

@tjprescott tjprescott added Test Framework ACS az acs/aks/openshift labels Jan 24, 2018
Copy link
Member

@tjprescott tjprescott left a comment

Choose a reason for hiding this comment

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

Fine as is, but I would recommend using the kwarg syntax to make your test more readable.

dns_prefix = self.create_random_name('cliaksdns', 16)

# create --no-wait
create_cmd = 'aks create -g {} -n {} -p {} --ssh-key-value {} -l {} ' \
Copy link
Member

Choose a reason for hiding this comment

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

I would recommend the more readable kwargs syntax over the .format syntax. It would look something like:

self.kwargs.update({
  'a': blah,
  'b': blah,
  'c': blah
})
self.cmd('mycommand --foo {a} --blah {b} --boo {c}',
              checks=self.check('fooProperty', '{a}'))

@tjprescott
Copy link
Member

Thanks @mboersma! Will merge when CI is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ACS az acs/aks/openshift Test Framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants