From 138fc11ee0ec3402885068eaa6362a42d1a46e7c Mon Sep 17 00:00:00 2001 From: Zim Kalinowski Date: Wed, 3 Apr 2019 14:02:19 +0800 Subject: [PATCH] fixing role definition test (#54715) --- .../targets/azure_rm_roledefinition/tasks/main.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/integration/targets/azure_rm_roledefinition/tasks/main.yml b/test/integration/targets/azure_rm_roledefinition/tasks/main.yml index 03ed2e064d9..c011d66daae 100644 --- a/test/integration/targets/azure_rm_roledefinition/tasks/main.yml +++ b/test/integration/targets/azure_rm_roledefinition/tasks/main.yml @@ -58,7 +58,8 @@ - name: Assert facts assert: - - facts['roledefinitions'] | length > 1 + that: + - facts['roledefinitions'] | length > 1 - name: Get facts azure_rm_roledefinition_info: @@ -68,10 +69,11 @@ - name: Assert facts assert: - - facts['roledefinitions'] | length == 1 - - facts['roledefinitions']['permissions'] | length == 1 - - facts['roledefinitions']['permissions'][0]['not_data_actions'] | length == 1 - - facts['roledefinitions']['permissions'][0]['data_actions'] | length == 1 + that: + - facts['roledefinitions'] | length == 1 + - facts['roledefinitions']['permissions'] | length == 1 + - facts['roledefinitions']['permissions'][0]['not_data_actions'] | length == 1 + - facts['roledefinitions']['permissions'][0]['data_actions'] | length == 1 - name: Update the role definition (idempotent) azure_rm_roledefinition: