Files
271ff6a09c104f97f23511973877e8b1502c1c40
Michael Vollman
b5ed2d024f
Fix ansible path for elk_metrics_6x tests
Fix the failing elk_metrics_6x tests by changing the ansible venv path to ~/ansible_venv. Update tests to ensure when the bootstrap ansible script changes both osquery and elk_metrics_6x tests are run. Change-Id: Ic79c52ae21294373ca67be264fd287fdf32b4c9a
17 lines
842 B
Plaintext
17 lines
842 B
Plaintext
export ANSIBLE_HOST_KEY_CHECKING="False"
export ANSIBLE_ROLES_PATH="${HOME}/ansible_venv/repositories/roles"
export ANSIBLE_ACTION_PLUGINS="${HOME}/ansible_venv/repositories/roles/config_template/action"
export ANSIBLE_CONNECTION_PLUGINS="${HOME}/ansible_venv/repositories/roles/plugins/connection"
export ANSIBLE_LOG_PATH="/tmp/osquery-logs/ansible-elk-test.log"
if [[ ! -d "/tmp/osquery-logs" ]]; then
mkdir -pv "/tmp/osquery-logs"
chmod 0777 "/tmp/osquery-logs"
fi
echo "To build a test environment run the following:"
echo -e "# ${HOME}/ansible_venv/bin/ansible-playbook -i tests/inventory/test-container-inventory.yml tests/test.yml --limit localhost\n"
echo "Run manual functional tests by executing the following:"
echo -e "# ${HOME}/ansible_venv/bin/ansible-playbook -i tests/inventory/test-container-inventory.yml site.yml\n"