Skip to content

fix(tests): update unittests for common - #498

Merged
bosbaber merged 1 commit into
mainfrom
stephan/20261027-common-tests-bump
Oct 27, 2026
Merged

bosbaber merged 1 commit into
mainfrom
stephan/20261027-common-tests-bump

Conversation

@bosbaber

Copy link
Copy Markdown
Collaborator

No description provided.

@bosbaber
bosbaber requested a review from a team as a code owner October 27, 2026 08:35
Copilot AI balanced review requested due to automatic review settings October 27, 2026 08:35
@bosbaber bosbaber self-assigned this Oct 27, 2026
@bosbaber
bosbaber merged commit 767c283 into main Oct 27, 2026
11 checks passed
@bosbaber
bosbaber deleted the stephan/20261027-common-tests-bump branch October 27, 2026 08:35
github-actions Bot added a commit that referenced this pull request Oct 27, 2026
Automated chart versioning after merge of PR #498.
This PR updates Chart.yaml versions, packages updated charts into
docs/interledger,
and regenerates the Helm index.

Co-authored-by: bosbaber <1615407+bosbaber@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new PVC tests rely on persistence.name/persistence.size defaults that are not defined in the chart's values, so most of those cases fail as written.

1 open issue
What changed in this PR

This PR refreshes the common library chart's unit-test suite to cover recently added behavior and bumps the two dependent charts to the library's current 0.11.0 version. It adds a new test fixture/template for PersistentVolumeClaim rendering and a new suite exercising pod/deployment fields (replica handling with explicit 0, autoscaling ownership, revisionHistoryLimit/terminationGracePeriodSeconds, and automountServiceAccountToken logic), keeping the test charts aligned with the shared library.

Changes:

  • Add pvc.yaml test template plus pvc_test.yaml covering claim naming, storage class, access/volume modes, annotations, disabled claims, and required-field failures.
  • Add deployment_pod_fields_test.yaml validating replica count (including explicit 0), autoscaling, grace period, and service-account token mounting behavior.
  • Bump the common dependency from 0.10.0 to 0.11.0 (and regenerate Chart.lock) in common-unittests and multideployment.
File Description
charts/​tests/​common-unittests/​tests/​pvc_test.yaml New PVC rendering tests; depends on persistence defaults not present in chart values.
charts/​tests/​common-unittests/​templates/​pvc.yaml New test template invoking common.pvc with .Values.persistence.
charts/​tests/​common-unittests/​tests/​deployment_pod_fields_test.yaml New tests for replicas, grace period, and service-account token behavior.
charts/​tests/​common-unittests/​Chart.yaml Bumps common dependency to 0.11.0.
charts/​tests/​common-unittests/​Chart.lock Regenerated lock for common 0.11.0.
charts/​examples/​multideployment/​Chart.yaml Bumps common dependency to 0.11.0.
charts/​examples/​multideployment/​Chart.lock Regenerated lock for common 0.11.0.

Review effort: Balanced

Comment on lines +4 to +5
set:
fullnameOverride: black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants