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 1
1
# Changelog
2
2
3
3
## In Development
4
+ * Switch to the official ` bats ` Docker image for e2e tests. (#338 )
4
5
* Temporary workaround for #311 to use previous bitnami index from: https://github.com/bitnami/charts/issues/10539 (#312 #318 ) (by @0xhaven )
5
6
* Refactor label definitions to be more consistent by building labels and label selectors in partial helper templates. (#299 ) (by @cognifloyd )
6
7
* 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:
9
9
spec :
10
10
initContainers :
11
11
# 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
14
14
command :
15
- - ' bash'
16
- - ' -ec'
15
+ - bash
16
+ - -ec
17
17
- |
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
19
34
volumeMounts :
20
35
- name : tools
21
36
mountPath : /tools
31
46
name : {{ .Release.Name }}-st2-auth
32
47
env :
33
48
- name : BATS_HELPERS_DIR
34
- value : /tools/bats-helpers/
49
+ value : /tools
35
50
- name : ST2_VERSION
36
51
value : " {{ .Chart.AppVersion }}"
37
52
- name : ST2_RBAC_ENABLED
42
57
- name : tests
43
58
mountPath : /tests
44
59
command :
45
- - /tools/bats/libexec /bats
60
+ - /tools/bats/bin /bats
46
61
- /tests/st2tests.sh
47
62
volumes :
48
63
- name : tools
You can’t perform that action at this time.
0 commit comments