diff options
author | Zim Kalinowski <zikalino@microsoft.com> | 2019-03-04 05:53:44 +0100 |
---|---|---|
committer | Yunge Zhu <37337818+yungezz@users.noreply.github.com> | 2019-03-04 05:53:44 +0100 |
commit | c0c6eebed6b007bdba2b19515cad18420786b5e3 (patch) | |
tree | a521d3585ba4fbe83b5118b1560597fcf2269953 /test | |
parent | Adding DevTest Lab Artifact Source facts module (#53194) (diff) | |
download | ansible-c0c6eebed6b007bdba2b19515cad18420786b5e3.tar.xz ansible-c0c6eebed6b007bdba2b19515cad18420786b5e3.zip |
Adding DevTest Lab Artifact facts (#53195)
Diffstat (limited to 'test')
-rw-r--r-- | test/integration/targets/azure_rm_devtestlab/tasks/main.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/integration/targets/azure_rm_devtestlab/tasks/main.yml b/test/integration/targets/azure_rm_devtestlab/tasks/main.yml index 01b64b0462..1c43df3605 100644 --- a/test/integration/targets/azure_rm_devtestlab/tasks/main.yml +++ b/test/integration/targets/azure_rm_devtestlab/tasks/main.yml @@ -439,6 +439,51 @@ - output.changed when: "github_token | length > 0" +- name: Get Artifact facts + azure_rm_devtestlabartifact_facts: + resource_group: "{{ resource_group }}" + lab_name: "{{ lab_name }}" + artifact_source_name: "public repo" + register: output +- name: Assert that facts are returned + assert: + that: + - output.changed == False + - output.artifacts[0]['id'] != None + - output.artifacts[0]['resource_group'] != None + - output.artifacts[0]['lab_name'] != None + - output.artifacts[0]['artifact_source_name'] != None + - output.artifacts[0]['name'] != None + - output.artifacts[0]['description'] != None + - output.artifacts[0]['file_path'] != None + - output.artifacts[0]['publisher'] != None + - output.artifacts[0]['target_os_type'] != None + - output.artifacts[0]['publisher'] != None + - "output.artifacts | length > 1" + +- name: Get Artifact facts + azure_rm_devtestlabartifact_facts: + resource_group: "{{ resource_group }}" + lab_name: "{{ lab_name }}" + artifact_source_name: "public repo" + name: windows-webdeploy + register: output +- name: Assert that facts are returned + assert: + that: + - output.changed == False + - output.artifacts[0]['id'] != None + - output.artifacts[0]['resource_group'] != None + - output.artifacts[0]['lab_name'] != None + - output.artifacts[0]['artifact_source_name'] != None + - output.artifacts[0]['name'] != None + - output.artifacts[0]['description'] != None + - output.artifacts[0]['file_path'] != None + - output.artifacts[0]['publisher'] != None + - output.artifacts[0]['target_os_type'] != None + - output.artifacts[0]['publisher'] != None + - "output.artifacts | length == 1" + - name: Delete instance of Lab -- check mode azure_rm_devtestlab: resource_group: "{{ resource_group }}" |