Skip to content

Commit

Permalink
Prepare for Strimzi 0.42.0 release - fix Helm Chart tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj committed Jul 1, 2024
1 parent 6de87a5 commit 2ea5fbd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ tests:
asserts:
- isKind:
of: Deployment
- equal:
- matchRegex:
path: spec.template.spec.containers[0].image
value: quay.io/strimzi/operator:latest
pattern: 'quay.io/strimzi/operator:(latest|[0-9]+\.[0-9]+\.[0-9]+)'

- it: should have custom image if details are provided
set:
Expand Down Expand Up @@ -128,22 +128,22 @@ tests:
value: STRIMZI_KAFKA_MIRROR_MAKER_2_IMAGES
- matchRegex:
path: spec.template.spec.containers[0].env[3].value
pattern: 'quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: 'quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[4].value
pattern: 'quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: 'quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[5].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[6].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[7].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[8].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'

- it: should construct custom kafka images from specified image registry if provided
set:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ tests:
asserts:
- isKind:
of: Deployment
- equal:
- matchRegex:
path: spec.template.spec.containers[0].image
value: quay.io/strimzi/operator:latest
pattern: 'quay.io/strimzi/operator:(latest|[0-9]+\.[0-9]+\.[0-9]+)'

- it: should have custom image if details are provided
set:
Expand Down Expand Up @@ -128,22 +128,22 @@ tests:
value: STRIMZI_KAFKA_MIRROR_MAKER_2_IMAGES
- matchRegex:
path: spec.template.spec.containers[0].env[3].value
pattern: 'quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: 'quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[4].value
pattern: 'quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: 'quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[5].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[6].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[7].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'
- matchRegex:
path: spec.template.spec.containers[0].env[8].value
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:latest-kafka-[0-9]+\.[0-9]+\.[0-9]+'
pattern: '[0-9]+\.[0-9]+\.[0-9]+=quay.io/strimzi/kafka:(latest|[0-9]+\.[0-9]+\.[0-9]+)-kafka-[0-9]+\.[0-9]+\.[0-9]+'

- it: should construct custom kafka images from specified image registry if provided
set:
Expand Down

0 comments on commit 2ea5fbd

Please sign in to comment.