Class AzureClient
- java.lang.Object
-
- us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
-
- us.abstracta.jmeter.javadsl.azure.AzureClient
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class AzureClient extends BaseRemoteEngineApiClient
-
-
Constructor Summary
Constructors Constructor Description AzureClient(String tenantId, String clientId, String clientSecret)
-
Method Summary
-
Methods inherited from class us.abstracta.jmeter.javadsl.engines.BaseRemoteEngineApiClient
buildApiFor, buildConverterMapper, buildRemoteEngineException, close, execApiCall
-
-
-
-
Method Detail
-
configureHttpClient
protected void configureHttpClient(okhttp3.OkHttpClient.Builder builder)
- Overrides:
configureHttpClientin classBaseRemoteEngineApiClient
-
buildAuthorizationHeaderValue
protected String buildAuthorizationHeaderValue(okhttp3.Request request) throws IOException
- Specified by:
buildAuthorizationHeaderValuein classBaseRemoteEngineApiClient- Throws:
IOException
-
findSubscription
public Subscription findSubscription() throws IOException
- Throws:
IOException
-
findResourceGroup
public ResourceGroup findResourceGroup(String name, Subscription subscription) throws IOException
- Throws:
IOException
-
findLocation
public Location findLocation(Subscription subscription) throws IOException
- Throws:
IOException
-
createResourceGroup
public void createResourceGroup(ResourceGroup resourceGroup) throws IOException
- Throws:
IOException
-
findTestResource
public LoadTestResource findTestResource(String name, ResourceGroup resourceGroup) throws IOException
- Throws:
IOException
-
getDataPlaneUrl
public String getDataPlaneUrl()
-
createTestResource
public void createTestResource(LoadTestResource testResource) throws IOException
- Throws:
IOException
-
findTestByName
public LoadTest findTestByName(String testName, LoadTestResource testResource) throws IOException
- Throws:
IOException
-
updateTest
public void updateTest(LoadTest loadTest) throws IOException
- Throws:
IOException
-
updateAppComponents
public void updateAppComponents(String testId, AppComponents appComponents) throws IOException
- Throws:
IOException
-
findTestAppComponents
public AppComponents findTestAppComponents(String testId) throws IOException
- Throws:
IOException
-
findTestFiles
public List<String> findTestFiles(String testId) throws IOException
- Throws:
IOException
-
deleteTestFile
public void deleteTestFile(String fileName, String testId) throws IOException
- Throws:
IOException
-
uploadTestFile
public FileInfo uploadTestFile(File file, String fileName, String testId) throws IOException
- Throws:
IOException
-
findTestFile
public FileInfo findTestFile(String fileName, String testId) throws IOException
- Throws:
IOException
-
createTestRun
public TestRun createTestRun(TestRun testRun) throws IOException
- Throws:
IOException
-
findTestRunById
public TestRun findTestRunById(String id) throws IOException
- Throws:
IOException
-
stopTestRun
public void stopTestRun(String id) throws IOException
- Throws:
IOException
-
-