UKCloud / openshift-deployment-ansible

3 stars 1 forks source link

improve app test in main pipeline #44

Open andywis opened 6 years ago

andywis commented 6 years ago

In the pipeline, an app is created as a way of proving that the cluster works. Currently, the only test is to log in to the app and run "python --version".

We should look to develop this further by adding the tests of services and routes too

see tests/openshift/openshift-tests.yml

andywis commented 6 years ago

It would also be worth adding a random string to the end of the project name. If this test fails, and leaves a project lying around, "oc new-project..." will fail on the subsequent run because the project already exists.

See tests/worker/worker-tests.yml for an example of how to add randomness to the project name