summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/azure_rm_virtualmachine
diff options
context:
space:
mode:
authorJasper Aorangi <jasper.mackenzie@gmail.com>2018-08-30 02:14:44 +0200
committerMatt Davis <nitzmahone@users.noreply.github.com>2018-08-30 02:14:44 +0200
commit2541a8c494947b1ffe2e87993967fd82c6984463 (patch)
tree0c6e46eb793aff5396c584df673b63210307b0c3 /test/integration/targets/azure_rm_virtualmachine
parentVarious f5 fixes (#44858) (diff)
downloadansible-2541a8c494947b1ffe2e87993967fd82c6984463.tar.xz
ansible-2541a8c494947b1ffe2e87993967fd82c6984463.zip
azure_rm_virtualmachine: Add 'accept_terms' for accepting terms when deploying paid marketplace images (#44701)
azure_rm_storageaccount: Add 'StandardSSD_LRS', and choices to correct unrelated sanity error
Diffstat (limited to 'test/integration/targets/azure_rm_virtualmachine')
-rw-r--r--test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml b/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml
index 7dd2c7d59d..319d52fa84 100644
--- a/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml
+++ b/test/integration/targets/azure_rm_virtualmachine/tasks/virtualmachine.yml
@@ -403,3 +403,57 @@
name: invalid-image
register: fail_missing_custom_image_dict
failed_when: fail_missing_custom_image_dict.msg != "Error could not find image with name invalid-image"
+
+## Tests possible when CI user acccount setup with required authority
+#- name: Set test facts
+ #set_fact:
+ #image_paid:
+ #publisher: cognosys
+ #offer: ubuntu-14-04-lts
+ #sku: hardened-ubuntu-14-04
+ #version: latest
+ #plan_paid:
+ #name: hardened-ubuntu-14-04
+ #product: ubuntu-14-04-lts
+ #publisher: cognosys
+
+#- name: Create virtual machine with image and plan which requires acceptance of terms
+ #azure_rm_virtualmachine:
+ #resource_group: "{{ resource_group }}"
+ #name: testvm009
+ #vm_size: Standard_A0
+ #storage_account: "{{ storage_account }}"
+ #storage_container: testvm001
+ #storage_blob: testvm003.vhd
+ #admin_username: adminuser
+ #admin_password: Password123!
+ #short_hostname: testvm
+ #os_type: Linux
+ #availability_set: "avbs{{ resource_group | hash('md5') | truncate(7, True, '') }}"
+ #image: "{{ image_paid }}"
+ #plan_paid: "{{ plan_paid }}"
+ #register: output
+
+#- assert:
+ #that:
+ #- output.changed
+ #- output.ansible_facts.azure_vm.properties.storageProfile.imageReference.publisher == image_paid.publisher
+
+#- name: Should be idempotent with image and plan which requires acceptance of terms
+ #azure_rm_virtualmachine:
+ #resource_group: "{{ resource_group }}"
+ #name: testvm009
+ #vm_size: Standard_A0
+ #storage_account: "{{ storage_account }}"
+ #storage_container: testvm001
+ #storage_blob: testvm003.vhd
+ #admin_username: adminuser
+ #admin_password: Password123!
+ #short_hostname: testvm
+ #os_type: Linux
+ #availability_set: "avbs{{ resource_group | hash('md5') | truncate(7, True, '') }}"
+ #image: "{{ image_paid }}"
+ #plan_paid: "{{ plan_paid }}"
+
+#- assert:
+ #that: not output.changed