From 5e52db651f707fde4796d6d61d7dd9c7951edab5 Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Tue, 17 Nov 2020 13:04:18 -0600
Subject: [PATCH] Add README, PV, and PVC files to ci tests

---
 ci_tests/README.md     | 20 ++++++++++++++++++++
 ci_tests/cadu-pv.yaml  | 14 ++++++++++++++
 ci_tests/cadu-pvc.yaml | 11 +++++++++++
 3 files changed, 45 insertions(+)
 create mode 100644 ci_tests/README.md
 create mode 100644 ci_tests/cadu-pv.yaml
 create mode 100644 ci_tests/cadu-pvc.yaml

diff --git a/ci_tests/README.md b/ci_tests/README.md
new file mode 100644
index 0000000..e225e46
--- /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 0000000..0181afe
--- /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 0000000..2e1f998
--- /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
-- 
GitLab