Merge lp:~jtv/gwacl/random-test-ids into lp:gwacl
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | 53 |
Merged at revision: | 52 |
Proposed branch: | lp:~jtv/gwacl/random-test-ids |
Merge into: | lp:gwacl |
Diff against target: |
110 lines (+57/-10) 1 file modified
example/live_example_managementapi.go (+57/-10) |
To merge this branch: | bzr merge lp:~jtv/gwacl/random-test-ids |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gavin Panella | Approve | ||
Review via email: mp+154860@code.launchpad.net |
Commit message
Randomize test ids in the live example.
Description of the change
We were having trouble running the live example because at least one of the identifiers we provide (hosted-service name) must be globally unique, within all of Azure.
In this branch I randomize those examples. I also add checking for required parameters, so that you get an immediate helpful error rather than an obscure failure later on. Also, I replaced the hard-coded storage-account name with one you provide in a command-line option.
With these changes, I was able to create a virtual machine given only a management certificate, a subscription id, and a storage account.
In a later branch we'll make the live example create the storage account for you.
Jeroen