Skip to content

Commit

Permalink
Merge pull request #1334 from dpensi/CCXDEV-6166
Browse files Browse the repository at this point in the history
enable smoke tests
  • Loading branch information
dpensi authored Nov 30, 2021
2 parents f04a911 + 0c803b5 commit 00a7441
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions pr_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,28 @@
# --------------------------------------------
# Options that must be configured by app owner
# --------------------------------------------
APP_NAME="ccx-data-pipeline" # name of app-sre "application" folder this component lives in
COMPONENT_NAME="insights-results-aggregator" # name of app-sre "resourceTemplate" in deploy.yaml for this component
IMAGE="quay.io/cloudservices/insights-results-aggregator"
export APP_NAME="ccx-data-pipeline" # name of app-sre "application" folder this component lives in
export COMPONENT_NAME="ccx-insights-results" # name of app-sre "resourceTemplate" in deploy.yaml for this component
export IMAGE="quay.io/cloudservices/insights-results-aggregator"

IQE_PLUGINS="ccx"
IQE_MARKER_EXPRESSION="smoke"
IQE_FILTER_EXPRESSION=""
export IQE_PLUGINS="ccx"
export IQE_MARKER_EXPRESSION="smoke" # ccx_data_pipeline_smoke does not exits (at least yet) as marker in the plugin
export IQE_FILTER_EXPRESSION=""
export IQE_CJI_TIMEOUT="30m"


# Temporary stub
mkdir artifacts
echo '<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="1" time="0.014" timestamp="2021-05-13T07:54:11.934144" hostname="thinkpad-t480s"><testcase classname="test" name="test_stub" time="0.000" /></testsuite></testsuites>' > artifacts/junit-stub.xml

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

# Build the image and push to quay
source $CICD_ROOT/build.sh

# Run the unit tests with an ephemeral db
# source $APP_ROOT/unit_test.sh

# Deploy rbac to an ephemeral namespace for testing
source $CICD_ROOT/deploy_ephemeral_env.sh

# source $CICD_ROOT/build.sh
# source $CICD_ROOT/deploy_ephemeral_env.sh
# source $CICD_ROOT/smoke_test.sh
# Run smoke tests with ClowdJobInvocation
source $CICD_ROOT/cji_smoke_test.sh

0 comments on commit 00a7441

Please sign in to comment.