ucc-test-modinput CLI tool¶
ucc-test-modinput CLI is a supporting tool.
It comes with following arguments:
-
--help
or-h
; shows help message and exits ; you can use it for arguments as well - eg.ucc-test-modinput base64encode -h
will 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-
--string
or-s
;-s [string you want to encode]
- eg.base64encode -s ThisIsMyPassword
-
--file
or-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-json
or-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-code
or-c
;-c [path to client code / target directory]
- default value is set to repo root directory ; this is whereswagger_client
directory will be saved or overwriten if some exists already. The directory contains client code for TA REST API andswagger_client/README.md
file that documents the client API -
--tmp
or-t
;-t [path to directory where temporary files are stored]
- default value is set to/modinput/
subdirectory of directory used for temporary files -
--platform
or-p
- not used by default ;--platform
flag 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 isgen
specific flag and does not exists forinit
-
--force-splunk-client-overwritten
- existing splunk client will be backup and overwritten by new one; this isgen
specific flag and does not exists forinit
-
-
init
- initialize modinput tests (you can read more on that here) and runsgen
to have add-on SDK created ; none additional argument is required for the initialization step, so argument list is as forgen
(excluding--skip-splunk-client-check
and--force-splunk-client-overwritten
)