-
Notifications
You must be signed in to change notification settings - Fork 6
Implement CLI replace #906
Copy link
Copy link
Open
Labels
feature/cliIssues or features related to CLI operations.Issues or features related to CLI operations.help wantedExtra attention is neededExtra attention is neededtriage/featureNew requested feature.New requested feature.
Description
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:
inputsoutputsversionmetadata
To Do
-
op_replacedefinition should be added to provide theweaver 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
versionis not explicitly provided, corresponding version bumps are applied automatically (see docs for details and examples) - if mismatching
versionis 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.pywhich should be updated with providedreplace()call
References
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature/cliIssues or features related to CLI operations.Issues or features related to CLI operations.help wantedExtra attention is neededExtra attention is neededtriage/featureNew requested feature.New requested feature.