-
Notifications
You must be signed in to change notification settings - Fork 24
/
nfs-spec.yml
94 lines (78 loc) · 2 KB
/
nfs-spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
meta:
name: Verify CK, with NFS.
synopsis:
- summary: Running the base validation suite against a deployed Kubernetes
code: |
```
# edit spec.yml and update the appropriate vars under the `env:` section
> ogc --spec jobs/validate/nfs-spec.yml
```
description: |
Verifies that CK with NFS passes integration tests.
mkdocs:
destination:
- "validations/ck/nfs.md"
matrix:
snap_version:
- 1.19/edge
- 1.18/edge
- 1.17/edge
- 1.16/edge
series:
- focal
- bionic
- xenial
channel:
- edge
arch:
- amd64
plan:
env:
- JUJU_DEPLOY_BUNDLE=cs:~containers/charmed-kubernetes
- JUJU_DEPLOY_CHANNEL=$CHANNEL
- JUJU_CLOUD=aws/us-east-1
- JUJU_CONTROLLER=validate-ck-nfs
- JUJU_MODEL=validate-nfs
pre-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
setup_env
post-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
inject_env
collect_env
teardown_env
execute: |
#!/bin/bash
set -eu
. $WORKSPACE/cilib.sh
inject_env
juju bootstrap $JUJU_CLOUD $JUJU_CONTROLLER \
-d $JUJU_MODEL \
--bootstrap-series $SERIES \
--force \
--bootstrap-constraints arch=$ARCH \
--model-default test-mode=true \
--model-default resource-tags=owner=k8sci \
--model-default image-stream=daily
tee overlay.yaml <<EOF> /dev/null
series: $SERIES
applications:
kubernetes-master:
options:
channel: $SNAP_VERSION
kubernetes-worker:
options:
channel: $SNAP_VERSION
EOF
juju deploy -m $JUJU_CONTROLLER:$JUJU_MODEL \
--overlay overlay.yaml \
--force \
--channel $JUJU_DEPLOY_CHANNEL $JUJU_DEPLOY_BUNDLE
timeout 45m juju-wait -e $JUJU_CONTROLLER:$JUJU_MODEL -w
timeout 2h pytest \
$WORKSPACE/jobs/integration/test_nfs.py::test_nfs \
--cloud $JUJU_CLOUD \
--model $JUJU_MODEL \
--controller $JUJU_CONTROLLER