fix(tests): fix label/annotation paths and add missing templates
- Replace escaped dot notation (app\.kubernetes\.io/name) with bracket notation (["app.kubernetes.io/name"]) - Add missing templates to test suites (service.yaml, ingress.yaml, httpRoute.yaml, serviceaccount.yaml, persistentVolumeClaim.yaml) - This fixes 40+ test failures related to unknown paths in labels and annotations Test progress: 535/603 passing (89%), up from 495/603 (82%) Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
1 parent
7e2690d3c4
commit
e34c0dbb61
10 files changed
+80
-74
No files matched your search
@@ -3,8 +3,10 @@ templates:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
- httpRoute.yaml
|
||||
- networkpolicy.yaml
|
||||
- serviceMonitor.yaml
|
||||
- serviceaccount.yaml
|
||||
- persistentVolumeClaim.yaml
|
||||
tests:
|
||||
# =============================================================================
|
||||
@@ -288,11 +290,11 @@ tests:
|
||||
asserts:
|
||||
- template: serviceaccount.yaml
|
||||
equal:
|
||||
path: metadata.annotations.eks\.amazonaws\.com/role-arn
|
||||
path: metadata.annotations["eks.amazonaws.com/role-arn"]
|
||||
value: arn:aws:iam::123456789012:role/jellyfin-s3
|
||||
- template: service.yaml
|
||||
equal:
|
||||
path: metadata.annotations.service\.beta\.kubernetes\.io/aws-load-balancer-type
|
||||
path: metadata.annotations["service.beta.kubernetes.io/aws-load-balancer-type"]
|
||||
value: nlb
|
||||
- template: ingress.yaml
|
||||
equal:
|
||||
@@ -316,11 +318,11 @@ tests:
|
||||
asserts:
|
||||
- template: serviceaccount.yaml
|
||||
equal:
|
||||
path: metadata.annotations.iam\.gke\.io/gcp-service-account
|
||||
path: metadata.annotations["iam.gke.io/gcp-service-account"]
|
||||
value: jellyfin@project-id.iam.gserviceaccount.com
|
||||
- template: service.yaml
|
||||
equal:
|
||||
path: metadata.annotations.cloud\.google\.com/neg
|
||||
path: metadata.annotations["cloud.google.com/neg"]
|
||||
value: '{"ingress": true}'
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in new issue
Block a user