[ 
https://issues.apache.org/jira/browse/HDDS-9764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Attila Doroszlai updated HDDS-9764:
-----------------------------------
    Description: 
Some commands that already support {{--json}} option do not have acceptance 
tests for that.  One such command is {{ozone admin container info}}, but there 
are probably more.

At a minimum we should validate that the output is valid JSON, e.g. by piping 
through {{jq}}.

Ideally we would add example JSON from the current version, and verify that 
JSON output from the command has at least those elements.  (i.e. allow 
extension of the structure, but not structure change and removal.)

  was:
Some commands that already support {{{--json}} option do not have acceptance 
tests for that.  One such command is {{ozone admin container info}}, but there 
are probably more.

At a minimum we should validate that the output is valid JSON, e.g. by piping 
through {{jq}}.

Ideally we would add example JSON from the current version, and verify that 
JSON output from the command has at least those elements.  (i.e. allow 
extension of the structure, but not structure change and removal.)


> Add Robot test for JSON output where missing
> --------------------------------------------
>
>                 Key: HDDS-9764
>                 URL: https://issues.apache.org/jira/browse/HDDS-9764
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: Ozone CLI, test
>            Reporter: Attila Doroszlai
>            Assignee: Will Xiao
>            Priority: Major
>              Labels: pull-request-available
>
> Some commands that already support {{--json}} option do not have acceptance 
> tests for that.  One such command is {{ozone admin container info}}, but 
> there are probably more.
> At a minimum we should validate that the output is valid JSON, e.g. by piping 
> through {{jq}}.
> Ideally we would add example JSON from the current version, and verify that 
> JSON output from the command has at least those elements.  (i.e. allow 
> extension of the structure, but not structure change and removal.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to