-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
VMware: vmware_inventory contrib testing #42879
Conversation
The test
|
cc @mattclay |
@@ -0,0 +1,4 @@ | |||
posix/ci/cloud/group1/vcenter | |||
cloud/vcenter | |||
skip/python3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is python 3 being skipped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vmware_inventory.py is not supported for Python 3. Right now, we don't have any plan around supporting that.
@@ -0,0 +1,4 @@ | |||
posix/ci/cloud/group1/vcenter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new group alias is shippable/vcenter/group1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
fi | ||
} | ||
|
||
trap cleanup INT TERM EXIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Register the trap before backing up the file. Otherwise a failure between the two steps won't restore the original config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
@Akasurde I'm seeing warnings in the test output. Are these supposed to be showing up?
|
There are a few more as well:
See https://app.shippable.com/github/ansible/ansible/runs/76106/77/console |
00bff5b
to
ac3e77a
Compare
The test
|
curl "http://${vcenter_host}:5000/govc_find" | ||
|
||
# Change Python interpreter in vmware_inventory | ||
sed -i 's/ python/ python2/' ./vmware_inventory.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#45995 will eliminate the need for hacking the shebang on the inventory script and will allow collection of code coverage. Creating an inventory wrapper script will take care of things then:
#!/usr/bin/env bash
python.py "../../../../contrib/inventory/vmware_inventory.py" "$@"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK.
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
SUMMARY
Signed-off-by: Abhijeet Kasurde akasurde@redhat.com
ISSUE TYPE
COMPONENT NAME
test/integration/targets/vmware_inventory/aliases
test/integration/targets/vmware_inventory/runme.sh
test/integration/targets/vmware_inventory/test_vmware_inventory.yml
ANSIBLE VERSION