Skip to content

Commit 11f310a

Browse files
committed
Added prebaked yaml files
1 parent 1ad087d commit 11f310a

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

docs/design/acceptance_test.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Run the following tests for the following images:
5555

5656
Create an `ArangoDeployment` of mode `Single`.
5757

58+
Hint: Use `tests/acceptance/single.yaml`.
59+
5860
- [ ] The deployment must start
5961
- [ ] The deployment must yield 1 `Pod`
6062
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -65,6 +67,8 @@ Create an `ArangoDeployment` of mode `Single`.
6567

6668
Create an `ArangoDeployment` of mode `ActiveFailover`.
6769

70+
Hint: Use `tests/acceptance/activefailover.yaml`.
71+
6872
- [ ] The deployment must start
6973
- [ ] The deployment must yield 5 `Pods`
7074
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -75,6 +79,8 @@ Create an `ArangoDeployment` of mode `ActiveFailover`.
7579

7680
Create an `ArangoDeployment` of mode `Cluster`.
7781

82+
Hint: Use `tests/acceptance/cluster.yaml`.
83+
7884
- [ ] The deployment must start
7985
- [ ] The deployment must yield 9 `Pods`
8086
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -105,6 +111,8 @@ Change the value of `spec.single.count` from 3 to 2.
105111

106112
Create an `ArangoDeployment` of mode `Cluster`.
107113

114+
Hint: Use `tests/acceptance/cluster.yaml`.
115+
108116
- [ ] The deployment must start
109117
- [ ] The deployment must yield 9 `Pods`
110118
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -143,6 +151,8 @@ any group.
143151

144152
Create an `ArangoDeployment` of mode `Single` with an environment of `Production`.
145153

154+
Hint: Derive from `tests/acceptance/single.yaml`.
155+
146156
- [ ] The deployment must start
147157
- [ ] The deployment must yield 1 `Pod`
148158
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -153,6 +163,8 @@ Create an `ArangoDeployment` of mode `Single` with an environment of `Production
153163

154164
Create an `ArangoDeployment` of mode `ActiveFailover` with an environment of `Production`.
155165

166+
Hint: Derive from `tests/acceptance/activefailover.yaml`.
167+
156168
- [ ] The deployment must start
157169
- [ ] The deployment must yield 5 `Pods`
158170
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -163,6 +175,8 @@ Create an `ArangoDeployment` of mode `ActiveFailover` with an environment of `Pr
163175

164176
Create an `ArangoDeployment` of mode `Cluster` with an environment of `Production`.
165177

178+
Hint: Derive from `tests/acceptance/cluster.yaml`.
179+
166180
- [ ] The deployment must start
167181
- [ ] The deployment must yield 9 `Pods`
168182
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -173,6 +187,8 @@ Create an `ArangoDeployment` of mode `Cluster` with an environment of `Productio
173187

174188
Create an `ArangoDeployment` of mode `Cluster` with an environment of `Production`.
175189

190+
Hint: Derive from `tests/acceptance/cluster.yaml`.
191+
176192
- [ ] The deployment must start
177193
- [ ] The deployment must yield 9 `Pods`
178194
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -203,9 +219,13 @@ Change the value of `spec.coordinators.count` from 4 to 1.
203219

204220
Ensure an `ArangoLocalStorage` is deployed.
205221

222+
Hint: Use from `tests/acceptance/local-storage.yaml`.
223+
206224
Create an `ArangoDeployment` of mode `Cluster` with a `StorageClass` that is
207225
mapped to an `ArangoLocalStorage` provider.
208226

227+
Hint: Derive from `tests/acceptance/cluster.yaml`.
228+
209229
- [ ] The deployment must start
210230
- [ ] The deployment must yield 9 `Pods`
211231
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -219,6 +239,8 @@ This test only applies to platforms that provide their own `StorageClasses`.
219239
Create an `ArangoDeployment` of mode `Cluster` with a `StorageClass` that is
220240
provided by the platform.
221241

242+
Hint: Derive from `tests/acceptance/cluster.yaml`.
243+
222244
- [ ] The deployment must start
223245
- [ ] The deployment must yield 9 `Pods`
224246
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -229,6 +251,8 @@ provided by the platform.
229251

230252
Create an `ArangoDeployment` of mode `Single`.
231253

254+
Hint: Use from `tests/acceptance/single.yaml`.
255+
232256
- [ ] The deployment must start
233257
- [ ] The deployment must yield 1 `Pod`
234258
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -244,6 +268,8 @@ Delete the `Pod` of the deployment that contains the single server.
244268

245269
Create an `ArangoDeployment` of mode `ActiveFailover`.
246270

271+
Hint: Use from `tests/acceptance/activefailover.yaml`.
272+
247273
- [ ] The deployment must start
248274
- [ ] The deployment must yield 5 `Pods`
249275
- [ ] The deployment must yield a `Service` named `<deployment-name>`
@@ -264,6 +290,8 @@ Delete a `Pod` of the deployment that contains a single server.
264290

265291
Create an `ArangoDeployment` of mode `Cluster`.
266292

293+
Hint: Use from `tests/acceptance/single.yaml`.
294+
267295
- [ ] The deployment must start
268296
- [ ] The deployment must yield 9 `Pods`
269297
- [ ] The deployment must yield a `Service` named `<deployment-name>`
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: "database.arangodb.com/v1alpha"
2+
kind: "ArangoDeployment"
3+
metadata:
4+
name: "acceptance-activefailover"
5+
spec:
6+
mode: ActiveFailover
7+
image: arangodb/arangodb:3.3.10

tests/acceptance/cluster.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: "database.arangodb.com/v1alpha"
2+
kind: "ArangoDeployment"
3+
metadata:
4+
name: "acceptance-cluster"
5+
spec:
6+
mode: Cluster
7+
image: arangodb/arangodb:3.3.10
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: "storage.arangodb.com/v1alpha"
2+
kind: "ArangoLocalStorage"
3+
metadata:
4+
name: "acceptance-local-storage"
5+
spec:
6+
storageClass:
7+
name: acceptance
8+
localPath:
9+
- /var/lib/acceptance-test

tests/acceptance/single.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: "database.arangodb.com/v1alpha"
2+
kind: "ArangoDeployment"
3+
metadata:
4+
name: "acceptance-single"
5+
spec:
6+
mode: Single
7+
image: arangodb/arangodb:3.3.10

0 commit comments

Comments
 (0)