|
15 | 15 | # limitations under the License. |
16 | 16 |
|
17 | 17 | ################################################################################ |
18 | | -# usage: ci-conformance.sh |
19 | | -# This program runs the clusterctl conformance e2e tests. |
| 18 | +# usage: ci-e2e.sh |
| 19 | +# This program runs the e2e tests. |
20 | 20 | ################################################################################ |
21 | 21 |
|
22 | 22 | set -x |
|
84 | 84 |
|
85 | 85 | "hack/ci/create_devstack.sh" |
86 | 86 |
|
| 87 | +# TODO: Upload image for e2e clusterctl upgrade tests |
| 88 | +# This is just a quick hack to test the process |
| 89 | +source "${REPO_ROOT}/hack/ci/${RESOURCE_TYPE}.sh" |
| 90 | +CONTAINER_ARCHIVE="${ARTIFACTS}/capo-e2e-image.tar" |
| 91 | +SSH_KEY="$(get_ssh_private_key_file)" |
| 92 | +SSH_ARGS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o IdentitiesOnly=yes -o PasswordAuthentication=no" |
| 93 | +CONTROLLER_IP=${CONTROLLER_IP:-"10.0.3.15"} |
| 94 | + |
| 95 | +make e2e-image |
| 96 | +docker save -o "${CONTAINER_ARCHIVE}" gcr.io/k8s-staging-capi-openstack/capi-openstack-controller:e2e |
| 97 | +scp -i "${SSH_KEY}" ${SSH_ARGS} "${CONTAINER_ARCHIVE}" "cloud@${CONTROLLER_IP}:capo-e2e-image.tar" |
| 98 | +ssh -i "${SSH_KEY}" ${SSH_ARGS} "cloud@${CONTROLLER_IP}" -- sudo chown root:root capo-e2e-image.tar |
| 99 | +ssh -i "${SSH_KEY}" ${SSH_ARGS} "cloud@${CONTROLLER_IP}" -- sudo chmod u=rw,g=r,o=r capo-e2e-image.tar |
| 100 | +ssh -i "${SSH_KEY}" ${SSH_ARGS} "cloud@${CONTROLLER_IP}" -- sudo mv capo-e2e-image.tar /var/www/html/capo-e2e-image.tar |
| 101 | + |
| 102 | +# TODO: This is just to test the clusterctl upgrade tests |
| 103 | +export E2E_GINKGO_PARALLEL="1" |
| 104 | +export E2E_GINKGO_ARGS="-focus='\[clusterctl-upgrade\]'" |
| 105 | + |
87 | 106 | export OPENSTACK_CLOUD_YAML_FILE |
88 | 107 | OPENSTACK_CLOUD_YAML_FILE="$(pwd)/clouds.yaml" |
89 | 108 | make test-e2e |
|
0 commit comments