From 2ad7d79985fef9abc2ee1c5166762b5773cf5c4d Mon Sep 17 00:00:00 2001 From: zikalino Date: Thu, 29 Mar 2018 12:20:18 +0800 Subject: [PATCH] additional fixes to function app test --- .../targets/azure_rm_functionapp/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/targets/azure_rm_functionapp/tasks/main.yml b/test/integration/targets/azure_rm_functionapp/tasks/main.yml index 35cd1027413..027feb7e865 100644 --- a/test/integration/targets/azure_rm_functionapp/tasks/main.yml +++ b/test/integration/targets/azure_rm_functionapp/tasks/main.yml @@ -1,6 +1,6 @@ - name: Fix resource prefix set_fact: - fixed_resource_prefix: "{{ resource_prefix | replace('-','x') }}" + fixed_resource_prefix: "{{ (resource_prefix | replace('-','x'))[-22:] }}" - name: create storage account for function apps azure_rm_storageaccount: @@ -45,7 +45,7 @@ - name: create a function with app settings azure_rm_functionapp: resource_group: '{{ resource_group }}' - name: af{{ fixed_resource_prefix }} + name: af{{ fixed_resource_prefix }}x storage_account: sa{{ fixed_resource_prefix }} app_settings: hello: world @@ -59,7 +59,7 @@ - name: change app settings azure_rm_functionapp: resource_group: '{{ resource_group }}' - name: af{{ fixed_resource_prefix }} + name: af{{ fixed_resource_prefix }}x storage_account: sa{{ fixed_resource_prefix }} app_settings: hello: world @@ -74,7 +74,7 @@ - name: delete the function app azure_rm_functionapp: resource_group: '{{ resource_group }}' - name: af{{ fixed_resource_prefix }} + name: af{{ fixed_resource_prefix }}x state: absent register: output