public class AutomatedTests extends JsonRestService
HTTP_200_OK, HTTP_201_CREATED, HTTP_202_ACCEPTED, HTTP_400_BAD_REQUEST, HTTP_401_UNAUTHORIZED, HTTP_403_FORBIDDEN, HTTP_404_NOT_FOUND, HTTP_405_METHOD_NOT_ALLOWED, HTTP_409_CONFLICT, HTTP_500_INTERNAL_ERROR, HTTP_501_NOT_IMPLEMENTED
Constructor and Description |
---|
AutomatedTests() |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
get(java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> headers)
Retrieve an existing entity or relationship.
|
java.util.List<java.lang.String> |
getRoles(java.lang.String path,
java.lang.String method)
Default impl pays no attention to method (for compatibility).
|
TestCase |
getTestCase(java.lang.String[] segments) |
org.json.JSONObject |
post(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
For executing test case(s).
|
org.json.JSONObject |
put(java.lang.String path,
org.json.JSONObject content,
java.util.Map<java.lang.String,java.lang.String> headers)
Put test exec config.
|
delete, export, getDefaultResponse, getExporter, getJson, getText, invokeServiceProcess, isApi, launchProcess, notifyProcess, notifyProcess, patch, service, validateResponse
auditLog, authorize, authorizeExport, generateRequestId, getAction, getAuthUser, getEntity, getEntityDescription, getEntityId, getParameters, getQuery, getRequestUrl, getRequiredProperty, getRoles, getSegment, getSegments, getSource, getSub, getUserAction, logtag, masterRequestId
public java.util.List<java.lang.String> getRoles(java.lang.String path, java.lang.String method)
RestService
getRoles
in class RestService
public org.json.JSONObject get(java.lang.String path, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
JsonRestService
get
in class JsonRestService
ServiceException
org.json.JSONException
public org.json.JSONObject post(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
post
in class JsonRestService
ServiceException
org.json.JSONException
public TestCase getTestCase(java.lang.String[] segments) throws ServiceException
ServiceException
public org.json.JSONObject put(java.lang.String path, org.json.JSONObject content, java.util.Map<java.lang.String,java.lang.String> headers) throws ServiceException, org.json.JSONException
put
in class JsonRestService
ServiceException
org.json.JSONException
Copyright © 2019 CenturyLink, Inc.