Class APIManagerLifecycleBaseTest
java.lang.Object
org.wso2.am.integration.test.utils.base.APIMIntegrationBaseTest
org.wso2.am.integration.test.utils.base.APIManagerLifecycleBaseTest
Base test class for all API Manager lifecycle test cases. This class contents the all the
common variables and t methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final intprotected static final Stringprotected static final Stringprotected static final Stringprotected static final intprotected static final Stringprotected static final Stringprotected static final intprotected static final intprotected static final intprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.wso2.am.integration.test.utils.base.APIMIntegrationBaseTest
adminContext, adminURLHttp, adminURLHttps, adminUrls, apiAdmin, apimTestCaseUtils, apiPublisher, apiStore, applicationManagementClient, backEndServer, backEndServerUrl, carbonApplicationUploaderClient, executionMode, gatewayContextMgt, gatewayContextWrk, gatewayHTTPSURL, gatewayUrlsMgt, gatewayUrlsWrk, identityProviderMgtClient, identityProviderMgtServiceClient, inboundWebSocketPort, keyManagerContext, keyManagerHTTPSURL, keymanagerSessionCookie, keymanagerSuperTenantSessionCookie, keyMangerUrl, oAuthAdminServiceClient, portOffset, publisherContext, publisherURLHttp, publisherURLHttps, publisherUrls, remoteClaimMetaDataMgtAdminClient, remoteUserStoreManagerServiceClient, restAPIAdmin, restAPIGovernance, restAPIInternal, restAPIPublisher, restAPIServiceCatalog, restAPIStore, storeContext, storeURLHttp, storeURLHttps, storeUrls, superTenantKeyManagerContext, synapseConfiguration, tenantManagementServiceClient, user, userManagementClient, userMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyAndPublishCopiedAPI(String apiID, String newAPIVersion, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) Copy and publish the copied API.protected APIDTOcopyAPI(String apiID, String newAPIVersion, RestAPIPublisherImpl publisherRestClient) protected voidcopyAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, String newAPIVersion, APIPublisherRestClient publisherRestClient) Copy and API and create a new version.createAndPublishAPI(APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) voidcreateAndPublishAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, APIPublisherRestClient publisherRestClient, boolean isRequireReSubscription) Create and publish a API.createAndPublishAPIUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) Create and publish a API.protected voidcreateAndPublishAPIWithoutRequireReSubscription(APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient) Create and publish a API with re-subscription not required.protected StringcreateAndPublishAPIWithoutRequireReSubscriptionUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient) Create and publish a API with re-subscription not required.protected APIDTOcreatePublishAndSubscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient, RestAPIStoreImpl storeRestClient, String applicationID, String tier) protected voidcreatePublishAndSubscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, APIPublisherRestClient publisherRestClient, APIStoreRestClient storeRestClient, String applicationName) Create publish and subscribe a API.protected StringcreatePublishAndSubscribeToAPIUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient, RestAPIStoreImpl storeRestClient, String applicationId, String tier) Create publish and subscribe a API using REST API.protected voiddeleteAPI(String apiID, RestAPIPublisherImpl publisherRestClient) protected voiddeleteAPI(String apiID, org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, RestAPIPublisherImpl publisherRestClient) Delete a API from API Publisher.protected voiddeleteAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APIPublisherRestClient publisherRestClient) Delete a API from API Publisher.protected ApplicationKeyBeangenerateApplicationKeys(APIStoreRestClient storeRestClient, String applicationName) Generate the access tokenprotected StringgetAPIIdentifierString(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier) Return a String with combining the value of API Name,API Version and API Provider Name as key:value formatprotected StringgetAPIIdentifierStringFromAPIRequest(APIRequest apiRequest) Return a String with combining the value of API Name,API Version and API Provider Name as key:value formatprotected StringgetValueFromJSON(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse, String key) Retrieve the value from JSON object bu using the key.protected org.wso2.carbon.automation.test.utils.http.client.HttpResponsepublishAPI(String apiID, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) protected org.wso2.carbon.automation.test.utils.http.client.HttpResponsepublishAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APIPublisherRestClient publisherRestClient, boolean isRequireReSubscription) Publish a API.protected org.wso2.carbon.automation.test.utils.http.client.HttpResponsepublishAPIUsingRest(String apiId, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) Publish an API using REST.protected StringRead the file content and return the content as String.protected SubscriptionDTOsubscribeToAPI(String apiID, String applicationID, String tier, RestAPIStoreImpl storeRestClient) protected org.wso2.carbon.automation.test.utils.http.client.HttpResponsesubscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, String applicationName, APIStoreRestClient storeRestClient) Subscribe a APIprotected org.wso2.carbon.automation.test.utils.http.client.HttpResponsesubscribeToAPIUsingRest(String apiId, String applicationId, String tier, RestAPIStoreImpl storeRestClient) Subscribe a APIbooleanverifyAPIStatusChange(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse, APILifeCycleState oldStatus, APILifeCycleState newStatus) verify the API status change.Methods inherited from class org.wso2.am.integration.test.utils.base.APIMIntegrationBaseTest
cleanUp, createAPIProductRevisionAndDeployUsingRest, createAPIRevisionAndDeployToGatewayUsingRest, createAPIRevisionAndDeployUsingRest, createSession, getAMResourceLocation, getAPIInvocationURLHttp, getAPIInvocationURLHttp, getAPIInvocationURLHttps, getAPIInvocationURLHttps, getAPIProductInvocationURLHttps, getAvailablePort, getBackendEndServiceEndPointHttp, getBackendEndServiceEndPointHttps, getGatewayMgtBackendURLHttps, getGatewayMgtURLHttp, getGatewayMgtURLHttps, getGatewayURLHttp, getGatewayURLHttps, getGatewayURLNhttp, getGatewayURLNhttps, getKeyManagerURLHttp, getKeyManagerURLHttps, getPublisherURLHttp, getPublisherURLHttps, getRestAPIPublisherForUser, getRestAPIStoreForAnonymousUser, getRestAPIStoreForUser, getStoreURLHttp, getStoreURLHttps, getSuperTenantAPIInvocationURLHttp, getWaitTime, getWebSocketAPIInvocationURL, getWebSocketTenantAPIInvocationURL, init, init, init, loadSynapseConfigurationFromClasspath, pickHeader, undeployAndDeleteAPIProductRevisionsUsingRest, undeployAndDeleteAPIRevisionsUsingRest, updateSynapseConfiguration, verifyResponse, waitForAPIDeployment, waitForAPIDeploymentSync, waitForAPIUnDeploymentSync, waitForKeyManagerDeployment, waitForKeyManagerUnDeployment, waitUntilClockMinute
-
Field Details
-
CARBON_HOME
-
HTTP_RESPONSE_CODE_OK
protected static final int HTTP_RESPONSE_CODE_OK -
HTTP_RESPONSE_CODE_CREATED
protected static final int HTTP_RESPONSE_CODE_CREATED -
HTTP_RESPONSE_CODE_UNAUTHORIZED
protected static final int HTTP_RESPONSE_CODE_UNAUTHORIZED -
HTTP_RESPONSE_CODE_NOT_FOUND
protected static final int HTTP_RESPONSE_CODE_NOT_FOUND -
HTTP_RESPONSE_CODE_BAD_REQUEST
protected static final int HTTP_RESPONSE_CODE_BAD_REQUEST -
HTTP_RESPONSE_CODE_SERVICE_UNAVAILABLE
protected static final int HTTP_RESPONSE_CODE_SERVICE_UNAVAILABLE -
HTTP_RESPONSE_CODE_TOO_MANY_REQUESTS
protected static final int HTTP_RESPONSE_CODE_TOO_MANY_REQUESTS- See Also:
-
HTTP_RESPONSE_CODE_FORBIDDEN
protected static final int HTTP_RESPONSE_CODE_FORBIDDEN -
HTTP_RESPONSE_PRECONDITION_FAILED
protected static final int HTTP_RESPONSE_PRECONDITION_FAILED -
HTTP_RESPONSE_DATA_API_BLOCK
- See Also:
-
HTTP_RESPONSE_DATA_NOT_FOUND
- See Also:
-
HTTP_RESPONSE_DATA_API_FORBIDDEN
- See Also:
-
GOLD_INVOCATION_LIMIT_PER_MIN
protected static final int GOLD_INVOCATION_LIMIT_PER_MIN- See Also:
-
SILVER_INVOCATION_LIMIT_PER_MIN
protected static final int SILVER_INVOCATION_LIMIT_PER_MIN- See Also:
-
TIER_UNLIMITED
- See Also:
-
TIER_GOLD
- See Also:
-
TIER_SILVER
- See Also:
-
MESSAGE_THROTTLED_OUT
- See Also:
-
MESSAGE_THROTTLED_OUT_RESOURCE
- See Also:
-
THROTTLING_UNIT_TIME
protected static final int THROTTLING_UNIT_TIME- See Also:
-
THROTTLING_ADDITIONAL_WAIT_TIME
protected static final int THROTTLING_ADDITIONAL_WAIT_TIME- See Also:
-
API_NAME
- See Also:
-
API_CONTEXT
- See Also:
-
API_TAGS
- See Also:
-
API_VERSION_1_0_0
- See Also:
-
API_DESCRIPTION
- See Also:
-
APPLICATION_NAME
- See Also:
-
-
Constructor Details
-
APIManagerLifecycleBaseTest
public APIManagerLifecycleBaseTest()
-
-
Method Details
-
getAPIIdentifierString
protected String getAPIIdentifierString(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier) Return a String with combining the value of API Name,API Version and API Provider Name as key:value format- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name,API Version and API Provider Name to create the String- Returns:
- String - with API Name,API Version and API Provider Name as key:value format
-
getAPIIdentifierStringFromAPIRequest
Return a String with combining the value of API Name,API Version and API Provider Name as key:value format- Parameters:
apiRequest- - Instance of APIRequest object that include the API Name,API Version and API Provider Name to create the String- Returns:
- String - with API Name,API Version and API Provider Name as key:value format
-
subscribeToAPI
protected org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, String applicationName, APIStoreRestClient storeRestClient) throws APIManagerIntegrationTestException Subscribe a API- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API ProviderstoreRestClient- - Instance of APIPublisherRestClient- Returns:
- HttpResponse - Response of the API subscribe action
- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of subscribe() in APIStoreRestClient.java
-
subscribeToAPI
protected SubscriptionDTO subscribeToAPI(String apiID, String applicationID, String tier, RestAPIStoreImpl storeRestClient) throws ApiException, APIManagerIntegrationTestException -
subscribeToAPIUsingRest
protected org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribeToAPIUsingRest(String apiId, String applicationId, String tier, RestAPIStoreImpl storeRestClient) throws APIManagerIntegrationTestException Subscribe a API- Parameters:
apiId- - UUID of the APIapplicationId- - UUID of the applicationstoreRestClient- - Instance of APIPublisherRestClient- Returns:
- HttpResponse - Response of the API subscribe action
- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of subscribe() in APIStoreRestClient.java
-
generateApplicationKeys
protected ApplicationKeyBean generateApplicationKeys(APIStoreRestClient storeRestClient, String applicationName) throws APIManagerIntegrationTestException Generate the access token- Parameters:
storeRestClient- - Instance of storeRestClientapplicationName- - Application name- Returns:
- ApplicationKeyBean - ApplicationKeyBean that contains access token, consumer key and consumer secret
- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of generateApplicationKey() in APIStoreRestClient.java
-
deleteAPI
protected void deleteAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APIPublisherRestClient publisherRestClient) throws APIManagerIntegrationTestException Delete a API from API Publisher.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API Provider.publisherRestClient- - Instance of APIPublisherRestClient.- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of deleteApi() in APIPublisherRestClient.java.
-
deleteAPI
protected void deleteAPI(String apiID, RestAPIPublisherImpl publisherRestClient) throws ApiException - Parameters:
apiID-publisherRestClient-- Throws:
ApiException
-
getValueFromJSON
protected String getValueFromJSON(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse, String key) throws APIManagerIntegrationTestException Retrieve the value from JSON object bu using the key.- Parameters:
httpResponse- - Response that containing the JSON object in it response data.key- - key of the JSON value the need to retrieve.- Returns:
- String - The value of provided key as a String
- Throws:
APIManagerIntegrationTestException- - Exception throws when resolving the JSON object in the HTTP response
-
verifyAPIStatusChange
public boolean verifyAPIStatusChange(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse, APILifeCycleState oldStatus, APILifeCycleState newStatus) throws APIManagerIntegrationTestException verify the API status change. this method will check the latest lifecycle status change is correct according to the given old status and new status.- Parameters:
httpResponse- - Response returned in the the API lifecycle status change actionoldStatus- - Status of the API before the changenewStatus- - Status of the API after the change- Returns:
- boolean - true if the given status change is correct, if not false
- Throws:
APIManagerIntegrationTestException- - Exception throws when resolving the JSON object in the HTTP response
-
publishAPI
protected org.wso2.carbon.automation.test.utils.http.client.HttpResponse publishAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APIPublisherRestClient publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException Publish a API.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API ProviderpublisherRestClient- - Instance of APIPublisherRestClientisRequireReSubscription- - If publish with re-subscription required option true else false.- Returns:
- HttpResponse - Response of the API Publishing activity
- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of changeAPILifeCycleStatusToPublish() in APIPublisherRestClient.java.
-
publishAPI
protected org.wso2.carbon.automation.test.utils.http.client.HttpResponse publishAPI(String apiID, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException - Parameters:
apiID-publisherRestClient-isRequireReSubscription-- Returns:
- Throws:
APIManagerIntegrationTestException
-
publishAPIUsingRest
protected org.wso2.carbon.automation.test.utils.http.client.HttpResponse publishAPIUsingRest(String apiId, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException, ApiException Publish an API using REST.- Parameters:
apiId- - UUID of the API,publisherRestClient- - Instance of APIPublisherRestClientisRequireReSubscription- - If publish with re-subscription required option true else false.- Returns:
- HttpResponse - Response of the API Publishing activity
- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of changeAPILifeCycleStatusToPublish() in APIPublisherRestClient.java.ApiException
-
createAndPublishAPI
public void createAndPublishAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, APIPublisherRestClient publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException Create and publish a API.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API ProviderapiCreationRequestBean- - Instance of APICreationRequestBean with all needed API informationpublisherRestClient- - Instance of APIPublisherRestClientisRequireReSubscription- - If publish with re-subscription required option true else false.- Throws:
APIManagerIntegrationTestException- - Exception throws by API create and publish activities.
-
createAndPublishAPI
public APIDTO createAndPublishAPI(APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException, ApiException - Parameters:
apiCreationRequestBean-publisherRestClient-isRequireReSubscription-- Throws:
APIManagerIntegrationTestExceptionApiException
-
createAndPublishAPIUsingRest
public String createAndPublishAPIUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException, ApiException Create and publish a API.- Parameters:
apiRequest- - Instance of APIRequestpublisherRestClient- - Instance of RestAPIPublisherImplisRequireReSubscription- - If publish with re-subscription required option true else false.- Throws:
APIManagerIntegrationTestException- - Exception throws by API create and publish activities.ApiException
-
createAndPublishAPIWithoutRequireReSubscription
protected void createAndPublishAPIWithoutRequireReSubscription(APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient) throws APIManagerIntegrationTestException, ApiException Create and publish a API with re-subscription not required.- Parameters:
apiCreationRequestBean- - Instance of APICreationRequestBean with all needed API informationpublisherRestClient- - Instance of APIPublisherRestClient- Throws:
APIManagerIntegrationTestException- - Exception throws by API create and publish activities.ApiException
-
createAndPublishAPIWithoutRequireReSubscriptionUsingRest
protected String createAndPublishAPIWithoutRequireReSubscriptionUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient) throws APIManagerIntegrationTestException, ApiException Create and publish a API with re-subscription not required.- Parameters:
apiRequest- - Instance of APIRequestpublisherRestClient- - Instance of RestAPIPublisherImpl- Throws:
APIManagerIntegrationTestException- - Exception throws by API create and publish activities.ApiException
-
copyAPI
protected void copyAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, String newAPIVersion, APIPublisherRestClient publisherRestClient) throws APIManagerIntegrationTestException Copy and API and create a new version.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API ProvidernewAPIVersion- - New API version need to createpublisherRestClient- - Instance of APIPublisherRestClient- Throws:
APIManagerIntegrationTestException- - Exception throws by API copy activities.
-
copyAPI
protected APIDTO copyAPI(String apiID, String newAPIVersion, RestAPIPublisherImpl publisherRestClient) throws ApiException - Parameters:
apiID-newAPIVersion-publisherRestClient-- Throws:
APIManagerIntegrationTestExceptionApiException
-
copyAndPublishCopiedAPI
protected void copyAndPublishCopiedAPI(String apiID, String newAPIVersion, RestAPIPublisherImpl publisherRestClient, boolean isRequireReSubscription) throws APIManagerIntegrationTestException, ApiException Copy and publish the copied API.- Parameters:
newAPIVersion- - New API version need to createpublisherRestClient- - Instance of APIPublisherRestClientisRequireReSubscription- - If publish with re-subscription required option true else false.- Throws:
APIManagerIntegrationTestException- -Exception throws by copyAPI() and publishAPI() method callsApiException
-
createPublishAndSubscribeToAPI
protected void createPublishAndSubscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, APIPublisherRestClient publisherRestClient, APIStoreRestClient storeRestClient, String applicationName) throws APIManagerIntegrationTestException, XPathExpressionException Create publish and subscribe a API.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API ProviderapiCreationRequestBean- - Instance of APICreationRequestBean with all needed API informationpublisherRestClient- - Instance of APIPublisherRestClientstoreRestClient- - Instance of APIStoreRestClientapplicationName- - Name of the Application that the API need to subscribe.- Throws:
APIManagerIntegrationTestException- - Exception throws by API create publish and subscribe a API activities.XPathExpressionException
-
createPublishAndSubscribeToAPI
protected APIDTO createPublishAndSubscribeToAPI(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, APICreationRequestBean apiCreationRequestBean, RestAPIPublisherImpl publisherRestClient, RestAPIStoreImpl storeRestClient, String applicationID, String tier) throws APIManagerIntegrationTestException, ApiException, ApiException, XPathExpressionException - Parameters:
apiIdentifier-apiCreationRequestBean-publisherRestClient-storeRestClient-- Throws:
APIManagerIntegrationTestExceptionApiExceptionApiExceptionXPathExpressionException
-
createPublishAndSubscribeToAPIUsingRest
protected String createPublishAndSubscribeToAPIUsingRest(APIRequest apiRequest, RestAPIPublisherImpl publisherRestClient, RestAPIStoreImpl storeRestClient, String applicationId, String tier) throws APIManagerIntegrationTestException, ApiException, XPathExpressionException Create publish and subscribe a API using REST API.- Parameters:
apiRequest- - Instance of APIRequest with all needed API informationpublisherRestClient- - Instance of APIPublisherRestClientstoreRestClient- - Instance of APIStoreRestClientapplicationId- - UUID of the Application that the API need to subscribe.tier- - Tier that needs to be subscribed.- Throws:
APIManagerIntegrationTestException- - Exception throws by API create publish and subscribe a API activities.ApiExceptionXPathExpressionException
-
readFile
Read the file content and return the content as String.- Overrides:
readFilein classAPIMIntegrationBaseTest- Parameters:
fileLocation- - Location of the file.- Returns:
- String - content of the file.
- Throws:
APIManagerIntegrationTestException- - exception throws when reading the file.
-
deleteAPI
protected void deleteAPI(String apiID, org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier, RestAPIPublisherImpl publisherRestClient) throws APIManagerIntegrationTestException Delete a API from API Publisher.- Parameters:
apiIdentifier- - Instance of APIIdentifier object that include the API Name, API Version and API Provider.publisherRestClient- - Instance of RestAPIPublisherImpl.- Throws:
APIManagerIntegrationTestException- - Exception throws by the method call of deleteApi() in APIPublisherRestClient.java.
-