@W-20893788 Complete MRT API coverage with reorganized command structure#59
Merged
@W-20893788 Complete MRT API coverage with reorganized command structure#59
Conversation
…rors
- Update push.test.ts to use the new listBundles({projectSlug}, auth) signature
- Change import style in download.ts to use named imports per eslint rules
…me-complete-coverage
dbb309f to
4bdd2b1
Compare
4bdd2b1 to
f1c3a6e
Compare
4a4d55f to
f1c3a6e
Compare
Incorporates test infrastructure from main: - SDK test-utils export with config-isolation - CLI test helpers (test-setup.ts, stub-parse.ts) - ESLint and Mocha config updates for testing - 40+ new CLI command tests Resolved conflict: removed mrt/push.ts (restructured to mrt/bundle/deploy.ts in this branch)
- Add tests for bundle commands (deploy, list, history, download) - Add tests for project commands (list, get, create, update, delete) - Add tests for project member commands (list, add) - Add tests for project notification commands (list) - Add tests for env commands (get, list, update) - Add tests for user commands (profile, api-key) - Add tests for org commands (list, b2c) - Remove obsolete mrt/push.test.ts (command restructured to bundle/deploy) Tests follow the patterns introduced in main branch using createIsolatedConfigHooks, stubParse, and sinon for mocking.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR completes the MRT (Managed Runtime) API coverage and reorganizes the CLI command structure for better usability.
Command Structure Reorganization
Reorganized MRT commands into a logical hierarchy based on scope (organization, project, environment):
Key Changes
Command Moves:
mrt push→mrt bundle deploy(with optional bundleId for deploying existing bundles)mrt deploy/list→mrt bundle historymrt member/*→mrt project member/*mrt notification/*→mrt project notification/*mrt access-control/*→mrt env access-control/*mrt cache/invalidate→mrt env invalidatemrt b2c/org-info→mrt org b2cmrt b2c/target-info→mrt env b2cNew Features:
mrt bundle deploynow combines push and deploy functionalitymrt bundle downloadnow actually downloads the artifact (not just URL)Documentation:
docs/cli/mrt.mdwith all 40+ commands