1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-07-01 16:18:55 +00:00

adding facts for Azure HDINsight cluster (#55124)

This commit is contained in:
Zim Kalinowski 2019-04-11 15:08:01 +08:00 committed by GitHub
parent 1dc8436ed9
commit 5145473451
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 336 additions and 0 deletions

View file

@ -2,3 +2,4 @@ cloud/azure
destructive
shippable/azure/group1
unstable # test is slow (~30 minute run time), not unstable, but this is better than unsupported
azure_rm_hdinsightcluster_facts

View file

@ -199,6 +199,27 @@
that:
- output.changed
- name: Get facts of Cluster
azure_rm_hdinsightcluster_facts:
resource_group: "{{ resource_group }}"
name: "cluster{{ rpfx }}"
register: output
- name: Assert that facts are returned
assert:
that:
- output.changed == False
- output.clusters[0]['id'] != None
- output.clusters[0]['resource_group'] != None
- output.clusters[0]['name'] != None
- output.clusters[0]['location'] != None
- output.clusters[0]['cluster_version'] != None
- output.clusters[0]['os_type'] != None
- output.clusters[0]['tier'] != None
- output.clusters[0]['cluster_definition'] != None
- output.clusters[0]['compute_profile_roles'] != None
- output.clusters[0]['connectivity_endpoints'] != None
- name: Delete instance of Cluster -- check mode
azure_rm_hdinsightcluster:
resource_group: "{{ resource_group }}"