diff --git a/ci_tests/README.md b/ci_tests/README.md new file mode 100644 index 0000000000000000000000000000000000000000..e225e46576e135a44a658b2502d668cfa7ad2721 --- /dev/null +++ b/ci_tests/README.md @@ -0,0 +1,20 @@ +# Continuous Integration Tests + +This directory contains the necessary configuration to create and run tests +during the CI "test" stage to do basic sanity checking of the installed +components. + +These tests expect to be run in the "geosphere-ci-tests" namespace on a +Kubernetes cluster, but this is configurable in the root `.gitlab-ci.yml` +configuration file (see `TESTS_NAMESPACE`). + +## Administrative Setup + +These tests depend on input test data being present on the cluster. The exact +path is in `cadu-pv.yaml`. Once the PeristentVolume and PersistentVolumeClaim +are created, the input data will be fed to the test CSPP Geo GRB container. + +```bash +kubectl -n geosphere-ci-tests create cadu-pv.yaml +kubectl -n geosphere-ci-tests create cadu-pvc.yaml +``` \ No newline at end of file diff --git a/ci_tests/cadu-pv.yaml b/ci_tests/cadu-pv.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0181afeda93d5d232ac4e5fdc77ed511487d9951 --- /dev/null +++ b/ci_tests/cadu-pv.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + name: geosphere-ci-tests-cadu + labels: + type: local +spec: + storageClassName: manual + capacity: + storage: 10Gi + accessModes: + - ReadWriteOnce + hostPath: + path: "/apollo/csppgeo/users/davidh/cadu_20200410_1700" \ No newline at end of file diff --git a/ci_tests/cadu-pvc.yaml b/ci_tests/cadu-pvc.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2e1f9987aaca12291975499cd128e778339c5167 --- /dev/null +++ b/ci_tests/cadu-pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: geosphere-ci-tests-cadu +spec: + storageClassName: manual + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 10Gi