From ea018012f1a72c33bff36cd807ba1d3d2f021ade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Czoma?= Date: Wed, 9 Feb 2022 08:38:30 -0500 Subject: [PATCH] Revised testing (#49) * Changed to use OpenShift registry image * Simplified test criteria --- .github/workflows/build-test.yml | 4 ++-- ci/templateInstallBroker | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index cf44350..bff9d85 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -79,8 +79,8 @@ jobs: remote_command "/opt/scripts/templateInstallBroker templateha /opt/templates/eventbroker_ha_template.yaml" remote_command "/opt/scripts/testBroker templateha my-release-pubsubplus" | tee out.txt grep "aurelia" out.txt # web portal access - grep "Up" out.txt - grep "Up" out.txt + #grep "Up" out.txt + #grep "Up" out.txt grep 100000 out.txt # smf messaging remote_command "/opt/scripts/templateDeleteBroker templateha /opt/templates/eventbroker_ha_template.yaml" diff --git a/ci/templateInstallBroker b/ci/templateInstallBroker index 225b573..8d3477c 100644 --- a/ci/templateInstallBroker +++ b/ci/templateInstallBroker @@ -4,7 +4,7 @@ sudo sed -i 's/nameserver.*$/nameserver 1.1.1.1/g' /etc/resolv.conf while ! oc login -u kubeadmin -p `cat /opt/passw` https://api.crc.testing:6443 ; do sleep 1 ; done oc new-project $1 sed -i 's@cpu: "2"@cpu: "1"@g' $2 # reduce CPU requirements for the test deployment -oc process -f $2 DEPLOYMENT_NAME=my-release BROKER_IMAGE_REGISTRY_URL=solace/solace-pubsub-standard BROKER_IMAGE_TAG=latest BROKER_STORAGE_SIZE=10Gi BROKER_ADMIN_PASSWORD=YWRtaW4= | oc create -f - # admin password is admin +oc process -f $2 DEPLOYMENT_NAME=my-release BROKER_IMAGE_REGISTRY_URL=registry.connect.redhat.com/solace/pubsubplus-standard BROKER_IMAGE_TAG=latest BROKER_STORAGE_SIZE=10Gi BROKER_ADMIN_PASSWORD=YWRtaW4= | oc create -f - # admin password is admin while ! oc get pods --show-labels | grep my-release | grep "active=true" ; do sleep 1; done oc get pods --show-labels oc get svc