Add a command that performs the validation only, and returns either "Content Spec Valid", or the list of errors encountered. The validate command is used to check a Content Spec for validity, and does not write anything to the database.
This is done now Josh. A new command (validate) was created to validate a new/edit content spec, or an existing topic. This is done as follows: -To validate a new content spec: java -jar skynet.jar validate -cn zanata.txt -To validate an edit content spec: java -jar skynet.jar validate -ce zanata.txt -To validate an existing topic xml: java -jar skynet.jar validate -tx 7 We also removed the --validate option when pulling a topic since that is now done using this Validate command.
No worky: Demonstrating that the connection to the server works: [jwulf@gaura Topic-based_authoring]$ skynet pull -c --post 8 -o /dev/null Skynet client version: 0.0.13 Loading configuration from /home/jwulf/.config/skynet.ini Web Service at http://localhost:8080/ version: 0.0.14 INFO: Output saved to: /dev/null Demonstrating that validate no worky: [jwulf@gaura Topic-based_authoring]$ skynet validate -cn post-Writing_with_Topics.txt Skynet client version: 0.0.13 Loading configuration from /home/jwulf/.config/skynet.ini Web Service at http://localhost:8080/ version: 0.0.14 ERROR: Cannot resolve the server address! Looks like it does see the server, because it gets the correct version. Error message might be misleading.
Don't forget to target this to a release.
Fixed. The problem was that the web address was wrong. I'm sure I saw Ali fix this but maybe he didn't commit and I overwrote the changes. Will be released in client version 0.13.1 (which will be released in 0.15.0 for the csprocessor). (Note: I'll change this to ON_QA when I can get Ali to assign the bug to me)
[jwulf@radhe Content_Spec_Processor]$ csprocessor validate -ce post-Content_Spec_Processor_Guide.spec CSProcessor client version: 0.17.0 Loading configuration from /home/jwulf/.config/csprocessor.ini Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4 INFO: The Content Specification is valid.