public class APIStoreRestClient extends Object
| Constructor and Description |
|---|
APIStoreRestClient(String backendURL) |
| Modifier and Type | Method and Description |
|---|---|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addApplication(String application,
String tier,
String callbackUrl,
String description)
Add application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
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 |
addApplicationWithGroup(String application,
String tier,
String callbackUrl,
String description,
String groupId)
Add application with Group
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addApplicationWithTokenType(String application,
String tier,
String callbackUrl,
String description,
String tokenType)
Add application with token type
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addComment(String apiName,
String version,
String provider,
String comment)
Add comment to given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
addRatingToAPI(String apiName,
String version,
String provider,
String rating)
Add rating into api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
changePassword(String username,
String currentPassword,
String newPassword)
Change password of the user
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
cleanUpApplicationRegistrationByApplicationId(int applicationId,
String applicationName)
Clean up application registration by ID
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
generateApplicationKey(APPKeyRequestGenerator generateAppKeyRequest)
Generate token
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
generateApplicationKeyById(APPKeyRequestGenerator generateAppKeyRequest)
Generate token
|
org.apache.http.HttpResponse |
generateSDKUpdated(String sdkLanguage,
String apiName,
String apiVersion,
String apiProvider,
String tenant)
Generate SDK for a given programming language
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
generateUserAccessKey(String consumeKey,
String consumerSecret,
String messageBody,
URL tokenEndpointURL)
Generate user access key
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllApplications()
Get all the applications
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllDocumentationOfAPI(String apiName,
String version,
String provider)
Method to retrieve all documents of given api
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
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 |
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 |
getAllPublishedAPIs()
Get all published apis
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllPublishedAPIs(String tenant)
Get all published APIs for tenant
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllSubscriptions()
Get all subscriptions
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllSubscriptionsOfApplication()
Get all subscriptions of Application.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllSubscriptionsOfApplication(String selectedApplication)
Get all subscriptions of Application.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAllTags()
Get all API tags
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAPI()
Get api which are published
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApiEndpointUrls(String apiName,
String version,
String provider)
Method to retrieve all endpoint urls
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getAPIListFromStoreAsAnonymousUser(String tenantDomain) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
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 |
getApplicationById(int applicationId)
Get application by ID
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApplicationPage()
Get application page
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getApplications()
Get application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getPrototypedAPI(String tenant)
Get Prototyped APIs in Store
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getPublishedAPIsByApplication(String applicationName)
Get application details by given name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getPublishedAPIsByApplicationId(String applicationName,
int applicationId)
Get application details by given name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getRecentlyAddedAPIs(String tenant,
String limit)
Get recently added APIs by tenant
|
String |
getSession()
Get the current session cookies
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getSubscribedAPIs(String applicationName)
Get subscribed Apis by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
getSubscribedAPIs(String applicationName,
String domain)
Get subscribed APIs for the specific Application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
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 |
isCommentActivated()
Check whether commenting is enabled
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
isRatingActivated()
Check if API rating activated
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
login(String userName,
String password)
Login to API store
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
logout()
API Store logout
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
regenerateConsumerSecret(String clientId)
Regenerate consumer secret.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscription(String API,
String version,
String provider,
String applicationId)
Unsubscribe from API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscriptionByApplicationName(String API,
String version,
String provider,
String applicationName)
Unsubscribe from API by application name
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeAPISubscriptionByName(String API,
String version,
String provider,
String appName)
Unsubscribe from API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeApplication(String application)
Delete application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeApplicationById(int applicationId)
Delete application by Id
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
removeRatingFromAPI(String apiName,
String version,
String provider)
Remove rating of given API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
searchPaginateAPIs(String tenant,
String start,
String end,
String searchTerm) |
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUp(String userName,
String password,
String firstName,
String lastName,
String email)
API Store sign up
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUpforTenant(String userName,
String password,
String claims)
API Store sign up
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
signUpWithOrganization(String userName,
String password,
String firstName,
String lastName,
String email,
String organization)
API Store sign up with organization
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
subscribe(SubscriptionRequest subscriptionRequest)
Subscribe to API
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
subscribe(SubscriptionRequest subscriptionRequest,
String action)
Subscribe to API using a particular action
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
subscribeToAPI(SubscriptionRequest subscriptionRequest)
Subscribe and API.
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplication(String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
Update given application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
updateApplicationById(int applicationId,
String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
Update given application
|
org.wso2.carbon.automation.test.utils.http.client.HttpResponse |
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 |
updateClientApplicationById(int applicationId,
String application,
String keyType,
String authorizedDomains,
String retryAfterFailure,
String jsonParams,
String callbackUrl)
Update given Auth application
|
void |
waitForSwaggerDocument(String userName,
String apiName,
String apiVersion,
String expectedResponse,
String executionMode)
Wait for swagger document until its updated.
|
public APIStoreRestClient(String backendURL)
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse login(String userName, String password) throws APIManagerIntegrationTestException
userName - - username to loginpassword - - password to loginAPIManagerIntegrationTestException - - Throws if login to store failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribe(SubscriptionRequest subscriptionRequest) throws APIManagerIntegrationTestException
subscriptionRequest - - subscribe api requestAPIManagerIntegrationTestException - - throws if subscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribe(SubscriptionRequest subscriptionRequest, String action) throws APIManagerIntegrationTestException
subscriptionRequest - - subscribe api requestAPIManagerIntegrationTestException - - throws if subscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse generateApplicationKey(APPKeyRequestGenerator generateAppKeyRequest) throws APIManagerIntegrationTestException
generateAppKeyRequest - - generate api key requestAPIManagerIntegrationTestException - - throws if application key generation fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse generateApplicationKeyById(APPKeyRequestGenerator generateAppKeyRequest) throws APIManagerIntegrationTestException
generateAppKeyRequest - - generate api key requestAPIManagerIntegrationTestException - - throws if application key generation fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAPI()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if API information retrieval fails.public String getSession()
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse generateUserAccessKey(String consumeKey, String consumerSecret, String messageBody, URL tokenEndpointURL) throws APIManagerIntegrationTestException
consumeKey - - consumer key of userconsumerSecret - - consumer secret keymessageBody - - message bodytokenEndpointURL - - token endpoint urlAPIManagerIntegrationTestException - - throws if generating APIM access token failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPublishedAPIs()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if getting publish APIs failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllApplications()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get all application fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApplicationById(int applicationId)
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get application fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getPublishedAPIsByApplication(String applicationName) throws APIManagerIntegrationTestException
applicationName - - application nameAPIManagerIntegrationTestException - - throws if get application by name failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getPublishedAPIsByApplicationId(String applicationName, int applicationId) throws APIManagerIntegrationTestException
applicationName - - application nameAPIManagerIntegrationTestException - - throws if get application by name failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addRatingToAPI(String apiName, String version, String provider, String rating) throws APIManagerIntegrationTestException
apiName - - name of apiversion - - api versionprovider - - provider of apirating - - api ratingAPIManagerIntegrationTestException - - throws if rating of api failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeRatingFromAPI(String apiName, String version, String provider) throws APIManagerIntegrationTestException
apiName - - name of apiversion - - api versionprovider - - provider of apiAPIManagerIntegrationTestException - - Throws if remove API rating failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse isRatingActivated()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - Throws if rating status cannot be retrievedpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllDocumentationOfAPI(String apiName, String version, String provider) throws APIManagerIntegrationTestException
apiName - - name of apiversion - - api versionprovider - - provider of apiAPIManagerIntegrationTestException - - throws if retrieval of API documentation failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApiEndpointUrls(String apiName, String version, String provider) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPaginatedPublishedAPIs(String tenant, String start, String end) throws APIManagerIntegrationTestException
tenant - - tenant namestart - - starting indexend - - closing indexAPIManagerIntegrationTestException - - throws if paginated apis cannot be retrieved.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse cleanUpApplicationRegistrationByApplicationId(int applicationId,
String applicationName)
throws APIManagerIntegrationTestException
applicationId - - application IDapplicationName - - application nameAPIManagerIntegrationTestException - - throws if paginated apis cannot be retrieved.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPaginatedPublishedAPIs(String tenant, int start, int end) throws APIManagerIntegrationTestException
tenant - - tenant namestart - - starting indexend - - ending indexAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllPublishedAPIs(String tenant) throws APIManagerIntegrationTestException
tenant - - tenant nameAPIManagerIntegrationTestException - - throws if published API retrieval fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplication(String application, String tier, String callbackUrl, String description) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appAPIManagerIntegrationTestException - - if fails to add applicationpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationWithGroup(String application, String tier, String callbackUrl, String description, String groupId) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appgroupId - - group to shareAPIManagerIntegrationTestException - - if fails to add applicationpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationWithTokenType(String application, String tier, String callbackUrl, String description, String tokenType) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of apptokenType - - token type of app (JWT ot DEFAULT)APIManagerIntegrationTestException - - if fails to add applicationpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApplications()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if applications cannot be retrieved.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeApplication(String application) throws APIManagerIntegrationTestException
application - - application nameAPIManagerIntegrationTestException - - throws if remove application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeApplicationById(int applicationId)
throws APIManagerIntegrationTestException
applicationId - - application IdAPIManagerIntegrationTestException - - throws if remove application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplication(String applicationOld, String applicationNew, String callbackUrlNew, String descriptionNew, String tier) throws APIManagerIntegrationTestException
applicationOld - - application name oldapplicationNew - - new application namecallbackUrlNew - - call back urldescriptionNew - - updated descriptiontier - - access tierAPIManagerIntegrationTestException - - throws if update application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplicationById(int applicationId,
String applicationOld,
String applicationNew,
String callbackUrlNew,
String descriptionNew,
String tier)
throws APIManagerIntegrationTestException
applicationOld - - application name oldapplicationNew - - new application namecallbackUrlNew - - call back urldescriptionNew - - updated descriptiontier - - access tierAPIManagerIntegrationTestException - - throws if update application failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateClientApplication(String application, String keyType, String authorizedDomains, String retryAfterFailure, String jsonParams, String callbackUrl) throws APIManagerIntegrationTestException
application - auth application namekeyType - type of the keyauthorizedDomains - authorized domainsretryAfterFailure - retry after failjsonParams - json parameters for grant typecallbackUrl - call back urlAPIManagerIntegrationTestException - APIManagerIntegrationTestException - throws if update application failpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateClientApplicationById(int applicationId,
String application,
String keyType,
String authorizedDomains,
String retryAfterFailure,
String jsonParams,
String callbackUrl)
throws APIManagerIntegrationTestException
application - auth application namekeyType - type of the keyauthorizedDomains - authorized domainsretryAfterFailure - retry after failjsonParams - json parameters for grant typecallbackUrl - call back urlAPIManagerIntegrationTestException - APIManagerIntegrationTestException - throws if update application failpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse regenerateConsumerSecret(String clientId) throws APIManagerIntegrationTestException
clientId - Consumer Key of an application for which consumer secret need to be regenerate.APIManagerIntegrationTestException - Throws if regeneration of consumer secret fail.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllSubscriptions()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get all subscriptions failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllSubscriptionsOfApplication()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get all subscriptions failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllSubscriptionsOfApplication(String selectedApplication) throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get all subscriptions failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSubscribedAPIs(String applicationName) throws APIManagerIntegrationTestException
applicationName - - Application NameAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSubscribedAPIs(String applicationName, String domain) throws APIManagerIntegrationTestException
applicationName - - Name of the Application of API in storeAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscription(String API, String version, String provider, String applicationId) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameapplicationId - - application idAPIManagerIntegrationTestException - - Throws if unsubscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscriptionByApplicationName(String API, String version, String provider, String applicationName) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameapplicationName - - application NameAPIManagerIntegrationTestException - - Throws if unsubscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse removeAPISubscriptionByName(String API, String version, String provider, String appName) throws APIManagerIntegrationTestException
API - - name of apiversion - - api versionprovider - - provider nameappName - - application nameAPIManagerIntegrationTestException - - Throws if unsubscription failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllTags()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - throws if get all tags failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addComment(String apiName, String version, String provider, String comment) throws APIManagerIntegrationTestException
apiName - - name of the apiversion - - api versionprovider - - provider namecomment - - comment to addAPIManagerIntegrationTestException - - throws if add comment failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse isCommentActivated()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - Throws if retrieving comment activation status fails.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getRecentlyAddedAPIs(String tenant, String limit) throws APIManagerIntegrationTestException
tenant - - tenant namelimit - - limit of result setAPIManagerIntegrationTestException - - throws ifpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAPIPageFilteredWithTags(String apiTag) throws APIManagerIntegrationTestException
apiTag - - API tag the need ti filter the api.APIManagerIntegrationTestException - - Exception throws when check the Authentication and
HTTPSClientUtils.sendGetRequest() method callpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse subscribeToAPI(SubscriptionRequest subscriptionRequest) throws APIManagerIntegrationTestException
subscriptionRequest - -SubscriptionRequest request instance with API subscription information.APIManagerIntegrationTestException - - Exception throws when check the Authentication and
HTTPSClientUtils.doPost() method call.public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAPIListFromStoreAsAnonymousUser(String tenantDomain) throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse logout()
throws APIManagerIntegrationTestException
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUp(String userName, String password, String firstName, String lastName, String email) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordfirstName - - user first namelastName - - user's last nameemail - - user's emailAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUpforTenant(String userName, String password, String claims) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordclaims - - tenants claimsAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse signUpWithOrganization(String userName, String password, String firstName, String lastName, String email, String organization) throws APIManagerIntegrationTestException
userName - - store user namepassword - -store passwordfirstName - - user first namelastName - - user's last nameemail - - user's emailorganization - - user's organizationAPIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getPrototypedAPI(String tenant) throws APIManagerIntegrationTestException
APIManagerIntegrationTestExceptionpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse searchPaginateAPIs(String tenant, String start, String end, String searchTerm) throws Exception
Exceptionpublic void waitForSwaggerDocument(String userName, String apiName, String apiVersion, String expectedResponse, String executionMode) throws IOException, XPathExpressionException
userName - - Name of the api providerapiName - - API NameapiVersion - - API VersionexpectedResponse - - Expected response of the APIexecutionMode - - Mode of the test execution (Standalone or Platform)IOException - - Throws if Swagger document cannot be foundXPathExpressionException - - Throws if Swagger document cannot be foundpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getSwaggerDocument(String userName, String apiName, String apiVersion, String executionMode) throws APIManagerIntegrationTestException
userName - - User who request the swagger documentapiName - - Name of the APIapiVersion - - Version of the APIexecutionMode - - Mode of the test execution (Standalone or Platform)APIManagerIntegrationTestException - - Throws if swagger document GET request failspublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse getApplicationPage()
throws APIManagerIntegrationTestException
APIManagerIntegrationTestException - - if fails to get application pagepublic org.apache.http.HttpResponse generateSDKUpdated(String sdkLanguage, String apiName, String apiVersion, String apiProvider, String tenant) throws APIManagerIntegrationTestException
sdkLanguage - programming language for the SDKapiName - name of the APIapiVersion - version of the APIapiProvider - provider of the APIAPIManagerIntegrationTestException - if failed to generate the SDKpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse changePassword(String username, String currentPassword, String newPassword) throws APIManagerIntegrationTestException
username - username of the usercurrentPassword - current password of the usernewPassword - new password of the userAPIManagerIntegrationTestException - if failed to change passwordpublic org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationWithCustomAttributes(String application, String tier, String callbackUrl, String description, String applicationAttributes) throws APIManagerIntegrationTestException
application - - application nametier - - throttling tiercallbackUrl - - callback urldescription - - description of appapplicationAttributes - - Json string of custom attributes defined by userAPIManagerIntegrationTestException - - if fails to add applicationCopyright © 2020 WSO2 Inc. All rights reserved.