public class APIMTestCaseUtils extends Object
| Constructor and Description |
|---|
APIMTestCaseUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAPI(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement api) |
static void |
addEndpoint(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement endpointConfig) |
static void |
addEndpointTemplate(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement endpointTemplate) |
static void |
addLocalEntry(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement localEntryConfig) |
static void |
addMessageProcessor(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement messageProcessor) |
static void |
addMessageStore(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement messageStore) |
static void |
addPriorityExecutor(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement priorityExecutor) |
static void |
addProxyService(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement proxyConfig) |
static void |
addScheduleTask(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement taskDescription) |
static void |
addSequence(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement sequenceConfig) |
static void |
addSequenceTemplate(String backEndUrl,
String sessionCookie,
org.apache.axiom.om.OMElement sequenceTemplate) |
static byte[] |
decode(String stringToBeDecodedArg)
This method is used to base64Url-decode a base64Url-encoded string
|
static void |
deleteApi(String backEndUrl,
String sessionCookie,
String apiName) |
static void |
deleteEndpoint(String backEndUrl,
String sessionCookie,
String endpointName) |
static void |
deleteEndpointTemplate(String backEndUrl,
String sessionCookie,
String endpointTemplate) |
static void |
deleteLocalEntry(String backEndUrl,
String sessionCookie,
String localEntryName) |
static void |
deleteMessageProcessor(String backEndUrl,
String sessionCookie,
String messageProcessor) |
static void |
deleteMessageStore(String backEndUrl,
String sessionCookie,
String messageStore) |
static void |
deletePriorityExecutor(String backEndUrl,
String sessionCookie,
String executorName) |
static void |
deleteProxyService(String backEndUrl,
String sessionCookie,
String proxyServiceName) |
static void |
deleteScheduleTask(String backEndUrl,
String sessionCookie,
String taskName,
String group) |
static void |
deleteSequence(String backEndUrl,
String sessionCookie,
String sequenceName) |
static void |
deleteSequenceTemplate(String backEndUrl,
String sessionCookie,
String sequenceTemplateName) |
static String |
encodeCredentials(String user,
char[] pass)
get the base64 encoded username and password
|
static APIBean |
getAPIBeanFromHttpResponse(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse)
create API bean object from response
|
static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> |
getAPIIdentifierListFromHttpResponse(APIListDTO apiListDTO) |
static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> |
getAPIIdentifierListFromHttpResponse(APIListDTO apiListDTO) |
static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> |
getAPIIdentifierListFromHttpResponse(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse)
Get the API information from the response object as Lost of APIIdentifier
|
static String |
getDecodedJWT(String jwt) |
static String |
getDecodedJWTHeader(String jwt) |
static byte[] |
getDecodedJWTSignature(String jwt) |
static String |
getDecodedURLSafeJWT(String jwt) |
static String |
getDecodedURLSafeJWTHeader(String jwt) |
static byte[] |
getDecodedURLSafeJWTSignature(String jwt) |
static String |
getJWTAssertion(String jwt) |
static String |
getPayloadForPasswordGrant(String username,
String password)
Get the json payload required for getting an access token using the password grant-type
|
static boolean |
isAPIAvailable(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
APIListDTO apiListDTO)
Check the given API is available in the APIIdentifier List.
|
static boolean |
isAPIAvailable(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifierToCheck,
List<org.wso2.carbon.apimgt.api.model.APIIdentifier> apiIdentifierList)
Check the given API is available in the APIIdentifier List.
|
static boolean |
isAPIAvailableInStore(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
APIListDTO apiListDTO)
Check the given API is available in the APIIdentifier List.
|
static boolean |
isApiDeployed(String backEndUrl,
String sessionCookie,
String apiName) |
static boolean |
isApiExist(String backEndUrl,
String sessionCookie,
String apiName) |
static boolean |
isApiUnDeployed(String backEndUrl,
String sessionCookie,
String apiName) |
static boolean |
isEndpointDeployed(String backEndUrl,
String sessionCookie,
String endpointName) |
static boolean |
isEndpointExist(String backEndUrl,
String sessionCookie,
String endpointName) |
static boolean |
isEndpointTemplateDeployed(String backEndUrl,
String sessionCookie,
String endpointTemplateName) |
static boolean |
isEndpointTemplateExist(String backEndUrl,
String sessionCookie,
String endpointTemplate) |
static boolean |
isEndpointTemplateUnDeployed(String backEndUrl,
String sessionCookie,
String endpointTemplateName) |
static boolean |
isEndpointUnDeployed(String backEndUrl,
String sessionCookie,
String endpointName) |
static boolean |
isJwtSignatureValid(String jwtAssertion,
byte[] jwtSignature,
String jsonHeader) |
static boolean |
isLocalEntryDeployed(String backEndUrl,
String sessionCookie,
String localEntryName) |
static boolean |
isLocalEntryExist(String backEndUrl,
String sessionCookie,
String localEntryName) |
static boolean |
isLocalEntryUnDeployed(String backEndUrl,
String sessionCookie,
String localEntryName) |
static boolean |
isMessageProcessorDeployed(String backEndUrl,
String sessionCookie,
String messageProcessorName) |
static boolean |
isMessageProcessorExist(String backEndUrl,
String sessionCookie,
String messageProcessor) |
static boolean |
isMessageProcessorUnDeployed(String backEndUrl,
String sessionCookie,
String messageProcessorName) |
static boolean |
isMessageStoreDeployed(String backEndUrl,
String sessionCookie,
String messageStoreName) |
static boolean |
isMessageStoreExist(String backEndUrl,
String sessionCookie,
String messageProcessor) |
static boolean |
isMessageStoreUnDeployed(String backEndUrl,
String sessionCookie,
String messageStoreName) |
static boolean |
isPriorityExecutorDeployed(String backEndUrl,
String sessionCookie,
String executorName) |
static boolean |
isPriorityExecutorExist(String backEndUrl,
String sessionCookie,
String priorityExecutorName) |
static boolean |
isPriorityExecutorUnDeployed(String backEndUrl,
String sessionCookie,
String executorName) |
static boolean |
isProxyDeployed(String backEndUrl,
String sessionCookie,
String proxyName) |
static boolean |
isProxyServiceExist(String backEndUrl,
String sessionCookie,
String proxyName) |
static boolean |
isProxyUnDeployed(String backEndUrl,
String sessionCookie,
String proxyName) |
static boolean |
isScheduleTaskDeployed(String backEndUrl,
String sessionCookie,
String taskName) |
static boolean |
isScheduleTaskExist(String backEndUrl,
String sessionCookie,
String taskName) |
static boolean |
isScheduleTaskUnDeployed(String backEndUrl,
String sessionCookie,
String taskName) |
static boolean |
isSequenceDeployed(String backEndUrl,
String sessionCookie,
String sequenceName) |
static boolean |
isSequenceExist(String backEndUrl,
String sessionCookie,
String sequenceName) |
static boolean |
isSequenceTemplateDeployed(String backEndUrl,
String sessionCookie,
String sequenceTemplateName) |
static boolean |
isSequenceTemplateExist(String backEndUrl,
String sessionCookie,
String sequenceTemplate) |
static boolean |
isSequenceTemplateUnDeployed(String backEndUrl,
String sessionCookie,
String sequenceTemplateName) |
static boolean |
isSequenceUnDeployed(String backEndUrl,
String sessionCookie,
String sequenceName) |
static org.apache.axiom.om.OMElement |
loadResource(String path)
Loads the specified resource from the classpath and returns its content as an OMElement.
|
static void |
sendGetRequest(String url,
String accessToken) |
static void |
updateSynapseConfiguration(org.apache.axiom.om.OMElement synapseConfig,
String backendURL,
String sessionCookie) |
static void |
verifySynapseDeployment(org.apache.axiom.om.OMElement synapseConfig,
String backendURL,
String sessionCookie) |
public static org.apache.axiom.om.OMElement loadResource(String path) throws FileNotFoundException, XMLStreamException
path - A relative path to the resource fileFileNotFoundExceptionXMLStreamExceptionpublic static void updateSynapseConfiguration(org.apache.axiom.om.OMElement synapseConfig,
String backendURL,
String sessionCookie)
throws Exception
synapseConfig - - Synapse configuration to be updatedbackendURL - - backend URL of the gateway serversessionCookie - - session cookie of user loginException - - Throws if update failspublic static void addProxyService(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement proxyConfig) throws Exception
Exceptionpublic static void addEndpoint(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement endpointConfig) throws Exception
Exceptionpublic static void addLocalEntry(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement localEntryConfig) throws Exception
Exceptionpublic static void addSequence(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement sequenceConfig) throws Exception
Exceptionpublic static void addMessageStore(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement messageStore) throws Exception
Exceptionpublic static void addMessageProcessor(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement messageProcessor) throws Exception
Exceptionpublic static void addSequenceTemplate(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement sequenceTemplate) throws RemoteException
RemoteExceptionpublic static void addEndpointTemplate(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement endpointTemplate) throws RemoteException
RemoteExceptionpublic static void addAPI(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement api) throws RemoteException, org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
RemoteExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static void addPriorityExecutor(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement priorityExecutor) throws RemoteException
RemoteExceptionpublic static void addScheduleTask(String backEndUrl, String sessionCookie, org.apache.axiom.om.OMElement taskDescription) throws org.wso2.carbon.task.stub.TaskManagementException, RemoteException
org.wso2.carbon.task.stub.TaskManagementExceptionRemoteExceptionpublic static boolean isProxyDeployed(String backEndUrl, String sessionCookie, String proxyName) throws RemoteException
RemoteExceptionpublic static boolean isEndpointDeployed(String backEndUrl, String sessionCookie, String endpointName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static boolean isMessageProcessorDeployed(String backEndUrl, String sessionCookie, String messageProcessorName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isSequenceDeployed(String backEndUrl, String sessionCookie, String sequenceName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isMessageStoreDeployed(String backEndUrl, String sessionCookie, String messageStoreName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isSequenceTemplateDeployed(String backEndUrl, String sessionCookie, String sequenceTemplateName) throws RemoteException
RemoteExceptionpublic static boolean isEndpointTemplateDeployed(String backEndUrl, String sessionCookie, String endpointTemplateName) throws RemoteException
RemoteExceptionpublic static boolean isApiDeployed(String backEndUrl, String sessionCookie, String apiName) throws RemoteException, org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
RemoteExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static boolean isPriorityExecutorDeployed(String backEndUrl, String sessionCookie, String executorName) throws RemoteException
RemoteExceptionpublic static boolean isScheduleTaskDeployed(String backEndUrl, String sessionCookie, String taskName) throws RemoteException, org.wso2.carbon.task.stub.TaskManagementException
RemoteExceptionorg.wso2.carbon.task.stub.TaskManagementExceptionpublic static boolean isProxyServiceExist(String backEndUrl, String sessionCookie, String proxyName) throws RemoteException
RemoteExceptionpublic static boolean isLocalEntryExist(String backEndUrl, String sessionCookie, String localEntryName) throws org.wso2.carbon.localentry.stub.types.LocalEntryAdminException, RemoteException
org.wso2.carbon.localentry.stub.types.LocalEntryAdminExceptionRemoteExceptionpublic static boolean isSequenceExist(String backEndUrl, String sessionCookie, String sequenceName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isEndpointExist(String backEndUrl, String sessionCookie, String endpointName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static boolean isMessageStoreExist(String backEndUrl, String sessionCookie, String messageProcessor) throws RemoteException
RemoteExceptionpublic static boolean isMessageProcessorExist(String backEndUrl, String sessionCookie, String messageProcessor) throws RemoteException
RemoteExceptionpublic static boolean isSequenceTemplateExist(String backEndUrl, String sessionCookie, String sequenceTemplate) throws RemoteException
RemoteExceptionpublic static boolean isEndpointTemplateExist(String backEndUrl, String sessionCookie, String endpointTemplate) throws RemoteException
RemoteExceptionpublic static boolean isApiExist(String backEndUrl, String sessionCookie, String apiName) throws RemoteException, org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
RemoteExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static boolean isPriorityExecutorExist(String backEndUrl, String sessionCookie, String priorityExecutorName) throws RemoteException
RemoteExceptionpublic static boolean isScheduleTaskExist(String backEndUrl, String sessionCookie, String taskName) throws RemoteException, org.wso2.carbon.task.stub.TaskManagementException
RemoteExceptionorg.wso2.carbon.task.stub.TaskManagementExceptionpublic static void deleteProxyService(String backEndUrl, String sessionCookie, String proxyServiceName) throws org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminException, RemoteException
org.wso2.carbon.proxyadmin.stub.ProxyServiceAdminProxyAdminExceptionRemoteExceptionpublic static void deleteLocalEntry(String backEndUrl, String sessionCookie, String localEntryName) throws org.wso2.carbon.localentry.stub.types.LocalEntryAdminException, RemoteException
org.wso2.carbon.localentry.stub.types.LocalEntryAdminExceptionRemoteExceptionpublic static void deleteEndpoint(String backEndUrl, String sessionCookie, String endpointName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static void deleteSequence(String backEndUrl, String sessionCookie, String sequenceName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static void deleteMessageStore(String backEndUrl, String sessionCookie, String messageStore) throws RemoteException, org.wso2.carbon.sequences.stub.types.SequenceEditorException
RemoteExceptionorg.wso2.carbon.sequences.stub.types.SequenceEditorExceptionpublic static void deleteMessageProcessor(String backEndUrl, String sessionCookie, String messageProcessor) throws RemoteException, org.wso2.carbon.sequences.stub.types.SequenceEditorException
RemoteExceptionorg.wso2.carbon.sequences.stub.types.SequenceEditorExceptionpublic static void deleteEndpointTemplate(String backEndUrl, String sessionCookie, String endpointTemplate) throws RemoteException, org.wso2.carbon.sequences.stub.types.SequenceEditorException, org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException
RemoteExceptionorg.wso2.carbon.sequences.stub.types.SequenceEditorExceptionorg.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionpublic static void deleteSequenceTemplate(String backEndUrl, String sessionCookie, String sequenceTemplateName) throws RemoteException, org.wso2.carbon.sequences.stub.types.SequenceEditorException, org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException
RemoteExceptionorg.wso2.carbon.sequences.stub.types.SequenceEditorExceptionorg.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionpublic static void deleteApi(String backEndUrl, String sessionCookie, String apiName) throws RemoteException, org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
RemoteExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static void deletePriorityExecutor(String backEndUrl, String sessionCookie, String executorName) throws RemoteException
RemoteExceptionpublic static void deleteScheduleTask(String backEndUrl, String sessionCookie, String taskName, String group) throws org.wso2.carbon.task.stub.TaskManagementException, RemoteException
org.wso2.carbon.task.stub.TaskManagementExceptionRemoteExceptionpublic static boolean isProxyUnDeployed(String backEndUrl, String sessionCookie, String proxyName) throws RemoteException
RemoteExceptionpublic static boolean isMessageStoreUnDeployed(String backEndUrl, String sessionCookie, String messageStoreName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isMessageProcessorUnDeployed(String backEndUrl, String sessionCookie, String messageProcessorName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isLocalEntryDeployed(String backEndUrl, String sessionCookie, String localEntryName) throws org.wso2.carbon.localentry.stub.types.LocalEntryAdminException, RemoteException
org.wso2.carbon.localentry.stub.types.LocalEntryAdminExceptionRemoteExceptionpublic static boolean isLocalEntryUnDeployed(String backEndUrl, String sessionCookie, String localEntryName) throws org.wso2.carbon.localentry.stub.types.LocalEntryAdminException, RemoteException
org.wso2.carbon.localentry.stub.types.LocalEntryAdminExceptionRemoteExceptionpublic static boolean isSequenceUnDeployed(String backEndUrl, String sessionCookie, String sequenceName) throws org.wso2.carbon.sequences.stub.types.SequenceEditorException, RemoteException
org.wso2.carbon.sequences.stub.types.SequenceEditorExceptionRemoteExceptionpublic static boolean isEndpointUnDeployed(String backEndUrl, String sessionCookie, String endpointName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static boolean isEndpointTemplateUnDeployed(String backEndUrl, String sessionCookie, String endpointTemplateName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static boolean isSequenceTemplateUnDeployed(String backEndUrl, String sessionCookie, String sequenceTemplateName) throws org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException, RemoteException
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionRemoteExceptionpublic static boolean isApiUnDeployed(String backEndUrl, String sessionCookie, String apiName) throws RemoteException, org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
RemoteExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static boolean isPriorityExecutorUnDeployed(String backEndUrl, String sessionCookie, String executorName) throws RemoteException
RemoteExceptionpublic static boolean isScheduleTaskUnDeployed(String backEndUrl, String sessionCookie, String taskName) throws RemoteException, org.wso2.carbon.task.stub.TaskManagementException
RemoteExceptionorg.wso2.carbon.task.stub.TaskManagementExceptionpublic static void verifySynapseDeployment(org.apache.axiom.om.OMElement synapseConfig,
String backendURL,
String sessionCookie)
throws org.wso2.carbon.localentry.stub.types.LocalEntryAdminException,
RemoteException,
org.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminException,
org.wso2.carbon.sequences.stub.types.SequenceEditorException,
org.wso2.carbon.rest.api.stub.RestApiAdminAPIException
org.wso2.carbon.localentry.stub.types.LocalEntryAdminExceptionRemoteExceptionorg.wso2.carbon.endpoint.stub.types.EndpointAdminEndpointAdminExceptionorg.wso2.carbon.sequences.stub.types.SequenceEditorExceptionorg.wso2.carbon.rest.api.stub.RestApiAdminAPIExceptionpublic static APIBean getAPIBeanFromHttpResponse(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse) throws APIManagerIntegrationTestException
httpResponse - - HTTP responseAPIManagerIntegrationTestExceptionpublic static void sendGetRequest(String url, String accessToken) throws XPathExpressionException, IOException
XPathExpressionExceptionIOExceptionpublic static String getDecodedJWT(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String getJWTAssertion(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static boolean isJwtSignatureValid(String jwtAssertion, byte[] jwtSignature, String jsonHeader) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String getDecodedJWTHeader(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static byte[] getDecodedJWTSignature(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static byte[] getDecodedURLSafeJWTSignature(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static byte[] decode(String stringToBeDecodedArg) throws UnsupportedEncodingException
stringToBeDecodedArg - - The base64Url encoded string to be decodedUnsupportedEncodingExceptionpublic static String getDecodedURLSafeJWT(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String getDecodedURLSafeJWTHeader(String jwt) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> getAPIIdentifierListFromHttpResponse(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse) throws APIManagerIntegrationTestException
httpResponse - Response that contains the API informationorg.json.JSONExceptionAPIManagerIntegrationTestExceptionpublic static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> getAPIIdentifierListFromHttpResponse(APIListDTO apiListDTO)
apiListDTO - APIManagerIntegrationTestExceptionpublic static List<org.wso2.carbon.apimgt.api.model.APIIdentifier> getAPIIdentifierListFromHttpResponse(APIListDTO apiListDTO)
apiListDTO - APIManagerIntegrationTestExceptionpublic static boolean isAPIAvailable(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifierToCheck,
List<org.wso2.carbon.apimgt.api.model.APIIdentifier> apiIdentifierList)
apiIdentifierToCheck - - API identifier to verifyapiIdentifierList - - API identifier listpublic static String getPayloadForPasswordGrant(String username, String password)
username - - The username of the user (required)password - - The password of the user (required)public static boolean isAPIAvailable(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
APIListDTO apiListDTO)
apiIdentifier - - API DTO to verifyapiListDTO - - API Info DTO listpublic static boolean isAPIAvailableInStore(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
APIListDTO apiListDTO)
apiIdentifier - - API DTO to verifyapiListDTO - - API Info DTO listCopyright © 2020 WSO2 Inc. All rights reserved.