From 0f3489b45e170dcf5763bebc76ed9bdb7d880e9d Mon Sep 17 00:00:00 2001 From: Maxim Musienko Date: Thu, 6 Feb 2020 18:40:11 +0200 Subject: [PATCH] Create script for launching OCP OAuth test (#15941) Create script for launching OCP OAuth test --- .../centos-ci/nightly/ocp-oauth-test.sh | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 tests/.infra/centos-ci/nightly/ocp-oauth-test.sh diff --git a/tests/.infra/centos-ci/nightly/ocp-oauth-test.sh b/tests/.infra/centos-ci/nightly/ocp-oauth-test.sh new file mode 100755 index 0000000000..0d6e5ec620 --- /dev/null +++ b/tests/.infra/centos-ci/nightly/ocp-oauth-test.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# Copyright (c) 2020 Red Hat, Inc. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +set -e +set +x +source tests/.infra/centos-ci/functional_tests_utils.sh +function prepareCustomResourceFile() { + echo "Patch custom-resource.yaml" + cd /tmp + wget https://raw.githubusercontent.com/eclipse/che-operator/master/deploy/crds/org_v1_che_cr.yaml -O custom-resource.yaml + sed -i "s@openShiftoAuth: false@openShiftoAuth: true@g" /tmp/custom-resource.yaml + sed -i "s@server:@server:\n customCheProperties:\n CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: '-1'@g" /tmp/custom-resource.yaml + cat /tmp/custom-resource.yaml +} +setupEnvs +installKVM +installDependencies +installDockerCompose +installAndStartMinishift +loginToOpenshiftAndSetDevRole +prepareCustomResourceFile +installCheCtl +deployCheIntoCluster --chenamespace=eclipse-che --che-operator-cr-yaml=/tmp/custom-resource.yaml +seleniumTestsSetup +bash tests/legacy-e2e/che-selenium-test/selenium-tests.sh --threads=1 --host=${CHE_ROUTE} --port=80 --multiuser --test=org.eclipse.che.selenium.site.ocpoauth.** +saveSeleniumTestResult +getOpenshiftLogs +archiveArtifacts "nightly-ocp-oauth-test"