diff --git a/test/integration/first-operator-test/00-assert.yaml b/test/integration/first-operator-test/00-assert.yaml new file mode 100644 index 000000000..e59c28688 --- /dev/null +++ b/test/integration/first-operator-test/00-assert.yaml @@ -0,0 +1,13 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: first-operator-nginx-deployment +spec: + replicas: 2 + template: + spec: + containers: + - name: nginx + image: nginx:1.7.9 + ports: + - containerPort: 80 diff --git a/test/integration/first-operator-test/00-install.yaml b/test/integration/first-operator-test/00-install.yaml new file mode 100644 index 000000000..e1b5f06ea --- /dev/null +++ b/test/integration/first-operator-test/00-install.yaml @@ -0,0 +1,4 @@ +apiVersion: kudo.dev/v1alpha1 +kind: TestStep +kubectl: +- kudo install --instance first-operator ../../../config/samples/first-operator diff --git a/test/integration/first-operator-test/01-assert.yaml b/test/integration/first-operator-test/01-assert.yaml new file mode 100644 index 000000000..a78039630 --- /dev/null +++ b/test/integration/first-operator-test/01-assert.yaml @@ -0,0 +1,6 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: first-operator-nginx-deployment +spec: + replicas: 4 diff --git a/test/integration/first-operator-test/01-scale.yaml b/test/integration/first-operator-test/01-scale.yaml new file mode 100644 index 000000000..50e4cd4da --- /dev/null +++ b/test/integration/first-operator-test/01-scale.yaml @@ -0,0 +1,7 @@ +apiVersion: kudo.dev/v1alpha1 +kind: Instance +metadata: + name: first-operator +spec: + parameters: + replicas: "4"