File tree 7 files changed +56
-106
lines changed
7 files changed +56
-106
lines changed Original file line number Diff line number Diff line change 11
11
with :
12
12
fetch-depth : 0
13
13
14
+ - name : Envsubst
15
+ uses :
danielr1996/[email protected]
16
+ env :
17
+ SLACK_TOKEN : ${{ secrets.SLACK_TOKEN }}
18
+ with :
19
+ input : charts/flagsmith/ci/e2e-test-values.yaml
20
+ output : charts/flagsmith/ci/e2e-test-values.yaml
21
+
14
22
- name : Set up Helm
15
23
uses : azure/setup-helm@v1
16
24
with :
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ apiVersion: v2
2
2
name : flagsmith
3
3
description : Flagsmith
4
4
type : application
5
- version : 0.15 .0
6
- appVersion : 2.34.0
5
+ version : 0.16 .0
6
+ appVersion : 2.42.1
7
7
dependencies :
8
8
- name : postgresql
9
9
repository : https://charts.helm.sh/stable
Original file line number Diff line number Diff line change 1
1
_destructiveTests :
2
2
enabled : true
3
- e2eMonster :
4
- useFirefox : true
3
+
4
+ frontend :
5
+ extraEnv :
6
+ SLACK_TOKEN : " ${SLACK_TOKEN}"
7
+
5
8
api :
6
9
extraEnv :
7
10
EMAIL_BACKEND : ' django.core.mail.backends.console.EmailBackend'
11
+ FE_E2E_TEST_USER_EMAIL :
[email protected]
8
12
influxdb2 :
9
13
# Needed to set this for the tests to not fail. Possibly related to
10
14
# https://github.com/Flagsmith/flagsmith/issues/340
Original file line number Diff line number Diff line change @@ -225,15 +225,21 @@ Frontend environment
225
225
{ {- define " flagsmith.frontend.environment" -} }
226
226
- name: ASSET_URL
227
227
value: '/'
228
- { {- if .Values.frontend.apiProxy.enabled } }
228
+ { {- if and .Values.frontend.apiProxy.enabled false } }
229
229
- name: PROXY_API_URL
230
230
value: http://{ { include " flagsmith.fullname" . } }-api.{ { .Release.Namespace } }:{ { .Values.service.api.port } }
231
231
- name: FLAGSMITH_PROXY_API_URL
232
232
value: http://{ { include " flagsmith.fullname" . } }-api.{ { .Release.Namespace } }:{ { .Values.service.api.port } }
233
233
{ {- end } }
234
234
{ {- if and .Values._destructiveTests.enabled .Values._destructiveTests.testToken } }
235
- - name: E2E_TEST_TOKEN_PROD
235
+ - name: E2E_TEST_TOKEN_E2E
236
236
value: { { .Values._destructiveTests.testToken | quote } }
237
+ - name: E2E_TEST_TOKEN
238
+ value: { { .Values._destructiveTests.testToken | quote } }
239
+ - name: FLAGSMITH_API
240
+ value: { { include " flagsmith.fullname" . } }-api.{ { .Release.Namespace } }:{ { .Values.service.api.port } }/api/v1/
241
+ - name: ENABLE_INFLUXDB_FEATURES
242
+ value: { { .Values.influxdb2.enabled | ternary " true" " false" | squote } }
237
243
{ {- end } }
238
244
{ {- range $envName , $envValue := .Values.frontend.extraEnv } }
239
245
- name: { { $envName } }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ {{- if .Values.frontend.enabled }}
2
+ {{- if and .Values._destructiveTests.enabled .Values._destructiveTests.e2e.enabled }}
3
+ apiVersion : v1
4
+ kind : Pod
5
+ metadata :
6
+ name : {{ template "flagsmith.fullname" . }}-test-e2e
7
+ labels :
8
+ {{- include "flagsmith.labels" . | nindent 4 }}
9
+ app.kubernetes.io/component : test-e2e
10
+ annotations :
11
+ " helm.sh/hook " : test
12
+ spec :
13
+ {{- if .Values.api.image.imagePullSecrets }}
14
+ imagePullSecrets :
15
+ {{ toYaml .Values.api.image.imagePullSecrets | indent 4 }}
16
+ {{- end }}
17
+ containers :
18
+ - name : e2e
19
+ image : {{ .Values._destructiveTests.e2e.image.repository }}:{{ .Values._destructiveTests.e2e.image.tag | default .Values.api.image.tag | default (printf "%s" .Chart.AppVersion) }}
20
+ imagePullPolicy : {{ .Values.frontend.image.imagePullPolicy }}
21
+ env : {{ include "flagsmith.frontend.environment" . | nindent 8 }}
22
+ resources : {{ .Values._destructiveTests.e2e.resources | toYaml | nindent 8 }}
23
+ command :
24
+ - bash
25
+ - -c
26
+ - " sed -i 's|http://flagsmith-api:8000.*/|http://'$FLAGSMITH_API'|' ./env/project_e2e.js ./common/project.js && cat ./env/project_e2e.js ./common/project.js && npm run test"
27
+ restartPolicy : Never
28
+ {{- end }}
29
+ {{- end }}
Original file line number Diff line number Diff line change @@ -317,18 +317,12 @@ _destructiveTests:
317
317
# A test is enabled if both this and the specific test is enabled
318
318
enabled : false
319
319
testToken : test-e2e-token
320
- # This "monster" is in lieu of a specially constructed Docker image
321
- # that contains the code and dependencies for running the e2e
322
- # tests. It works by starting from a plain Ubuntu container,
323
- # retrieving the commit SHA from the API container, then cloning the
324
- # code from Github, installing dependencies, then running the tests.
325
- e2eMonster :
320
+ e2e :
326
321
enabled : true
327
322
image :
328
- repository : ubuntu
329
- tag : jammy
323
+ repository : flagsmith/flagsmith-e2e-tests
324
+ tag : null
330
325
imagePullPolicy : IfNotPresent
331
- useFirefox : false
332
326
resources :
333
327
requests :
334
328
memory : 1Gi
You can’t perform that action at this time.
0 commit comments