This is a command line interface (CLI) that is an automated end-to-end client for the JDX API.
It is useful for doing automated testing.
-
Install
pipenv
by following these instructions. -
Install the required libraries using pipenv,
pipenv install --skip-lock
If that fails try,
sudo pipenv install
To run the program you will need to execute python through pipenv.
You can do this one of two ways,
-
Open a pipenv shell and execute the program from within
pipenv shell python client.py
-
Execute pipenv from outside of a shell (Preferred method)
pipenv run python client.py
This end-to-end client is a command line utility so you can provide optional arguments to change its behaviour.
Please use,
pipenv run python client.py -h
to learn more about the optional arguments.
Run every file within the /files
directory against production server,
pipenv run python client.py
Run all of the files but loop forever (please try not to use this, we are not rate limiting currently),
pipenv run python client.py -l
Submit a single file through the JDX workflow,
pipenv run python client.py -d replace-with-your-file.txt
Choose a different directory of files to submit,
pipenv run python client.py -d ~/path/to/your/directory/
Choose a specific competency framework for the workflow,
pipenv run python client.py -f c9ac8b62-b659-40d1-a191-0600e92c8b7d
Submit a specific file, choose a specific framework, and loop forever,
pipenv run python client.py -d ./files/replace-with-your-file.txt -f c9ac8b62-b659-40d1-a191-0600e92c8b7d -l