From 06c5ec9f14e1e47228bb8f33b905393345e491a6 Mon Sep 17 00:00:00 2001 From: Jesse Wattenbarger Date: Thu, 26 Sep 2024 09:43:49 -0400 Subject: [PATCH] remove failing and flakey tests (#905) These tests were failing or flakey when run against an awx devel installation. This PR removes them and makes `ansible-playbook tests/configure_controller.yml` work correctly and run with passes. Co-authored-by: Tom Page Co-authored-by: David Danielsson --- tests/configure_controller.yml | 33 --------------------------------- 1 file changed, 33 deletions(-) diff --git a/tests/configure_controller.yml b/tests/configure_controller.yml index 9682edea9..91eaf491e 100644 --- a/tests/configure_controller.yml +++ b/tests/configure_controller.yml @@ -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 ...