diff options
Diffstat (limited to 'ansible_collections/community/vmware/tests')
2 files changed, 85 insertions, 3 deletions
diff --git a/ansible_collections/community/vmware/tests/integration/targets/vmware_content_library_manager/tasks/main.yml b/ansible_collections/community/vmware/tests/integration/targets/vmware_content_library_manager/tasks/main.yml index c12b57b57..86b00dc85 100644 --- a/ansible_collections/community/vmware/tests/integration/targets/vmware_content_library_manager/tasks/main.yml +++ b/ansible_collections/community/vmware/tests/integration/targets/vmware_content_library_manager/tasks/main.yml @@ -100,7 +100,7 @@ state: absent - name: get finger print - shell: echo | openssl s_client -connect wp-content.vmware.com:443 |& openssl x509 -fingerprint -noout + shell: echo | openssl s_client -connect wp-content.broadcom.com:443 |& openssl x509 -fingerprint -noout register: _finger_print - debug: var=_finger_print @@ -113,7 +113,7 @@ validate_certs: false library_name: Sample_Subscribed_Library library_description: Sample Description - subscription_url: "https://wp-content.vmware.com/v2/latest/lib.json" + subscription_url: "https://wp-content.broadcom.com/v2/latest/lib.json" update_on_demand: true library_type: subscribed ssl_thumbprint: '{{ _finger_print.stdout.split("=")[1] }}' @@ -144,7 +144,7 @@ validate_certs: false library_name: Sample_Subscribed_Library library_description: Update Sample Description - subscription_url: https://download3.vmware.com/software/vmw-tools/lib.json + subscription_url: "https://wp-content.broadcom.com/v2/latest/lib.json" update_on_demand: true library_type: subscribed ssl_thumbprint: '{{ _finger_print.stdout.split("=")[1] }}' diff --git a/ansible_collections/community/vmware/tests/integration/targets/vmware_dvs_portgroup/tasks/main.yml b/ansible_collections/community/vmware/tests/integration/targets/vmware_dvs_portgroup/tasks/main.yml index 8d45b2e28..2feff488c 100644 --- a/ansible_collections/community/vmware/tests/integration/targets/vmware_dvs_portgroup/tasks/main.yml +++ b/ansible_collections/community/vmware/tests/integration/targets/vmware_dvs_portgroup/tasks/main.yml @@ -805,3 +805,85 @@ - assert: that: - delete_test_dvs_port_group_issues_637_idempotency_check_result.changed is sameas true + +- name: Create portgroup for num_ports check + community.vmware.vmware_dvs_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + validate_certs: false + portgroup_name: "portgroup2053" + switch_name: "{{ dvswitch1 }}" + vlan_id: 2053 + port_binding: static + register: create_portgroup2053_result + +- assert: + that: + - create_portgroup2053_result is changed + +- name: Check idempotency for unspecified num_ports + community.vmware.vmware_dvs_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + validate_certs: false + portgroup_name: "portgroup2053" + switch_name: "{{ dvswitch1 }}" + vlan_id: 2053 + port_binding: static + register: portgroup2053_check1_result + +- assert: + that: + - portgroup2053_check1_result is not changed + +- name: Update for num_ports + community.vmware.vmware_dvs_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + validate_certs: false + portgroup_name: "portgroup2053" + switch_name: "{{ dvswitch1 }}" + vlan_id: 2053 + port_binding: static + num_ports: 8 + register: portgroup2053_check2_result + +- assert: + that: + - portgroup2053_check2_result is changed + +- name: Check idempotency for unspecified num_ports + community.vmware.vmware_dvs_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + validate_certs: false + portgroup_name: "portgroup2053" + switch_name: "{{ dvswitch1 }}" + vlan_id: 2053 + port_binding: static + register: portgroup2053_check3_result + +- assert: + that: + - portgroup2053_check3_result is not changed + +- name: Delete num_ports check portgroup + community.vmware.vmware_dvs_portgroup: + hostname: "{{ vcenter_hostname }}" + username: "{{ vcenter_username }}" + password: "{{ vcenter_password }}" + validate_certs: false + portgroup_name: "portgroup2053" + switch_name: "{{ dvswitch1 }}" + vlan_id: 2053 + port_binding: static + state: absent + register: delete_portgroup2053_result + +- assert: + that: + - delete_portgroup2053_result is changed |