Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Next try #14
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
  • Loading branch information
Ohrimenko1988 committed May 20, 2020
1 parent ca32745 commit 8ee41a3
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions .ci/cico-devfile-pr-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,6 @@ function installAndStartMinishift() {
oc project che
}

function createTestUserAndObtainUserToken() {
### Create user and obtain token
KEYCLOAK_URL=$(oc get checluster eclipse-che -o jsonpath='{.status.keycloakURL}')
KEYCLOAK_BASE_URL="${KEYCLOAK_URL}/auth"

TEST_USERNAME=admin
TEST_PASSWORD=admin

export USER_ACCESS_TOKEN=$(curl -k -v -X POST $KEYCLOAK_BASE_URL/realms/che/protocol/openid-connect/token -H "Content-Type: application/x-www-form-urlencoded" -d "username=${TEST_USERNAME}" -d "password=${TEST_PASSWORD}" -d "grant_type=password" -d "client_id=che-public" | jq -r .access_token)
echo "========User Access Token: $USER_ACCESS_TOKEN "

}

function createTestWorkspaceAndRunTest() {
CHE_URL=$(oc get checluster eclipse-che -o jsonpath='{.status.cheURL}')

Expand All @@ -131,7 +118,7 @@ function createTestWorkspaceAndRunTest() {
-e TS_SELENIUM_DEFAULT_TIMEOUT=300000 \
-e TS_SELENIUM_WORKSPACE_STATUS_POLLING=20000 \
-e TS_SELENIUM_LOAD_PAGE_TIMEOUT=420000 \
-e TEST_SUITE="test-java-vertx" \
-e TEST_SUITE="test-all-devfiles" \
-e NODE_TLS_REJECT_UNAUTHORIZED=0 \
quay.io/eclipse/che-e2e:nightly || IS_TESTS_FAILED=true
}
Expand Down Expand Up @@ -231,8 +218,6 @@ fi

#Run tests

createTestUserAndObtainUserToken

createTestWorkspaceAndRunTest

getOpenshiftLogs
Expand All @@ -242,7 +227,3 @@ archiveArtifacts "che-devfile-registry-prcheck"
if [ "$IS_TESTS_FAILED" == "true" ]; then
exit 1;
fi

if [ "$IS_TESTS_FAILED" == "false" ]; then
exit 1;
fi

0 comments on commit 8ee41a3

Please sign in to comment.