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

Add integration testing for new param #61

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

AlanCoding
Copy link

SUMMARY

Tested locally as:

$ ansible-playbook -i localhost, awx_collection/tools/integration_testing.yml -e test=params

PLAY [localhost] *******************************************************************************************************************

TASK [DEBUG - make sure variables are what we expect] ******************************************************************************
ok: [localhost] => {
    "msg": "Running tests at location:\n    /home/alancoding/repos/awx/awx_collection/tools/../tests/integration/targets/\nRunning tests folders:\n    ['params']\n"
}

TASK [Include test targets] ********************************************************************************************************
included: /home/alancoding/repos/awx/awx_collection/tests/integration/targets/params/tasks/main.yml for localhost => (item=params)

TASK [Perform an action with a different hostname via aap_hostname] ****************************************************************
[WARNING]: Platform linux on host localhost is using the discovered Python interpreter at
/home/alancoding/venvs/ansible217/bin/python3.12, but future installation of another Python interpreter could change the meaning of
that path. See https://docs.ansible.com/ansible-core/2.17/reference_appendices/interpreter_discovery.html for more information.
fatal: [localhost]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/home/alancoding/venvs/ansible217/bin/python3.12"}, "changed": false, "msg": "Unable to resolve controller_host ([Errno -2] Name or service not known): foohostbar.invalid"}
...ignoring

TASK [assert] **********************************************************************************************************************
ok: [localhost] => {
    "changed": false,
    "msg": "All assertions passed"
}

PLAY RECAP *************************************************************************************************************************
localhost                  : ok=4    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=1   

This is expanding the scope of the upstream integration tests a little bit, but I think Pablo can confirm, our options are limited these days.

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • Collection

@sean-m-sullivan sean-m-sullivan merged commit 20c0867 into sean-m-sullivan:devel Jan 8, 2025
5 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants