mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* POC for odo interactive testing
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* add interactive tests to make target test-integration
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* [WIP] use func to pass test instructions
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup comments/test
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup minor changes
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* fix unit test failure
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* skip for windows
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* skip for windows by not compiling, cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* cleanup, and add the make target to test files
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* incorporate review, adding comments, cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* fix failing make validate
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* update test dependency, and possible fix for windows
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
* Revert "update test dependency, and possible fix for windows"
This reverts commit 55580b7dc5.
* Final cleanup
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
46 lines
964 B
Bash
Executable File
46 lines
964 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# fail if some commands fails
|
|
set -e
|
|
# show commands
|
|
set -x
|
|
|
|
export CI="openshift"
|
|
make configure-installer-tests-cluster
|
|
make bin
|
|
mkdir -p $GOPATH/bin
|
|
make goget-ginkgo
|
|
export PATH="$PATH:$(pwd):$GOPATH/bin"
|
|
export CUSTOM_HOMEDIR=$ARTIFACT_DIR
|
|
|
|
# Copy kubeconfig to temporary kubeconfig file
|
|
# Read and Write permission to temporary kubeconfig file
|
|
TMP_DIR=$(mktemp -d)
|
|
cp $KUBECONFIG $TMP_DIR/kubeconfig
|
|
chmod 640 $TMP_DIR/kubeconfig
|
|
export KUBECONFIG=$TMP_DIR/kubeconfig
|
|
|
|
# Login as developer
|
|
oc login -u developer -p password@123
|
|
|
|
# Check login user name for debugging purpose
|
|
oc whoami
|
|
|
|
# Integration tests
|
|
make test-integration || error=true
|
|
make test-integration-devfile || error=true
|
|
make test-integration-interactive || error=true
|
|
make test-cmd-login-logout || error=true
|
|
make test-cmd-project || error=true
|
|
|
|
# E2e tests
|
|
make test-e2e-all || error=true
|
|
|
|
if [ $error ]; then
|
|
exit -1
|
|
fi
|
|
|
|
cp -r reports tests/reports $ARTIFACT_DIR
|
|
|
|
oc logout
|