summaryrefslogtreecommitdiff
path: root/test/integration/targets/azure_rm_functionapp
diff options
context:
space:
mode:
authorZhijunZhao <zhijun.zhao@outlook.com>2017-12-08 01:41:19 +0800
committerSam Doran <sdoran@ansible.com>2017-12-07 12:41:19 -0500
commitf8d7e477f088ddc6f42a109c316e9e8456d2afa1 (patch)
tree9591f7f008602cdf9dd75b78b1db3b656a4f9033 /test/integration/targets/azure_rm_functionapp
parentb78ab37a94584a8eff29d64a9784029d7b520da0 (diff)
downloadansible-f8d7e477f088ddc6f42a109c316e9e8456d2afa1.tar.gz
fix azure test case failure for function apps module (#33658)
Diffstat (limited to 'test/integration/targets/azure_rm_functionapp')
-rw-r--r--test/integration/targets/azure_rm_functionapp/tasks/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/targets/azure_rm_functionapp/tasks/main.yml b/test/integration/targets/azure_rm_functionapp/tasks/main.yml
index 852566fb14..c1b9388bbd 100644
--- a/test/integration/targets/azure_rm_functionapp/tasks/main.yml
+++ b/test/integration/targets/azure_rm_functionapp/tasks/main.yml
@@ -19,10 +19,13 @@
azure_rm_functionapp_facts:
resource_group: '{{ resource_group }}'
name: azfuncci
+ register: results
- name: assert the facts were retrieved
assert:
- that: '{{ ansible_facts.azure_functionapps|length == 1 }}'
+ that:
+ - results.ansible_facts.azure_functionapps|length == 1
+ - results.ansible_facts.azure_functionapps[0].name == 'azfuncci'
- name: delete basic function app
azure_rm_functionapp: