Skip to content

Commit

Permalink
chore(ci): make sure renovate won't merge bad updates (#30432)
Browse files Browse the repository at this point in the history
**Description**
<!--
Please include a summary of the change and which issue is fixed. Please
also include relevant motivation and context. List any dependencies that
are required for this change.
-->
⚒️ Fixes  # <!--(issue)-->

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [ ] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

**➕ App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
  • Loading branch information
stavros-k authored Dec 29, 2024
1 parent 98d4af6 commit 3ff411c
Showing 1 changed file with 142 additions and 0 deletions.
142 changes: 142 additions & 0 deletions charts/library/common-test/tests/chartContext/image_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
suite: image version test
templates:
- common.yaml
release:
name: test-release-name
namespace: test-release-namespace
tests:
- it: should make sure that postgres 15 uses correct image
set:
cnpg:
my-15pg:
enabled: true
user: test-user
database: test-db
password: test-password
pgVersion: 15
asserts:
- documentIndex: &clusterDoc 0
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-15pg
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/cloudnative-pg/postgresql:15.\d+

- it: should make sure that postgis 15 uses correct image
set:
cnpg:
my-15postgis:
enabled: true
user: test-user
database: test-db
password: test-password
type: postgis
pgVersion: 15
asserts:
- documentIndex: *clusterDoc
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-15postgis
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/cloudnative-pg/postgis:15.\d+

- it: should make sure that vector 15 uses correct image
set:
cnpg:
my-15vector:
enabled: true
user: test-user
database: test-db
password: test-password
type: vectors
pgVersion: 15
asserts:
- documentIndex: *clusterDoc
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-15vector
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/tensorchord/cloudnative-pgvecto.rs:15.\d+

- it: should make sure that postgres 16 uses correct image
set:
cnpg:
my-16pg:
enabled: true
user: test-user
database: test-db
password: test-password
pgVersion: 16
asserts:
- documentIndex: *clusterDoc
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-16pg
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/cloudnative-pg/postgresql:16.\d+

- it: should make sure that postgis 16 uses correct image
set:
cnpg:
my-16postgis:
enabled: true
user: test-user
database: test-db
password: test-password
type: postgis
pgVersion: 16
asserts:
- documentIndex: *clusterDoc
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-16postgis
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/cloudnative-pg/postgis:16.\d+

- it: should make sure that vector 16 uses correct image
set:
cnpg:
my-16vector:
enabled: true
user: test-user
database: test-db
password: test-password
pgVersion: 16
type: vectors
asserts:
- documentIndex: *clusterDoc
isKind:
of: Cluster
- documentIndex: *clusterDoc
equal:
path: metadata.name
value: test-release-name-common-test-cnpg-my-16vector
- documentIndex: *clusterDoc
matchRegex:
path: spec.imageName
pattern: ghcr.io/tensorchord/cloudnative-pgvecto.rs:16.\d+

0 comments on commit 3ff411c

Please sign in to comment.