Skip to content

test: Add E2E coverage for helm push OCI subpaths and build-info modu… - #3455

Merged
naveenku-jfrog merged 1 commit into
masterfrom
test/helm-push-oci-subpath-e2e
Apr 28, 2026
Merged

naveenku-jfrog merged 1 commit into
masterfrom
test/helm-push-oci-subpath-e2e

Conversation

@naveenku-jfrog

Copy link
Copy Markdown
Collaborator

Adds three integration tests in helm_test.go that exercise the behaviours hardened in jfrog/jfrog-cli-artifactory#430:

  • TestHelmPushWithSubpath: pushing to oci:////team-alpha stores the chart at /team-alpha// (sub-path is honoured).
  • TestHelmPushWithMultiLevelSubpath: the same behaviour holds for deeply nested sub-paths (oci:////org/team-beta/project-gamma).
  • TestHelmPushModuleCoexistenceAfterExistingModule: when the partial build info already contains a non-helm module (seeded via rt build-add-dependencies), helm push must add its helm module alongside the existing one instead of dropping the helm artifacts.

Also introduces shared helpers (packageHelmChartForPush, helmSubpathRegistryURL, runHelmSubpathPushTest, assertOCIArtifactsUnderSubpath, and the maybeSkipHelm* skip helpers) so the new tests and the existing helm suite share the OCI-endpoint / HTTPS / account-lockout skip logic.

No production code changes; tests-only.

  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • The pull request is targeting the master branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....

@naveenku-jfrog
naveenku-jfrog force-pushed the test/helm-push-oci-subpath-e2e branch from 1debc28 to e87f88f Compare April 27, 2026 06:02
@naveenku-jfrog
naveenku-jfrog force-pushed the test/helm-push-oci-subpath-e2e branch from e87f88f to 7bca97d Compare April 27, 2026 06:04
@naveenku-jfrog naveenku-jfrog added the safe to test Approve running integration tests on a pull request label Apr 27, 2026
…le coexistence

Adds three integration tests in helm_test.go that exercise the behaviours
hardened in jfrog/jfrog-cli-artifactory#430:

- TestHelmPushWithSubpath: pushing to oci://<host>/<repo>/team-alpha stores
  the chart at <repo>/team-alpha/<chart>/<version> (sub-path is honoured).
- TestHelmPushWithMultiLevelSubpath: the same behaviour holds for deeply
  nested sub-paths (oci://<host>/<repo>/org/team-beta/project-gamma).
- TestHelmPushModuleCoexistenceAfterExistingModule: when the partial
  build info already contains a non-helm module (seeded via
  rt build-add-dependencies), helm push must add its helm module alongside
  the existing one instead of dropping the helm artifacts.

Also introduces shared helpers (packageHelmChartForPush, helmSubpathRegistryURL,
runHelmSubpathPushTest, assertOCIArtifactsUnderSubpath, and the
maybeSkipHelm* skip helpers) so the new tests and the existing helm suite
share the OCI-endpoint / HTTPS / account-lockout skip logic.

No production code changes; tests-only.

Made-with: Cursor
@naveenku-jfrog
naveenku-jfrog force-pushed the test/helm-push-oci-subpath-e2e branch from 7bca97d to 10ec9b9 Compare April 27, 2026 06:15
@naveenku-jfrog naveenku-jfrog added safe to test Approve running integration tests on a pull request and removed safe to test Approve running integration tests on a pull request labels Apr 27, 2026
@naveenku-jfrog naveenku-jfrog self-assigned this Apr 27, 2026
@naveenku-jfrog
naveenku-jfrog merged commit fcfedee into master Apr 28, 2026
86 of 144 checks passed
@naveenku-jfrog
naveenku-jfrog deleted the test/helm-push-oci-subpath-e2e branch April 28, 2026 13:41

This branch had an error being deployed

1 failed deployment
frogbot — 10ec9b96 Deployed Apr 27, 2026 by naveenku-jfrog via scan-pull-request #4090
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Approve running integration tests on a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants