Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running frontend ephemeral testing Do Not Merge #1983

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
48 changes: 28 additions & 20 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,34 @@ export APP_ROOT=$(pwd)
export NODE_BUILD_VERSION=16
COMMON_BUILDER=https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master

# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
# IQE tests for vulnerability ui is not set yet. We can comment out config for it for now
# IQE_PLUGINS=""
# IQE_MARKER_EXPRESSION=""
# IQE_FILTER_EXPRESSION=""

set -exv
# source is preferred to | bash -s in this case to avoid a subshell
source <(curl -sSL $COMMON_BUILDER/src/frontend-build.sh)
BUILD_RESULTS=$?

# Stubbed out for now
mkdir -p $WORKSPACE/artifacts
cat << EOF > $WORKSPACE/artifacts/junit-dummy.xml
<testsuite tests="1">
<testcase classname="dummy" name="dummytest"/>
</testsuite>
EOF

# teardown_docker
exit $BUILD_RESULTS

# Install bonfire repo/initialize
CICD_URL=https://raw.githubusercontent.com/RedHatInsights/bonfire/master/cicd
# shellcheck source=/dev/null
curl -s $CICD_URL/bootstrap.sh > .cicd_bootstrap.sh && source .cicd_bootstrap.sh

export DEPLOY_FRONTENDS="true"
export IQE_ENV="ephemeral"
export IQE_SELENIUM="true"
export APP_NAME="vulnerability"
export DEPLOY_TIMEOUT="900" # 15min
export IQE_CJI_TIMEOUT="30m"
export REF_ENV="insights-stage"
export COMPONENTS_W_RESOURCES="vmaas"
export COMPONENT_NAME="vulnerability-ui"

IQE_PLUGINS="vulnerability"
IQE_MARKER_EXPRESSION="smoke_ui"
IQE_FILTER_EXPRESSION=""
IQE_IMAGE_TAG="vulnerability"

# Run smoke tests
source "${CICD_ROOT}/deploy_ephemeral_env.sh"

export COMPONENT_NAME="vulnerability-engine"
source "${CICD_ROOT}/cji_smoke_test.sh"

source "${CICD_ROOT}/post_test_results.sh"