ucc-test-modinput CLI tool¶
ucc-test-modinput CLI is a supporting tool.
It comes with following arguments:
-
--helpor-h; shows help message and exits ; you can use it for arguments as well - eg.ucc-test-modinput base64encode -hwill show help message forbase64encode -
--version- shows program’s version number and exit -
base64encode- converts complex string (due to special characters or structure) to base64 string-
--stringor-s;-s [string you want to encode]- eg.base64encode -s ThisIsMyPassword -
--fileor-f;-f [text file path; string from the file will be encoded]- eg.ucc-test-modinput base64encode -f ~/client_secret.json
-
-
base64decode -s [string you want to decode]- eg.ucc-test-modinput base64decode -s VGghczEkTXlQQHNzdzByZA== -
gen- does two things: 1. creates add-on SDK from given openapi.json, 2. creates splunk client module and checks if existing (ucc_modinput_functional/splunk/client/client.py) is the same-
--openapi-jsonor-o;-o [path to openapi.json / source file ]- default value isoutput/*/appserver/static/openapi.json; refer to UCC documentation to learn more where you can find this document -
--client-codeor-c;-c [path to client code / target directory]- default value is set to repo root directory ; this is whereswagger_clientdirectory will be saved or overwriten if some exists already. The directory contains client code for TA REST API andswagger_client/README.mdfile that documents the client API -
--tmpor-t;-t [path to directory where temporary files are stored]- default value is set to/modinput/subdirectory of directory used for temporary files -
--platformor-p- not used by default ;--platformflag that can be used to run swaggerapi/swagger-codegen-cli-v3 docker image -
--skip-splunk-client-check- exisitng splunk client will not be checked aginst consistency with swagger client that may lead to inconsistent state of splunk client; this isgenspecific flag and does not exists forinit -
--force-splunk-client-overwritten- existing splunk client will be backup and overwritten by new one; this isgenspecific flag and does not exists forinit
-
-
init- initialize modinput tests (you can read more on that here) and runsgento have add-on SDK created ; none additional argument is required for the initialization step, so argument list is as forgen(excluding--skip-splunk-client-checkand--force-splunk-client-overwritten)