This script provides command-line tools for MD Cloud Integration, including authentication and uploading cases.
- Python 3.x
- Required environment variables:
PSR_CLOUD_USER
PSR_CLOUD_PASSWORD_HASH
PSR_CLOUD_CONSOLE_PATH
-
Clone the repository:
git clone https://your-repo-url.git cd your-repo-directory
-
Install the required dependencies:
pip install -r requirements.txt
To see the available commands and options, run:
.\dist\mdcloudintegration.exe --help
To authenticate with the MD Cloud, use the auth
command:
.\dist\mdcloudintegration.exe auth
To upload a case, use the upload
command with the required arguments:
.\dist\mdcloudintegration.exe upload --casepath <path_to_case> --casename <case_name> [--cluster <cluster_name>]
.\dist\mdcloudintegration.exe upload --casepath D:\Bitbucket\pycloud\tests\cases\example --casename example_case --cluster PSR-US_STAGING
--version
: Show the version of the MD Cloud Integration tool.auth
: Authenticate with the MD Cloud.upload
: Upload a case to the MD Cloud.--casepath
: (Required) The path to the case directory.--casename
: (Required) The name of the case.--cluster
: (Optional) The name of the cluster to upload the case to.
Ensure the following environment variables are set before running the script:
PSR_CLOUD_USER
: Your MD Cloud username.PSR_CLOUD_PASSWORD_HASH
: The hash of your MD Cloud password.PSR_CLOUD_CONSOLE_PATH
: The path to the MD Cloud console.
This project is licensed under the MIT License - see the LICENSE file for details.