bump test (#838)

**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._
This commit is contained in:
Stavros Kois
2024-06-18 18:23:36 +03:00
committed by GitHub
parent 0a8dca954d
commit 6f36d5a522
2 changed files with 120 additions and 90 deletions

View File

@@ -3,7 +3,7 @@ appVersion: ""
dependencies:
- name: common
repository: file://../common
version: ~24.0.0
version: ~24.1.0
deprecated: false
description: Helper chart to test different use cases of the common library
home: https://github.com/truecharts/apps/tree/master/charts/library/common-test

View File

@@ -52,27 +52,33 @@ tests:
isAPIVersion:
of: volsync.backube/v1alpha1
- documentIndex: *replicationDestDoc
equal:
isSubset:
path: spec
value:
content:
sourcePVC: test-release-name-common-test-srcbackup
trigger:
schedule: "0 0 * * *"
restic:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Snapshot
pruneIntervalDays: 7
retain:
hourly: 24
daily: 7
weekly: 5
accessModes:
- ReadWriteOnce
unlock: "20240617114552"
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
isSubset:
path: spec.restic
content:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Snapshot
pruneIntervalDays: 7
retain:
hourly: 24
daily: 7
weekly: 5
accessModes:
- ReadWriteOnce
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
matchRegex:
path: spec.restic.unlock
pattern: "^[0-9]{14}$"
- it: should generate correct spec with changed defaults
set:
@@ -106,27 +112,33 @@ tests:
isAPIVersion:
of: volsync.backube/v1alpha1
- documentIndex: *replicationDestDoc
equal:
isSubset:
path: spec
value:
content:
sourcePVC: test-release-name-common-test-srcbackup
trigger:
schedule: "1 0 * * *"
restic:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
unlock: "20240617114552"
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
isSubset:
path: spec.restic
content:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
matchRegex:
path: spec.restic.unlock
pattern: "^[0-9]{14}$"
- it: should generate correct spec with storageClassName
set:
@@ -161,28 +173,34 @@ tests:
isAPIVersion:
of: volsync.backube/v1alpha1
- documentIndex: *replicationDestDoc
equal:
isSubset:
path: spec
value:
content:
sourcePVC: test-release-name-common-test-srcbackup
trigger:
schedule: "1 0 * * *"
restic:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
unlock: "20240617114552"
storageClassName: somestorageclass
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
isSubset:
path: spec.restic
content:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
storageClassName: somestorageclass
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
matchRegex:
path: spec.restic.unlock
pattern: "^[0-9]{14}$"
- it: should generate correct spec with volumeSnapshotClass
set:
@@ -217,28 +235,34 @@ tests:
isAPIVersion:
of: volsync.backube/v1alpha1
- documentIndex: *replicationDestDoc
equal:
isSubset:
path: spec
value:
content:
sourcePVC: test-release-name-common-test-srcbackup
trigger:
schedule: "1 0 * * *"
restic:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
unlock: "20240617114552"
volumeSnapshotClassName: somevsc
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
isSubset:
path: spec.restic
content:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
volumeSnapshotClassName: somevsc
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
matchRegex:
path: spec.restic.unlock
pattern: "^[0-9]{14}$"
- it: should generate correct spec with volumeSnapshotClass and StorageClass
set:
@@ -274,26 +298,32 @@ tests:
isAPIVersion:
of: volsync.backube/v1alpha1
- documentIndex: *replicationDestDoc
equal:
isSubset:
path: spec
value:
content:
sourcePVC: test-release-name-common-test-srcbackup
trigger:
schedule: "1 0 * * *"
restic:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
unlock: "20240617114552"
storageClassName: somestorageclass
volumeSnapshotClassName: somevsc
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
isSubset:
path: spec.restic
content:
repository: test-release-name-common-test-srcbackup-volsync-mybackup1
copyMethod: Clone
pruneIntervalDays: 5
retain:
hourly: 20
daily: 5
weekly: 3
accessModes:
- ReadWriteOnce
storageClassName: somestorageclass
volumeSnapshotClassName: somevsc
moverSecurityContext:
fsGroup: 568
runAsUser: 568
runAsGroup: 568
- documentIndex: *replicationDestDoc
matchRegex:
path: spec.restic.unlock
pattern: "^[0-9]{14}$"