Skip to content

Commit

Permalink
Add another prometheus check I found in _helpers.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
jforest committed Nov 21, 2024
1 parent b96c7a3 commit 8f9c684
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ci/rstudio-workbench/tests/prometheus_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,20 @@ tests:
- equal:
path: "spec.template.spec.containers[1].ports[0].containerPort"
value: 9108
- it: should ensure the metrics port is used in the rstudio container if prometheus is enabled and legacy is not true
template: deployment.yaml
set:
prometheus:
enabled: true
legacy: false
port: 8989
asserts:
- equal:
path: "spec.template.spec.containers[0].name"
value: "rstudio"
- equal:
path: "spec.template.spec.containers[0].ports[1].name"
value: "metrics"
- equal:
path: "spec.template.spec.containers[0].ports[1].containerPort"
value: 8989

0 comments on commit 8f9c684

Please sign in to comment.