Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove failing and flakey tests #905

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions tests/configure_controller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,37 +187,4 @@
controller_host: "{{ controller_hostname }}"
validate_certs: "{{ controller_validate_certs }}"
ignore_errors: true # noqa ignore-errors

- name: "Get the organization ID"
ansible.builtin.set_fact:
controller_organization_id: "{{ lookup(controller_api_plugin, 'organizations', query_params={'name': 'Default'}, host=controller_hostname, username=controller_username, password=controller_password, verify_ssl=false) }}"

- name: "Set empty lists for testing"
ansible.builtin.set_fact:
controller_api_results: []
differential_test_items: []

- name: "Error out on empty list"
ansible.builtin.set_fact:
error_empty_diff: "{{ query('controller_object_diff', api_list=controller_api_results, compare_list=differential_test_items, warn_on_empty_api=false) }}"
ignore_errors: true
register: error_results

- name: "Warn out on empty list"
ansible.builtin.set_fact:
warn_empty_diff: "{{ query('controller_object_diff', api_list=controller_api_results, compare_list=differential_test_items) }}"
register: warn_results

- name: "Assert that the empty list error correctly"
ansible.builtin.assert:
that:
- error_empty_diff is not defined
- warn_empty_diff | length == 0
- "'Unable to find items in api_list' in error_results.msg"

- name: Differential Testing
ansible.builtin.include_tasks: "./tasks/differential.yml"
loop: "{{ differential_items }}"
loop_control:
loop_var: differential_item
...
Loading