mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 05:10:22 -07:00
Fix more tests (#66)
* Fix permissions. * Fix more FQCNs. * Adjust more ansible_pkg_mgr usages. * Fix plugin FQCN. * Change port 12345 -> 12347. * Print port usage first. * Support both short and long name. * Revert "Print port usage first." This reverts commit ea1dbc60f08a2664a8b01abba7aa7610bc2a23f1. * Revert "Change port 12345 -> 12347." This reverts commit cbc13510ee9f855110b4134517b2a548745a1fb0. * Fix cleanup. * Add more FQCNs. * Allow short name as well. ci_complete * Add remaining ignore.txt entries for ipaddress. * Remove kubevirt ignore.txt entries. * Added missing entries, and sorted. * Remove superfluous fact gathering. * Fix FQCNs. * Temporarily disable supervisorctl (fails on OSX because socket path is too long) * Add missing file. * Fix permissions. ci_complete
This commit is contained in:
parent
14731bf485
commit
027ffcae56
22 changed files with 527 additions and 408 deletions
0
tests/integration/targets/inventory_kubevirt/inventory_diff.py
Normal file → Executable file
0
tests/integration/targets/inventory_kubevirt/inventory_diff.py
Normal file → Executable file
|
@ -13,6 +13,12 @@ pip install openshift -c constraints.txt
|
|||
|
||||
./server.py &
|
||||
|
||||
cleanup() {
|
||||
kill -9 "$(jobs -p)"
|
||||
}
|
||||
|
||||
trap cleanup INT TERM EXIT
|
||||
|
||||
# Fake auth file
|
||||
mkdir -p ~/.kube/
|
||||
cat <<EOF > ~/.kube/config
|
||||
|
@ -41,18 +47,17 @@ EOF
|
|||
#################################################
|
||||
|
||||
# run the plugin second
|
||||
export ANSIBLE_INVENTORY_ENABLED=kubevirt
|
||||
export ANSIBLE_INVENTORY_ENABLED=community.general.kubevirt
|
||||
export ANSIBLE_INVENTORY=test.kubevirt.yml
|
||||
|
||||
cat << EOF > "$OUTPUT_DIR/test.kubevirt.yml"
|
||||
plugin: kubevirt
|
||||
plugin: community.general.kubevirt
|
||||
connections:
|
||||
- namespaces:
|
||||
- default
|
||||
EOF
|
||||
|
||||
ANSIBLE_JINJA2_NATIVE=1 ansible-inventory -vvvv -i "$OUTPUT_DIR/test.kubevirt.yml" --list --output="$OUTPUT_DIR/plugin.out"
|
||||
kill -9 "$(jobs -p)"
|
||||
|
||||
#################################################
|
||||
# DIFF THE RESULTS
|
||||
|
|
0
tests/integration/targets/inventory_kubevirt/server.py
Normal file → Executable file
0
tests/integration/targets/inventory_kubevirt/server.py
Normal file → Executable file
Loading…
Add table
Add a link
Reference in a new issue