Skip to content

JGC-492 - Add e2e test for release bundle --format flag#3546

Open
ehl-jf wants to merge 2 commits into
masterfrom
JGC-492-format-flag-e2e
Open

JGC-492 - Add e2e test for release bundle --format flag#3546
ehl-jf wants to merge 2 commits into
masterfrom
JGC-492-format-flag-e2e

Conversation

@ehl-jf

@ehl-jf ehl-jf commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds end-to-end coverage for the new --format flag on the lifecycle Release Bundle V2 commands, introduced in jfrog-cli-artifactory#488.

TestReleaseBundleFormatFlag (in lifecycle_test.go) verifies:

  • release-bundle-create --format=json emits a JSON confirmation object (release_bundle_name, release_bundle_version, status: "created").
  • release-bundle-promote --format=table renders a summary table containing the expected headers (BUNDLE NAME, ENVIRONMENT) and the bundle name.

The release-bundle-promote --format=json (default) path is already covered by the existing promoteRb helper.

⚠️ Temporary dependency replace

This branch carries a temporary replace directive in go.mod pointing github.com/jfrog/jfrog-cli-artifactory at the JGC-492 feature branch commit, so the e2e test can exercise the not-yet-released --format flag:

replace github.com/jfrog/jfrog-cli-artifactory => github.com/ehl-jf/jfrog-cli-artifactory v0.0.0-20260615113839-04c78a8cf4fb

This must be removed once jfrog-cli-artifactory#488 is merged and the dependency is bumped to a released version. Not for merge until then.


  • 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 ./....

@ehl-jf ehl-jf added ignore for release Automatically generated release notes safe to test Approve running integration tests on a pull request labels Jun 15, 2026
@ehl-jf ehl-jf 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 Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore for release Automatically generated release notes 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