-
Notifications
You must be signed in to change notification settings - Fork 24
/
validate-stable.yml
82 lines (66 loc) · 1.74 KB
/
validate-stable.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
meta:
name: Release Verify CK - Stable
description: |
Verifies that a new stable release of CK passes integration tests
matrix:
snap_version:
- 1.18/beta
series:
- focal
- bionic
- xenial
channel:
- beta
arch:
- amd64
plan:
env:
- JUJU_DEPLOY_BUNDLE=cs:~containers/charmed-kubernetes
- JUJU_DEPLOY_CHANNEL=$CHANNEL
- JUJU_CLOUD=aws/us-east-1
- JUJU_CONTROLLER=validate-release-ck
- JUJU_MODEL=validate-release-ck
pre-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
setup_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
execute: |
#!/bin/bash
set -eu
. $WORKSPACE/cilib.sh
inject_env
timeout 2h pytest --instafail \
--html=$OGC_JOB_WORKDIR/report.html --self-contained-html \
$WORKSPACE/jobs/integration/validation.py \
--cloud $JUJU_CLOUD \
--model $JUJU_MODEL \
--controller $JUJU_CONTROLLER
post-execute: |
#!/bin/bash
. $WORKSPACE/cilib.sh
inject_env
collect_env
teardown_env