Skip to content

Commit

Permalink
Revert "Temporarily disable Tag and Category tests" (#135)
Browse files Browse the repository at this point in the history
Revert "Temporarily disable Tag and Category tests"

Reviewed-by: https://github.com/apps/ansible-zuul
  • Loading branch information
goneri authored Jun 4, 2020
1 parent da35399 commit 47da547
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@
when: setup_dvswitch is defined
- include_tasks: setup_resource_pool.yml
when: setup_resource_pool is defined
# Temporarily disabled
#- include_tasks: setup_category.yml
# when: setup_category is defined
#- include_tasks: setup_tag.yml
# when: setup_tag is defined
- include_tasks: setup_category.yml
when: setup_category is defined
- include_tasks: setup_tag.yml
when: setup_tag is defined
- include_tasks: setup_content_library.yml
when: setup_content_library is defined
- include_tasks: setup_dvs_portgroup.yml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
- name: Create a category for cluster
vmware_category:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: no
category_name: '{{ cluster_category }}'
category_description: '{{ cluster_category }} description'
state: present
2 changes: 0 additions & 2 deletions tests/integration/targets/vmware_category/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ shippable/vcenter/group1
cloud/vcenter
needs/target/prepare_vmware_tests
zuul/vmware/vcenter_only
# Temporarily disabled
disabled
27 changes: 13 additions & 14 deletions tests/integration/targets/vmware_cluster_facts/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,19 @@
name: prepare_vmware_tests
vars:
setup_category: true
# Temporarily disabled
# setup_tag: true
setup_tag: true

# - name: Apply tag to cluster
# vmware_tag_manager:
# hostname: "{{ vcenter_hostname }}"
# username: "{{ vcenter_username }}"
# password: "{{ vcenter_password }}"
# validate_certs: no
# tag_names:
# - '{{ cluster_category }}:{{ cluster_tag }}'
# state: present
# object_name: '{{ ccr1 }}'
# object_type: ClusterComputeResource
- name: Apply tag to cluster
vmware_tag_manager:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: no
tag_names:
- '{{ cluster_category }}:{{ cluster_tag }}'
state: present
object_name: '{{ ccr1 }}'
object_type: ClusterComputeResource

- name: Get facts about cluster
vmware_cluster_facts:
Expand All @@ -90,4 +89,4 @@
- assert:
that:
- cluster_info is defined
#- cluster_info.clusters[ccr1].tags is defined
- cluster_info.clusters[ccr1].tags is defined
27 changes: 13 additions & 14 deletions tests/integration/targets/vmware_cluster_info/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,20 +61,19 @@
name: prepare_vmware_tests
vars:
setup_category: true
# Temporarily disabled
# setup_tag: true
setup_tag: true

# - name: Apply tag to cluster
# vmware_tag_manager:
# hostname: "{{ vcenter_hostname }}"
# username: "{{ vcenter_username }}"
# password: "{{ vcenter_password }}"
# validate_certs: no
# tag_names:
# - '{{ cluster_category }}:{{ cluster_tag }}'
# state: present
# object_name: '{{ ccr1 }}'
# object_type: ClusterComputeResource
- name: Apply tag to cluster
vmware_tag_manager:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
validate_certs: no
tag_names:
- '{{ cluster_category }}:{{ cluster_tag }}'
state: present
object_name: '{{ ccr1 }}'
object_type: ClusterComputeResource

- name: Get info about cluster
vmware_cluster_info:
Expand All @@ -89,4 +88,4 @@
- assert:
that:
- cluster_info is defined
#- cluster_info.clusters[ccr1].tags is defined
- cluster_info.clusters[ccr1].tags is defined
2 changes: 0 additions & 2 deletions tests/integration/targets/vmware_tag/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cloud/vcenter
unsupported
zuul/vmware/vcenter_only
# Temporarily disabled
disabled
2 changes: 0 additions & 2 deletions tests/integration/targets/vmware_tag_info/aliases
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cloud/vcenter
unsupported
zuul/vmware/vcenter_only
# Temporarily disabled
disabled
2 changes: 0 additions & 2 deletions tests/integration/targets/vmware_tag_manager/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ cloud/vcenter
unsupported
zuul/vmware/vcenter_only
zuul/vmware/govcsim
# Temporarily disabled
disabled

0 comments on commit 47da547

Please sign in to comment.