Exclude Tests for Component
Use this API to exclude one/more tests for a chosen component.
URL: http://<eG manager IP:port>/api/eg/orchestration/excludetestsforcomponent
Method: POST
Content-Type: application/json
Parameters | Key values | Example |
---|---|---|
Headers |
managerurl: Base URL of the eG Manager i.e., http://<IP address of the eG console:Port> user: eG username or domain/eG username pwd: Base64 encoded password |
Example with both Default and Optional Key Values: { "componenttype":"Active Directory", "componentname":"actDir:389", "testtype":"configuration", "testname":"Operating System,Drives" } Example with Default key values: { "componenttype":"Active Directory", "componentname":"actDir:389", "testname":"AD Replications,Application Events." } |
Body |
Default: { "componenttype":"component type", "componentname":Component name:Port number", "testname":"comma-separated list of test names" }
|
|
Optional: { "testtype":"performance/ configuration", }
|
Type | Code | Content |
---|---|---|
JSON |
200 |
{ "Succeed": "Test(s) is/are excluded successfully." } |
Type | Code | Content |
---|---|---|
JSON |
401 UNAUTHORIZED |
{ "Error": "One or more tests for the component are already excluded." } |
Figure 1 : Excluding one/more tests for a Component using Postman REST Client
Excluding Tests for Component using cURL
To exclude one/more tests for a component through the REST API using cURL, the command should be specified in the following format:
curl --location --request POST "http://<eG Manager IP:Port>/api/eg/orchestration/excludetestsforcomponent" -H "managerurl:http://<eG Manager IP:Port>" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password" -H "Content-Type: application/json" --data-raw "{'componenttype':'component type', 'componentname':Component name:Port number', 'testname':'comma-separated list of test names', 'testtype':'performance/ configuration'}"
Note that the command specified above contains both the Default and Optional key values.
Figure 2 shows an example of excluding one/more tests for a component using cURL.
Figure 2 : Excluding one/more tests for a Component using cURL