additional fixes to function app test

This commit is contained in:
zikalino 2018-03-29 12:20:18 +08:00 committed by Matt Clay
parent 66b389a00d
commit 2ad7d79985

View file

@ -1,6 +1,6 @@
- name: Fix resource prefix - name: Fix resource prefix
set_fact: set_fact:
fixed_resource_prefix: "{{ resource_prefix | replace('-','x') }}" fixed_resource_prefix: "{{ (resource_prefix | replace('-','x'))[-22:] }}"
- name: create storage account for function apps - name: create storage account for function apps
azure_rm_storageaccount: azure_rm_storageaccount:
@ -45,7 +45,7 @@
- name: create a function with app settings - name: create a function with app settings
azure_rm_functionapp: azure_rm_functionapp:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }} name: af{{ fixed_resource_prefix }}x
storage_account: sa{{ fixed_resource_prefix }} storage_account: sa{{ fixed_resource_prefix }}
app_settings: app_settings:
hello: world hello: world
@ -59,7 +59,7 @@
- name: change app settings - name: change app settings
azure_rm_functionapp: azure_rm_functionapp:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }} name: af{{ fixed_resource_prefix }}x
storage_account: sa{{ fixed_resource_prefix }} storage_account: sa{{ fixed_resource_prefix }}
app_settings: app_settings:
hello: world hello: world
@ -74,7 +74,7 @@
- name: delete the function app - name: delete the function app
azure_rm_functionapp: azure_rm_functionapp:
resource_group: '{{ resource_group }}' resource_group: '{{ resource_group }}'
name: af{{ fixed_resource_prefix }} name: af{{ fixed_resource_prefix }}x
state: absent state: absent
register: output register: output