Skip to content

Commit

Permalink
Pre-GA SDK for Azure LoadTesting (Azure#32268)
Browse files Browse the repository at this point in the history
* started GA SDK generation

* added directives

* initial generate

* fixed generated code

* fixed API view generation

* added CheckTestFileValidationStatus

* updated samples, changelog & fixed missing cases

* updated Readme

* updated CreateOrUpdateAppComponent Sample

* updated changelog

* name chages from directives

* updated samples

* fixed directives for filename

* fixed admin client

* ran eng\scripts\Export-API.ps1

* fixed broken links

* resloved merge conflict from Samples.

* regenrated to resolve issues in merge

* fixed enpoint issues

* testing link verification pipeline

* tested

* generated SDK with updated swagger

* generating API View

* fixed LRO naming and CHANGELOG.md

* cleaned links from samples

* cleaned directives

* fixed BeginGetTestScriptValidationStatus

* pushing Hero

* added appcomponents

* removed secrets

* Add LRO for file upload and test run

* Add initial response to LROs

* regenerated as per the two client approach

* renamed options to LoadTestingClientOptions

* fixed uri issue

* LRO Implimentation Done

* fixed compilation issues

* removed Hero

* fixed testing framework

* Fixed BeginUploadTestFile & Async @Harshan01

* completed LoadTestAdminsitrationClient

* completed tests for LoadTestRunClient

* completed testing

* fixed failing tests

* fixed tests

* updated API

* fixed APIs

* fixed scope issue

* added samples

* added more samples

* added samples

* added to readme

* fixed readme

* pipeline fix attempt

* completed teseting for LoadTestAdminstration

* added more recordings

* commiting more recordings

* ran load test admin client

* testing CI with new JMX

* fixing LRO

* solved recording mismatched error

* updated snippets

* ran: .\eng\common\scripts\Prepare-Release.ps1 Azure.Developer.LoadTesting loadtestservice

* updates samples

* updated samples

* remove compilation issues

* Added LoadTestTestsBase.cs

* corrected samples

* updated ReadMe

* regenerating code

* regenerated code, api and samples

* changed link to github

* re-recorded tests

* fixed build issues

* re-recorded with new sanitizer

* testing build with pull

* updated new recordings

* fixed autorest, linux file matching, api export

* adding commit id

* fixed code verification

* testing pipelines

* recording from windows with \r\n

* windows base

* removed newline from JMX file

* re-recorded

* recorded

* resolved all coments from @christothes apart from unit testing comments.

* added deeper asserts for LoadTestAdministrationClientTests

* added deeper asserts

* Update sdk/loadtestservice/Azure.Developer.LoadTesting/src/FileUploadOperation.cs

Co-authored-by: Christopher Scott <chriscott@hotmail.com>

* merged

* resolved comments by @Christother

* fixed recording

Co-authored-by: Nivedit Jain <jain.22@iitj.ac.in>
Co-authored-by: Harshan B <harshanb@microsoft.com>
Co-authored-by: Christopher Scott <chriscott@hotmail.com>
  • Loading branch information
4 people authored Jan 20, 2023
1 parent 1153812 commit 12dd81a
Show file tree
Hide file tree
Showing 111 changed files with 62,102 additions and 6,709 deletions.
26 changes: 23 additions & 3 deletions sdk/loadtestservice/Azure.Developer.LoadTesting/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.2 (2023-01-13)

### Features Added
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricNamespaces`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricDefinitions`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetrics`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.CreateOrUpdateAppComponents`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListAppComponents`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.CreateOrUpdateServerMetricsConfig`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.GetServerMetricsConfig`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestAdministrationClient.
`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestAdministrationClient.BeginTestRun`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricNamespacesAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricDefinitionsAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricsAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.CreateOrUpdateAppComponentsAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListAppComponentsAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.CreateOrUpdateServerMetricsConfigAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.GetServerMetricsConfigAsync`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestAdministrationClient.BeginUploadTestFile`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestAdministrationClient.BeginTestRun`
- Method Addded `Azure.Developer.LoadTesting.LoadTestingClient.LoadTestRunClient.ListMetricDimensionValues`

### Breaking Changes

### Bugs Fixed
- Changed from single client and 2 subclients pattern to two clients pattern

### Other Changes
- README Updated

## 1.0.0-beta.1 (2022-10-25)

Expand Down
10 changes: 5 additions & 5 deletions sdk/loadtestservice/Azure.Developer.LoadTesting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ Use the returned token credential to authenticate the client.

## Key concepts

The following components make up the Azure Load Testing service. The Azure Load Test client library for C# allows you to interact with each of these components through the use of clients. There is a top level client `LoadTestingClient` with two sub-clients
The following components make up the Azure Load Testing service. The Azure Load Test client library for C# allows you to interact with each of these components through the use of clients. There are two clients:

- `LoadTestAdministrationClient`

- `TestRunClient`
- `LoadTestRunClient`

These sub-clients are used for managing and using different components of the service. For each method in both of these sub-clients there is a corresponding Async method in the same class, with the same implementation however enabling async functionalities. For example, if there is a method, `CreateOrUpdateTest` as a part of `LoadTestAdministrationClient` then there always exists one more function `CreateOrUpdateTestAsync` in the same client class.
These clients are used for managing and using different components of the service. For each method in both of these sub-clients there is a corresponding Async method in the same class, with the same implementation however enabling async functionalities. For example, if there is a method, `CreateOrUpdateTest` as a part of `LoadTestAdministrationClient` then there always exists one more function `CreateOrUpdateTestAsync` in the same client class.

### Load Test Administration Client

The `LoadTestAdministration` sub-clients is used to administer and configure the load tests, app components and metrics.
The `LoadTestAdministrationClient` client is used to administer and configure the load tests, app components and metrics.

#### Test

Expand All @@ -73,7 +73,7 @@ During a load test, Azure Load Testing collects metrics about the test execution

### Test Run Client

The `TestRun` sub-clients is used to start and stop test runs corresponding to a load test. A test run represents one execution of a load test. It collects the logs associated with running the Apache JMeter script, the load test YAML configuration, the list of app components to monitor, and the results of the test.
The `LoadTestRunClient` client is used to start and stop test runs corresponding to a load test. A test run represents one execution of a load test. It collects the logs associated with running the Apache JMeter script, the load test YAML configuration, the list of app components to monitor, and the results of the test.

### Data-Plane Endpoint

Expand Down
Loading

0 comments on commit 12dd81a

Please sign in to comment.