Skip to content

Commit

Permalink
Try fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Jan 17, 2024
1 parent 59c3e90 commit a65ad2a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/posthog/tests/worker-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tests:
set:
worker.enabled: false
worker.hpa.enabled: false
worker.consumers: [{name: "default"}]
asserts:
- hasDocuments:
count: 0
Expand All @@ -15,6 +16,7 @@ tests:
set:
worker.enabled: true
worker.hpa.enabled: false
worker.consumers: [{name: "default"}]
asserts:
- hasDocuments:
count: 0
Expand All @@ -23,6 +25,7 @@ tests:
set:
worker.enabled: true
worker.hpa.enabled: true
worker.consumers: [{name: "default"}]
asserts:
- hasDocuments:
count: 1
Expand All @@ -31,6 +34,7 @@ tests:
set:
worker.enabled: true
worker.hpa.enabled: true
worker.consumers: [{name: "default"}]
asserts:
- hasDocuments:
count: 1
Expand All @@ -41,6 +45,7 @@ tests:
set:
worker.enabled: true
worker.hpa.enabled: true
worker.consumers: [{name: "default"}]
asserts:
- hasDocuments:
count: 1
Expand All @@ -50,6 +55,7 @@ tests:
- it: sets hpa spec
set:
worker.enabled: true
worker.consumers: [{name: "default"}]
worker:
hpa:
enabled: true
Expand All @@ -66,7 +72,7 @@ tests:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: RELEASE-NAME-posthog-worker
name: RELEASE-NAME-posthog-default-worker
minReplicas: 2
maxReplicas: 10
metrics:
Expand Down

0 comments on commit a65ad2a

Please sign in to comment.