Skip to content

Latest commit

 

History

History
75 lines (61 loc) · 6 KB

File metadata and controls

75 lines (61 loc) · 6 KB

Case 3: Prompt JSON Export and Import

Purpose / Covered Commands

  • openplate project print-init-json
  • openplate project print-init-json --verbose
  • openplate project print-init-json --dest-folder
  • openplate project print-update-json
  • openplate init --prompts-json-file
  • openplate init --prompts-json-stdin
  • openplate update --prompts-json-file
  • openplate update --prompts-json-stdin

Matrix facets covered by this case:

  • global --config-file
  • global --project-root
  • global --debug
  • global --ask-hidden
  • prompt JSON compact export
  • prompt JSON verbose export
  • prompt JSON file import
  • prompt JSON stdin import
  • prompt JSON hidden-scope behavior
  • prompt JSON init placement consistency
  • prompt JSON update project-context consistency
  • prompt JSON ignored extra node behavior
  • prompt JSON ignored extra answer behavior
  • prompt JSON invalid-choice rejection
  • project print-init-json read-only behavior
  • project print-update-json read-only behavior

Prerequisites

  • Run from the repository root in bash.
  • Ensure bash, python, and git are on PATH.

Exact Commands To Run

bash ./manual-tests/cleanup-manual-tests.sh case-3
bash ./manual-tests/run-manual-tests.sh case-3

Expected Scripted Outputs

Manual Validation Checklist

  • Open the compact and verbose init artifacts side by side and confirm only the verbose export carries info metadata.
  • Confirm the export workspace remained read-only from OpenPlate’s perspective by checking that manual-tests/work/case-3/export-workspace has no project config or generated template files.
  • Confirm the file-import log includes the warning text for both ignored unmatched nodes and ignored unused prompt parameters.
  • Confirm the init prompt export and init import commands use the same explicit --dest-folder in the recorded steps.
  • Confirm the update prompt export and update import commands use the same selected project root and tracked project state.
  • Confirm the update prompt JSON artifact includes hidden parameters and structured supplied plus value entries.
  • Confirm the invalid-choice log shows update prompt JSON rejecting an unsupported choice value.
  • Confirm all recorded source URLs inside the JSON artifacts still point at the local materialized catalog repo for this case.

Cleanup Notes