Skip to content

Implement CLI replace #906

@fmigneault

Description

@fmigneault

Description

As part of the DRU (Deploy, Replace, Undeploy), while PATCH/PUT endpoints are implemented and working, the CLI does not provide a replace() function corresponding to the deploy()/undeploy() operations.

Implement it, and support the parameters it provides. Contrary to deploy() that takes the full body/cwl, more granular fields should be provided to avoid simply having a duplicate definition. Some example parameters to consider:

  • inputs
  • outputs
  • version
  • metadata

To Do

  • op_replace definition should be added to provide the weaver replace ... CLI operation
  • add few tests validating the feature
  • depending on the Process Semantic Version Level Resolution according to Applied Changes:
    • the corresponding HTTP method is employed
    • if version is not explicitly provided, corresponding version bumps are applied automatically (see docs for details and examples)
    • if mismatching version is specified along another parameter, HTTP error is properly handled (by the API, and reported in usual CLI _parse_result() way)
  • add OGC Code Sprint test suite and relevant OAP 2.0 conf classes #870 employs some manually crafted "replace" operations in tests/functional/code-sprint/test_server.py which should be updated with provided replace() call

References

Metadata

Metadata

Assignees

Labels

feature/cliIssues or features related to CLI operations.help wantedExtra attention is neededtriage/featureNew requested feature.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions