xtesting db populate script
Project description
xtesting-db-populate
Script to populate xtesting-db with project, tests cases and pods.
This application read local xtesting files and variables to populate test databases.
Install
pip install xtesting-db-populate
Requirements
To create projects and populate tests cases, testcases.yaml
file
is Mandatory
To get the testapi url, the Mandatory variable TEST_DB_URL
must
be set with the value of the test api url
(https://testapi.test/api/v1/
)
If you want to set pods, One of the two may be set:
- an environment variable
NODE_NAME
must be set to the pod value (pod1
) - a file
pods.yaml
that should be like:--- pods: - pod1 - pod2
Usage
! ~/D/v/a/v/xtesting_project testing-db-populate
🎯 get testapi url [success]
📤 read pods.yaml [success]
🤖 populate pod "pod1" [skipped]
🤖 populate pod "pod2" [skipped]
📤 read testcases.yaml [success]
📦 populate project "project1" [skipped]
📋 populate case "test 1" [skipped]
📋 populate case "test 2" [skipped]
📋 populate case "test 3" [skipped]
📋 populate case "test 4" [skipped]
To specify the folder where is store testcases.yaml et pods.yaml add
the folder path as argument. As an example if they are on tests
folder:
! ~/D/v/a/v/xtesting_project testing-db-populate tests
🎯 get testapi url [success]
📤 read pods.yaml [success]
🤖 populate pod "pod1" [skipped]
🤖 populate pod "pod2" [skipped]
📤 read testcases.yaml [success]
📦 populate project "project1" [skipped]
📋 populate case "test 1" [skipped]
📋 populate case "test 2" [skipped]
📋 populate case "test 3" [skipped]
📋 populate case "test 4" [skipped]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for xtesting-db-populate-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd168d37ab45d73aa1e38bea95c6504a519a3f397e1c68b2d1ac4a8ec12e5588 |
|
MD5 | b1c067a46f17546912f74e0ec58fbbe5 |
|
BLAKE2b-256 | 0ce2d725c14e7ac7894fe99581c7e59d78692059b3deb8422e4c174ffde98707 |
Close
Hashes for xtesting_db_populate-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1efdbe1ae8dd3990e5718036322d0382fefefe5da240b08614c88858bd1aea9 |
|
MD5 | 07b6fbe8928e50c8c491a8f427212841 |
|
BLAKE2b-256 | 77e10526f54df6a7e37f1404d2e7e4590d9a0e5d3db9b8a9d62589e356f873cb |