| Modifier and Type | Method and Description |
|---|---|
protected String |
APIMIntegrationBaseTest.createSession(org.wso2.carbon.automation.engine.context.AutomationContext automationContext) |
protected void |
APIMIntegrationBaseTest.init()
This method will initialize test environment
based on user mode and configuration given at automation.xml
|
protected void |
APIMIntegrationBaseTest.init(String domainKey,
String userKey)
init the object with tenant domain, user key and instance of store,publisher and gateway
create context objects and construct URL bean
|
protected void |
APIMIntegrationBaseTest.init(org.wso2.carbon.automation.engine.context.TestUserMode userMode)
init the object with user mode , create context objects and get session cookies
|
protected void |
APIMIntegrationBaseTest.loadSynapseConfigurationFromClasspath(String relativeFilePath,
org.wso2.carbon.automation.engine.context.AutomationContext automationContext,
String sessionCookie) |
protected void |
APIMIntegrationBaseTest.updateSynapseConfiguration(org.apache.axiom.om.OMElement synapseConfig,
org.wso2.carbon.automation.engine.context.AutomationContext automationContext,
String sessionCookie)
update synapse config to server
|
protected void |
APIMIntegrationBaseTest.waitForAPIDeploymentSync(String apiProvider,
String apiName,
String apiVersion,
String expectedResponse)
This method can be used to wait for API deployment sync in distributed and clustered environment
APIStatusMonitor will be invoked to get API related data and then verify that data matches with
expected response provided.
|
protected void |
APIMIntegrationBaseTest.waitForAPIUnDeploymentSync(String apiProvider,
String apiName,
String apiVersion,
String expectedResponse)
This method can be used to wait for API Un-deployment sync in distributed and clustered environment
APIStatusMonitor will be invoked to get API related data and then verify that data matches with
expected response provided.
|
| Constructor and Description |
|---|
APICreationRequestBean(String apiName,
String context,
String version,
String provider)
constructor of the APICreationRequestBean class with default endpoint
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
ArrayList<String> productionEndpoints)
constructor of the APICreationRequestBean class
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
List<String> productionEndpoints,
List<String> sandboxEndpoints)
constructor of the APICreationRequestBean class
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
String apiTier,
String resourceTier,
URL endpointUrl)
constructor of the APICreationRequestBean class only with production url
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
URL endpointUrl)
constructor of the APICreationRequestBean class only with production url
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
URL endpointUrl,
List<APIResourceBean> resourceBeans)
constructor of the APICreationRequestBean class only with production url
|
APICreationRequestBean(String apiName,
String context,
String version,
String provider,
URL endpointUrl,
URL sandboxUrl)
constructor of the APICreationRequestBean class with production url & sand box url
|
APIRequest(String apiName,
String context,
URI productionEndpointUri,
URI sandboxEndpointUri) |
APIRequest(String apiName,
String context,
URL endpointUrl)
This method will create API request.
|
APIRequest(String apiName,
String context,
URL productionEndpointUrl,
URL sandboxEndpointUrl)
This method will create API request.
|
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.addAPI(APICreationRequestBean creationRequestBean)
Add a API using APICreationRequestBean object
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.addAPI(APIRequest apiRequest)
Facilitate add API into publisher node
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.addApplication(String application,
String tier,
String callbackUrl,
String description)
Add application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.addApplicationWithCustomAttributes(String application,
String tier,
String callbackUrl,
String description,
String applicationAttributes)
Add application with custom attributes
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.addComment(String apiName,
String version,
String provider,
String comment)
Add comment to given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.addDocument(AddDocumentRequestBean addDocRequestBean)
Adding a Document to a API using AddDocumentRequestBean
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.addDocument(String apiName,
String version,
String provider,
String docName,
String docType,
String sourceType,
String docUrl,
String summary,
String docLocation)
Adding a Document to a API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.addDocument(String apiName,
String version,
String provider,
String docName,
String docType,
String sourceType,
String docUrl,
String summary,
String docLocation,
String mimeType,
String newType)
Adding a Document to a API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.addRatingToAPI(String apiName,
String version,
String provider,
String rating)
Add rating into api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
AdminDashboardRestClient.addThrottlingPolicy(String throttlingPolicyJSON) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
AdminDashboardRestClient.addTier(APIThrottlingTierRequest throttlingTierRequest)
Add/Edit Tier
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.changeAPILifeCycleStatus(APILifeCycleStateRequest updateRequest)
change status of a created API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.changeAPILifeCycleStatusToPublish(org.wso2.carbon.apimgt.api.model.APIIdentifier apiIdentifier,
boolean isRequireReSubscription)
Change the API Lifecycle status to Publish with the option of Re-subscription is required or not
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.changePassword(String username,
String currentPassword,
String newPassword)
Change password of the user
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.checkValidAPIName(String apiName)
Validate API Name when creating a new API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.checkValidEndpoint(String type,
String endpointUrl,
String providerName,
String apiName,
String apiVersion)
Check whether the Endpoint is valid
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.copyAPI(String provider,
String apiName,
String oldVersion,
String newVersion,
String isDefaultVersion)
copy API from existing API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.deleteAPI(String apiName,
String version,
String provider)
delete API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
AdminDashboardRestClient.deleteTier(String tierName)
Delete tier
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.designAPI(APIDesignBean designBean)
Design an API using APIDesignBean object
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.generateApplicationKey(APPKeyRequestGenerator generateAppKeyRequest)
Generate token
|
org.apache.http.HttpResponse |
APIStoreRestClient.generateSDKUpdated(String sdkLanguage,
String apiName,
String apiVersion,
String apiProvider)
Generate SDK for a given programming language
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.generateUserAccessKey(String consumeKey,
String consumerSecret,
String messageBody,
URL tokenEndpointURL)
Generate user access key
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAllAPIs()
Retrieve the All APIs available for the user in Publisher.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllApplications()
Get all the applications
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllDocumentationOfAPI(String apiName,
String version,
String provider)
Method to retrieve all documents of given api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllPaginatedPublishedAPIs(String tenant,
int start,
int end)
Gell all paginated published apis for a given tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllPaginatedPublishedAPIs(String tenant,
String start,
String end)
Get all paginated published API for a given tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllPublishedAPIs()
Get all published apis
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllPublishedAPIs(String tenant)
Get all published APIs for tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllSubscriptions()
Get all subscriptions
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllSubscriptionsOfApplication()
Get all subscriptions of Application.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllSubscriptionsOfApplication(String selectedApplication)
Get all subscriptions of Application.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAllTags()
Get all API tags
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
AdminDashboardRestClient.getAllTiers()
Get all tiers
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAPI()
Get api which are published
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAPI(String apiName,
String provider)
Method to get API information
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getApi(String apiName,
String provider,
String version)
Get the API information for the given API Name,API Version and API Provider
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAPI(String apiName,
String provider,
String version)
Get the API information for the given API Name, API Version and API Provider
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getApiEndpointUrls(String apiName,
String version,
String provider)
Method to retrieve all endpoint urls
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAPIImplementPage(String apiName,
String provider,
String version)
Retrieve implementation page for the requested API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAPIInformationPage(String apiName,
String provider,
String version)
Retrieve the API Information Page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAPIListFromStoreAsAnonymousUser(String tenantDomain) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getAPIManagePage(String apiName,
String provider,
String version)
Retrieve the API Manage Page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getAPIPageFilteredWithTags(String apiTag)
Get the web page with filtered API when click the API Tag link
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getApplicationPage()
Get application page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getApplications()
Get application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getPrototypedAPI(String tenant)
Get Prototyped APIs in Store
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getPublishedAPIsByApplication(String applicationName)
Get application details by given name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getRecentlyAddedAPIs(String tenant,
String limit)
Get recently added APIs by tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getSubscribedAPIs(String applicationName)
Get subscribed Apis by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getSubscribedAPIs(String applicationName,
String domain)
Get subscribed APIs for the specific Application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.getSwaggerDocument(String userName,
String apiName,
String apiVersion,
String executionMode)
This method will return swagger document of given api name and version
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getTierPermissionsPage()
Retrieve the Tier Permission Page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.getTiers() |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.implement(APIImplementationBean implementationBean) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.isCommentActivated()
Check whether commenting is enabled
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.isRatingActivated()
Check if API rating activated
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.login(String userName,
String password)
login to publisher app
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
AdminDashboardRestClient.login(String userName,
String password)
Login to API Admin Portal
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.login(String userName,
String password)
Login to API store
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.logout()
log out from publisher
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.logout()
API Store logout
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.regenerateConsumerSecret(String clientId)
Regenerate consumer secret.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.removeAPISubscription(String API,
String version,
String provider,
String applicationId)
Unsubscribe from API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.removeAPISubscriptionByApplicationName(String API,
String version,
String provider,
String applicationName)
Unsubscribe from API by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.removeAPISubscriptionByName(String API,
String version,
String provider,
String appName)
Unsubscribe from API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.removeApplication(String application)
Delete application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.removeDocumentation(String apiName,
String version,
String provider,
String docName,
String docType)
Remove document
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.removeRatingFromAPI(String apiName,
String version,
String provider)
Remove rating of given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.revokeAccessToken(String accessToken,
String consumerKey,
String authUser)
revoke access token
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.signUp(String userName,
String password,
String firstName,
String lastName,
String email)
API Store sign up
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.subscribe(SubscriptionRequest subscriptionRequest)
Subscribe to API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.subscribeToAPI(SubscriptionRequest subscriptionRequest)
Subscribe and API.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.updateAPI(APICreationRequestBean creationRequestBean)
Update a API using APICreationRequestBean object
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.updateApplication(String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
Update given application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIStoreRestClient.updateClientApplication(String application,
String keyType,
String authorizedDomains,
String retryAfterFailure,
String jsonParams,
String callbackUrl)
Update given Auth application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.updatePermissions(String tierName,
String permissionType,
String roles)
update permissions to API access
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.updateResourceOfAPI(String provider,
String apiName,
String version,
String swaggerRes)
Update resources of API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
APIPublisherRestClient.validateRoles(String role) |
| Modifier and Type | Method and Description |
|---|---|
static APIBean |
APIMTestCaseUtils.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> |
APIMTestCaseUtils.getAPIIdentifierListFromHttpResponse(org.wso2.carbon.automation.test.utils.http.client.HttpResponse httpResponse)
Get the API information from the response object as Lost of APIIdentifier
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
WebAppDeploymentUtil.isWebApplicationDeployed(String backEndUrl,
String sessionCookie,
String webAppFileName)
Check whether the given web app is deployed correctly.
|
Copyright © 2018 WSO2 Inc. All rights reserved.