File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed
Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 22
33## In Development
44* Set ` st2client ` resources by ` values.yaml ` . (#337 ) (by @mamercad )
5+ * Switch to the official ` bats ` Docker image for e2e tests. (#338 )
56* Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318 ) (by @0xhaven )
67* Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299 ) (by @cognifloyd )
78* Use the correct ` apiVersion ` for ` Ingress ` to add support for Kubernetes ` v1.22 ` . (#301 ) (by @arms11 )
Original file line number Diff line number Diff line change @@ -9,13 +9,28 @@ metadata:
99spec :
1010 initContainers :
1111 # Sidecar container to copy BATS framework to the main container
12- - name : test-framework
13- image : dduportal /bats:latest
12+ - name : bats-core
13+ image : bats /bats:1.8.2
1414 command :
15- - ' bash'
16- - ' -ec'
15+ - bash
16+ - -ec
1717 - |
18- cp -R /opt/bats/ ${BATS_HELPERS_DIR} /tools/
18+ cp -R /opt/bats /tools/
19+ volumeMounts :
20+ - name : tools
21+ mountPath : /tools
22+ - name : bats-addons
23+ image : alpine/git:2.36.3
24+ command :
25+ - ash
26+ - -ec
27+ - |
28+ git clone --config advice.detachedHead=false --depth 1 --branch v0.3.0 \
29+ https://github.com/ztombol/bats-assert /tools/bats-assert
30+ git clone --config advice.detachedHead=false --depth 1 --branch v0.2.0 \
31+ https://github.com/ztombol/bats-file /tools/bats-file
32+ git clone --config advice.detachedHead=false --depth 1 --branch v0.3.0 \
33+ https://github.com/ztombol/bats-support /tools/bats-support
1934 volumeMounts :
2035 - name : tools
2136 mountPath : /tools
3146 name : {{ .Release.Name }}-st2-auth
3247 env :
3348 - name : BATS_HELPERS_DIR
34- value : /tools/bats-helpers/
49+ value : /tools
3550 - name : ST2_VERSION
3651 value : " {{ .Chart.AppVersion }}"
3752 - name : ST2_RBAC_ENABLED
4257 - name : tests
4358 mountPath : /tests
4459 command :
45- - /tools/bats/libexec /bats
60+ - /tools/bats/bin /bats
4661 - /tests/st2tests.sh
4762 volumes :
4863 - name : tools
You can’t perform that action at this time.
0 commit comments