Skip to content

Commit

Permalink
tests: sort env vars before asserting them to make run deterministic (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
blumamir authored Sep 25, 2024
1 parent f1692bd commit 78ee95e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,8 @@ dev-tests-kind-cluster:
.PHONY: dev-tests-setup
dev-tests-setup: TAG := e2e-test
dev-tests-setup: dev-tests-kind-cluster cli-build build-images load-to-kind

# Use this target to avoid rebuilding the images if all that changed is the e2e test code
.PHONY: dev-tests-setup-no-build
dev-tests-setup-no-build: TAG := e2e-test
dev-tests-setup-no-build: dev-tests-kind-cluster load-to-kind
2 changes: 1 addition & 1 deletion tests/e2e/helm-chart/assert-post-dest-runtime-details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ status:
observedWorkloadGeneration: 2 # pod has been restarted after destination was added
runtimeDetailsByContainer:
- containerName: frontend
envVars:
(sort_by(envVars, &name)):
- name: JAVA_OPTS
value: -javaagent:/var/odigos/java/javaagent.jar
- name: JAVA_TOOL_OPTIONS
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/multi-apps/assert-post-dest-runtime-details.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ status:
observedWorkloadGeneration: 2 # pod has been restarted after destination was added
runtimeDetailsByContainer:
- containerName: frontend
envVars:
(sort_by(envVars, &name)):
- name: JAVA_OPTS
value: -javaagent:/var/odigos/java/javaagent.jar
- name: JAVA_TOOL_OPTIONS
Expand Down

0 comments on commit 78ee95e

Please sign in to comment.