Skip to content

Prow operator test harness for Openshift Dedicated. Also serves as an example to build off of for other addon test harnesses.

License

Notifications You must be signed in to change notification settings

5733d9e2be6485d52ffa08870cabdee0/shard-operator-test-harness

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart events Add-on Test Harness

It does the following:

  • Tests for the existence of the fleetshard CRDs:
    • bridgeexecutors.com.redhat.service.bridge
    • bridgeingresses.com.redhat.service.bridge
  • Writes out the files expected by the osde2e test framework to the /test-run-results directory:
    • junit-report.xml
    • addon-metadata.json

Running locally

To run the tests locally, build the test image and mount valid kubeconfig file

$ docker build -f Dockerfile -t shard-operator-test-harness:latest .
$ docker run --rm -v ~/.kube:/home/jboss/.kube/:z -it shard-operator-test-harness:latest

Debug osde2e locally

https://github.com/openshift/osde2e#running-from-source

make build

OCM_TOKEN="[OCM token here]" \ 
CLUSTER_ID="24324324" \
ADDON_IDS="smart-events-operator" \ 
ADDON_TEST_HARNESSES="quay.io/5733d9e2be6485d52ffa08870cabdee0/shard-operator-test-harness" \
REPORT_DIR="./report" \
ADDON_PARAMETERS="{smart-events-operator: { "EVENT_BRIDGE_MANAGER_URL": "https://dummy.openshift.com", "EVENT_BRIDGE_SHARD_ID": "123456789", "EVENT_BRIDGE_SSO_CLIENT_ID": "23480-324324-324324", "EVENT_BRIDGE_SSO_SECRET": "324324-3253324-324", "EVENT_BRIDGE_SSO_URL": "https://dummy/auth/realms/redhat-external", "WEBHOOK_CLIENT_ID": "wf23423-dsaf23-sdf32", "WEBHOOK_CLIENT_SECRET": "sfs24f-234dsf-243fd", "WEBHOOK_TECHNICAL_ACCOUNT_ID": "1234567" }}"
./out/osde2e test --configs "stage,addon-suite" --skip-health-check

About

Prow operator test harness for Openshift Dedicated. Also serves as an example to build off of for other addon test harnesses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 83.5%
  • Dockerfile 10.9%
  • Makefile 5.6%