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

Consolidate tests #580

Merged
merged 11 commits into from
Oct 6, 2023
  •  
  •  
  •  
38 changes: 4 additions & 34 deletions .one-pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ setup:

cp operators/scripts/pipeline/* ./scripts/pipeline/
cp -rf operators/scripts/build ./scripts/

cp -rf operators/scripts/configure-cluster ./scripts
cp -rf operators/scripts/test ./scripts/

./scripts/pipeline/code-setup-stage.sh

detect-secrets:
Expand Down Expand Up @@ -122,39 +124,7 @@ acceptance-test:

echo $STAGE

PERIODIC_SCAN=$(get_env periodic-rescan)
PERIODIC_SCAN="$(echo "$PERIODIC_SCAN" | tr '[:upper:]' '[:lower:]')"

if [[ ! -z "$PERIODIC_SCAN" && "$PERIODIC_SCAN" != "false" && "$PERIODIC_SCAN" != "no" ]]; then
echo "Skipping acceptance-test. This is a periodic run that is only meant to produce CVE information."
exit 0
fi

SKIP_ACCEPTANCE_TEST=$(get_env SKIP_ACCEPTANCE_TEST)
SKIP_ACCEPTANCE_TEST="$(echo "$SKIP_ACCEPTANCE_TEST" | tr '[:upper:]' '[:lower:]')"
if [[ ! -z "$SKIP_ACCEPTANCE_TEST" && "$SKIP_ACCEPTANCE_TEST" != "false" && "$SKIP_ACCEPTANCE_TEST" != "no" ]]; then
echo "Skipping acceptance-test, SKIP_ACCEPTANCE_TEST=$SKIP_ACCEPTANCE_TEST"
exit 0
fi

export intranetId_USR=$(get_env ebc_id)
export intranetId_PSW=$(get_env ebc_pw)
export ebcEnvironment=prod

cd scripts/pipeline
rm -rf .git
git clone https://$(get_env git-token)@github.ibm.com/elastic-build-cloud/ebc-gateway-http.git

export arch=$(get_env architecture)
export test_arch=$(get_env test-architecture)

if [[ "$test_arch" == "ZXP" && "$arch" == "ZXP" ]]; then
source runTest.sh Z
source runTest.sh X
source runTest.sh P
else
source runTest.sh X
fi
./scripts/pipeline/acceptance-test-stage.sh

scan-artifact:
abort_on_failure: false
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ catalog-build: opm ## Build a catalog image.
$(OPM) index add $(SKIP_TLS_VERIFY) --container-tool $(CONTAINER_COMMAND) --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT) --permissive

kind-e2e-test:
./scripts/e2e-kind.sh --test-tag "${TRAVIS_BUILD_NUMBER}"
./scripts/test/e2e-kind.sh --test-tag "${TRAVIS_BUILD_NUMBER}"

build-manifest: setup-manifest
./scripts/build/build-manifest.sh --registry "${PUBLISH_REGISTRY}" --image "${OPERATOR_IMAGE}" --tag "${RELEASE_TARGET}"
Expand All @@ -354,7 +354,7 @@ test-e2e:
--test-tag "${TRAVIS_BUILD_NUMBER}" --target "${RELEASE_TARGET}"

test-pipeline-e2e:
./scripts/pipeline/ocp-cluster-e2e.sh -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" \
./scripts/test/e2e-ocp.sh -u "${DOCKER_USERNAME}" -p "${DOCKER_PASSWORD}" \
--cluster-url "${CLUSTER_URL}" --cluster-user "${CLUSTER_USER}" --cluster-token "${CLUSTER_TOKEN}" \
--registry-name "${PIPELINE_REGISTRY}" --registry-image "${PIPELINE_OPERATOR_IMAGE}" \
--registry-user "${PIPELINE_USERNAME}" --registry-password "${PIPELINE_PASSWORD}" \
Expand Down
77 changes: 0 additions & 77 deletions bundle/tests/scorecard/config.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading