From 6f36d5a5220616c7f5e09e2292b7482aa8ad2dec Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 18 Jun 2024 18:23:36 +0300 Subject: [PATCH] bump test (#838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** ⚒️ Fixes # **⚙️ 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?** **📃 Notes:** **✔️ 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._ --- library/common-test/Chart.yaml | 2 +- .../volsync/replication_src_spec_test.yaml | 208 ++++++++++-------- 2 files changed, 120 insertions(+), 90 deletions(-) diff --git a/library/common-test/Chart.yaml b/library/common-test/Chart.yaml index 3b83e56d..5610bc5c 100644 --- a/library/common-test/Chart.yaml +++ b/library/common-test/Chart.yaml @@ -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 diff --git a/library/common-test/tests/volsync/replication_src_spec_test.yaml b/library/common-test/tests/volsync/replication_src_spec_test.yaml index 757c3f7d..2071e099 100644 --- a/library/common-test/tests/volsync/replication_src_spec_test.yaml +++ b/library/common-test/tests/volsync/replication_src_spec_test.yaml @@ -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}$"