mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-05-14 21:42:02 +00:00
ci: integration tests
Signed-off-by: Guido Grazioli <ggraziol@redhat.com>
This commit is contained in:
21
tests/integration/targets/kubevirt_vm/runme.sh
Executable file
21
tests/integration/targets/kubevirt_vm/runme.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eux
|
||||
set -o pipefail
|
||||
|
||||
{
|
||||
export ANSIBLE_CALLBACKS_ENABLED=profile_tasks
|
||||
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt,yaml
|
||||
|
||||
[ -d files ] || mkdir files
|
||||
[ -f files/priv_key ] || (ssh-keygen -t ed25519 -C test@test -f files/priv_key ; ssh-keygen -y -f files/priv_key > files/pub_key)
|
||||
|
||||
ansible-playbook playbook.yml "$@"
|
||||
|
||||
ansible-inventory -i test.kubevirt.yml -y --list "$@"
|
||||
|
||||
ansible-playbook verify.yml -i test.kubevirt.yml --private-key=files/priv_key "$@"
|
||||
|
||||
rm "$HOME/.ssh/known_hosts"
|
||||
} || {
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user