This PR brings in a test target for netplugin installer in aci mode. Following are high level changes:
vendor in bats in vendor/bats dir. We use bats for testing as installer being a bash script it is really quick to add tests for it
this is 90% of this PR and might be skipped for review.
Added the installer test for aci mode in net/test/aci_installer.bats
test install mode (-a flag)
test cleanup + install (-ar flag)
the aci-config yml file right now tailored to the contiv-aci-server4 and contiv-aci-server5 servers, but can made configurable later once we have more test setups
net installer was enhanced for following to aid testing, without changing the behavior as much as possible:
the config yml can be set in environment
the interactive mode (yes/no prompts) can be turned on/off. Right now when non-interactive mode is set, the behavior is to fail whenever a warning is detected
the ansible sha1 to use can be set in environment, which shall allow testing with a latest ansible
This PR brings in a test target for netplugin installer in aci mode. Following are high level changes:
vendor/bats
dir. We usebats
for testing as installer being a bash script it is really quick to add tests for itnet/test/aci_installer.bats
contiv-aci-server4
andcontiv-aci-server5
servers, but can made configurable later once we have more test setups/cc @jainvipin @DivyaVavili