
The commit adds integration test that includes baremetal operator - test is driven by airshipctl phases - Deploys BMO from airshipctl repository as a phase - Verifies that after VINO-CR is deployed BMHs are created - Verifies that BMO can install an image into those BMHs using pxe - Various fixes that allow to integrate with BMO - Disables password authentication for BMHs untill we have a fix - BMO fails to authenticate against simple auth provided by nginx - Removes unit-tests for BMO creation. The whole approach of requesting VMs from vino-builder should be changed. When we have final view of the process, we will well define vino-builder API and add unit-tests to vino controller and builder Change-Id: I51976ca20811b227ecb069c4ffd81d8afe086e57
32 lines
754 B
Bash
Executable File
32 lines
754 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
: ${MANIFEST_DIR:="${HOME}/vino-manifests"}
|
|
: ${VINO_REPO_URL:="/${HOME}/airship/vino"}
|
|
|
|
mkdir -p "${MANIFEST_DIR}"
|
|
|
|
# Workaround for testing against local changes with vino
|
|
if [ -d "${VINO_REPO_URL}" ]; then
|
|
VINO_REPO_URL=$(realpath "${VINO_REPO_URL}")
|
|
cp -r "${VINO_REPO_URL}" "${MANIFEST_DIR}/"
|
|
fi
|
|
|
|
if [ ! -f "${HOME}/.airship/config" ]; then
|
|
airshipctl config init
|
|
fi
|
|
|
|
airshipctl config set-manifest default \
|
|
--target-path "${MANIFEST_DIR}" \
|
|
--repo primary \
|
|
--metadata-path config/phases/metadata.yaml \
|
|
--url ${VINO_REPO_URL}
|
|
|
|
airshipctl config set-manifest default \
|
|
--repo airshipctl \
|
|
--url https://opendev.org/airship/airshipctl.git \
|
|
--branch master
|
|
|
|
airshipctl document pull -n
|