Class AdminDashboardRestClient
- java.lang.Object
-
- org.wso2.am.integration.test.utils.clients.AdminDashboardRestClient
-
public class AdminDashboardRestClient extends Object
-
-
Constructor Summary
Constructors Constructor Description AdminDashboardRestClient(String backendURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.wso2.carbon.automation.test.utils.http.client.HttpResponseaddApplicationPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit)org.wso2.carbon.automation.test.utils.http.client.HttpResponseaddSubscriptionPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit, boolean stopOnQuotaReach, int rateLimit, String rateLimitTimeUnit)org.wso2.carbon.automation.test.utils.http.client.HttpResponseaddThrottlingPolicy(String throttlingPolicyJSON)org.wso2.carbon.automation.test.utils.http.client.HttpResponseaddTier(APIThrottlingTierRequest throttlingTierRequest)Add/Edit Tierorg.wso2.carbon.automation.test.utils.http.client.HttpResponsedeleteAPIPolicy(String name)org.wso2.carbon.automation.test.utils.http.client.HttpResponsedeleteApplicationPolicy(String name)org.wso2.carbon.automation.test.utils.http.client.HttpResponsedeleteSubscriptionPolicy(String name)org.wso2.carbon.automation.test.utils.http.client.HttpResponsedeleteTier(String tierName)Delete tierorg.wso2.carbon.automation.test.utils.http.client.HttpResponsegetAllTiers()Get all tiersorg.wso2.carbon.automation.test.utils.http.client.HttpResponsegetapplicationsByTenantId(String search, String start, String draw, String offset, String columnId, String sortOrder)Get all applications within a specific tenant domainorg.wso2.carbon.automation.test.utils.http.client.HttpResponselogin(String userName, String password)Login to API Admin Portalorg.wso2.carbon.automation.test.utils.http.client.HttpResponseupdateApplicationOwner(String newOwner, String oldOwner, String uuid, String appName)Update application owner
-
-
-
Constructor Detail
-
AdminDashboardRestClient
public AdminDashboardRestClient(String backendURL)
-
-
Method Detail
-
login
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse login(String userName, String password) throws APIManagerIntegrationTestException
Login to API Admin Portal- Parameters:
userName- - username to loginpassword- - password to login- Returns:
- - http response
- Throws:
APIManagerIntegrationTestException- - Throws if login to Admin Portal fails
-
addTier
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addTier(APIThrottlingTierRequest throttlingTierRequest) throws APIManagerIntegrationTestException
Add/Edit Tier- Parameters:
throttlingTierRequest-- Returns:
- http response
- Throws:
APIManagerIntegrationTestException
-
addThrottlingPolicy
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addThrottlingPolicy(String throttlingPolicyJSON) throws APIManagerIntegrationTestException
-
addApplicationPolicyWithBandwidthType
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addApplicationPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit) throws APIManagerIntegrationTestException
-
addSubscriptionPolicyWithBandwidthType
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse addSubscriptionPolicyWithBandwidthType(String name, int bandwidth, String bandwidthUnit, int defaultUnitTime, String defaultTimeUnit, boolean stopOnQuotaReach, int rateLimit, String rateLimitTimeUnit) throws APIManagerIntegrationTestException
-
deleteSubscriptionPolicy
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteSubscriptionPolicy(String name) throws APIManagerIntegrationTestException
-
deleteAPIPolicy
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteAPIPolicy(String name) throws APIManagerIntegrationTestException
-
deleteApplicationPolicy
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteApplicationPolicy(String name) throws APIManagerIntegrationTestException
-
deleteTier
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse deleteTier(String tierName) throws APIManagerIntegrationTestException
Delete tier- Parameters:
tierName-- Returns:
- http response
- Throws:
APIManagerIntegrationTestException
-
getAllTiers
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getAllTiers() throws APIManagerIntegrationTestExceptionGet all tiers- Returns:
- http response
- Throws:
APIManagerIntegrationTestException
-
getapplicationsByTenantId
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse getapplicationsByTenantId(String search, String start, String draw, String offset, String columnId, String sortOrder) throws APIManagerIntegrationTestException
Get all applications within a specific tenant domain- Parameters:
search-start-draw-offset-columnId-sortOrder-- Returns:
- http response
- Throws:
APIManagerIntegrationTestException
-
updateApplicationOwner
public org.wso2.carbon.automation.test.utils.http.client.HttpResponse updateApplicationOwner(String newOwner, String oldOwner, String uuid, String appName) throws APIManagerIntegrationTestException
Update application owner- Parameters:
newOwner-oldOwner-uuid-appName-- Returns:
- http response
- Throws:
APIManagerIntegrationTestException
-
-