Skip to content

Commit 125223f

Browse files
[Azure Load Testing] Introduce 2024-05-01-preview API version (#29352)
Added Dataplane API Version 2024-05-01-preview for Microsoft.LoadTestService
1 parent f1546dc commit 125223f

File tree

82 files changed

+11358
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+11358
-4
lines changed

specification/loadtestservice/LoadTestService/client.tsp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ using Microsoft.LoadTestService;
77

88
@useDependency(APIVersions.v2022_11_01)
99
@useDependency(APIVersions.v2023_04_01_preview)
10+
@useDependency(APIVersions.v2024_05_01_preview)
1011
namespace Customizations;
1112

1213
#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@@ -58,3 +59,27 @@ interface TestRunOperations {
5859
#suppress "@azure-tools/typespec-azure-core/no-operation-id"
5960
stopTestRun is LoadTestRun.stop;
6061
}
62+
63+
@client({
64+
name: "TestProfileAdministrationClient",
65+
service: Microsoft.LoadTestService,
66+
})
67+
interface TestProfileAdministrationOperations {
68+
createOrUpdateTestProfile is TestProfileAdministration.createOrUpdateTestProfile;
69+
deleteTestProfile is TestProfileAdministration.deleteTestProfile;
70+
getTestProfile is TestProfileAdministration.getTestProfile;
71+
listTestProfiles is TestProfileAdministration.listTestProfiles;
72+
}
73+
74+
@client({
75+
name: "TestProfileRunClient",
76+
service: Microsoft.LoadTestService,
77+
})
78+
interface TestProfileRunOperations {
79+
createOrUpdateTestProfileRun is TestProfileRunAdministration.createOrUpdateTestProfileRun;
80+
deleteTestProfileRun is TestProfileRunAdministration.deleteTestProfileRun;
81+
getTestProfileRun is TestProfileRunAdministration.getTestProfileRun;
82+
listTestProfileRuns is TestProfileRunAdministration.listTestProfileRuns;
83+
#suppress "@azure-tools/typespec-azure-core/no-operation-id"
84+
stopTestProfileRun is TestProfileRunAdministration.stop;
85+
}
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
{
2+
"operationId": "LoadTestAdministration_CreateOrUpdateTest",
3+
"title": "Create or update a load test",
4+
"parameters": {
5+
"api-version": "2024-05-01-preview",
6+
"testId": "12345678-1234-1234-1234-123456789012",
7+
"body": {
8+
"description": "sample description",
9+
"displayName": "Performance_LoadTest",
10+
"loadTestConfiguration": {
11+
"engineInstances": 6,
12+
"splitAllCSVs": true
13+
},
14+
"passFailCriteria": {
15+
"passFailMetrics": {
16+
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": {
17+
"clientMetric": "response_time_ms",
18+
"aggregate": "percentage",
19+
"condition": ">",
20+
"value": 20,
21+
"action": "continue"
22+
}
23+
}
24+
},
25+
"autoStopCriteria": {
26+
"autoStopDisabled": true,
27+
"errorRate": 70,
28+
"errorRateTimeWindowInSeconds": 60
29+
},
30+
"secrets": {
31+
"secret1": {
32+
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827",
33+
"type": "AKV_SECRET_URI"
34+
}
35+
},
36+
"environmentVariables": {
37+
"envvar1": "sampletext"
38+
},
39+
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0",
40+
"keyvaultReferenceIdentityType": "UserAssigned",
41+
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/sampleprovider/sampleresourcetype/sampleresourcename"
42+
}
43+
},
44+
"responses": {
45+
"200": {
46+
"body": {
47+
"testId": "12345678-1234-1234-1234-123456789012",
48+
"description": "sample description",
49+
"displayName": "Performance_LoadTest",
50+
"loadTestConfiguration": {
51+
"engineInstances": 6,
52+
"splitAllCSVs": true
53+
},
54+
"passFailCriteria": {
55+
"passFailMetrics": {
56+
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": {
57+
"clientMetric": "response_time_ms",
58+
"aggregate": "percentage",
59+
"condition": ">",
60+
"value": 20,
61+
"action": "continue",
62+
"actualValue": 10,
63+
"result": "passed"
64+
}
65+
}
66+
},
67+
"autoStopCriteria": {
68+
"autoStopDisabled": true,
69+
"errorRate": 70,
70+
"errorRateTimeWindowInSeconds": 60
71+
},
72+
"createdDateTime": "2021-12-05T16:43:46.072Z",
73+
"createdBy": "[email protected]",
74+
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z",
75+
"lastModifiedBy": "[email protected]",
76+
"inputArtifacts": {
77+
"configFileInfo": {
78+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.yaml?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
79+
"fileName": "config.yaml",
80+
"fileType": "ADDITIONAL_ARTIFACTS",
81+
"expireDateTime": "2021-12-05T16:43:46.072Z",
82+
"validationStatus": ""
83+
},
84+
"testScriptFileInfo": {
85+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.jmx?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
86+
"fileName": "sample.jmx",
87+
"fileType": "JMX_FILE",
88+
"expireDateTime": "2021-12-05T16:43:46.072Z",
89+
"validationStatus": "VALIDATION_SUCCESS"
90+
},
91+
"userPropFileInfo": {
92+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.properties?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
93+
"fileName": "user.properties",
94+
"fileType": "USER_PROPERTIES",
95+
"expireDateTime": "2021-12-05T16:43:46.072Z",
96+
"validationStatus": ""
97+
},
98+
"inputArtifactsZipFileInfo": {
99+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.zip?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
100+
"fileName": "inputartifacts.zip",
101+
"fileType": "ADDITIONAL_ARTIFACTS",
102+
"expireDateTime": "2021-12-05T16:43:46.072Z",
103+
"validationStatus": ""
104+
},
105+
"additionalFileInfo": []
106+
},
107+
"secrets": {
108+
"secret1": {
109+
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827",
110+
"type": "AKV_SECRET_URI"
111+
}
112+
},
113+
"environmentVariables": {
114+
"envvar1": "sampletext"
115+
},
116+
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0",
117+
"keyvaultReferenceIdentityType": "UserAssigned",
118+
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
119+
}
120+
},
121+
"201": {
122+
"body": {
123+
"testId": "12345678-1234-1234-1234-123456789012",
124+
"description": "sample description",
125+
"displayName": "Performance_LoadTest",
126+
"loadTestConfiguration": {
127+
"engineInstances": 6,
128+
"splitAllCSVs": true
129+
},
130+
"passFailCriteria": {
131+
"passFailMetrics": {
132+
"fefd759d-7fe8-4f83-8b6d-aeebe0f491fe": {
133+
"clientMetric": "response_time_ms",
134+
"aggregate": "percentage",
135+
"condition": ">",
136+
"value": 20,
137+
"action": "continue",
138+
"actualValue": 10,
139+
"result": "passed"
140+
}
141+
}
142+
},
143+
"autoStopCriteria": {
144+
"autoStopDisabled": true,
145+
"errorRate": 70,
146+
"errorRateTimeWindowInSeconds": 60
147+
},
148+
"createdDateTime": "2021-12-05T16:43:46.072Z",
149+
"createdBy": "[email protected]",
150+
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z",
151+
"lastModifiedBy": "[email protected]",
152+
"inputArtifacts": {
153+
"configFileInfo": {
154+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.yaml?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
155+
"fileName": "config.yaml",
156+
"fileType": "ADDITIONAL_ARTIFACTS",
157+
"expireDateTime": "2021-12-05T16:43:46.072Z",
158+
"validationStatus": ""
159+
},
160+
"testScriptFileInfo": {
161+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.jmx?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
162+
"fileName": "sample.jmx",
163+
"fileType": "JMX_FILE",
164+
"expireDateTime": "2021-12-05T16:43:46.072Z",
165+
"validationStatus": "VALIDATION_SUCCESS"
166+
},
167+
"userPropFileInfo": {
168+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.properties?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
169+
"fileName": "user.properties",
170+
"fileType": "USER_PROPERTIES",
171+
"expireDateTime": "2021-12-05T16:43:46.072Z",
172+
"validationStatus": ""
173+
},
174+
"inputArtifactsZipFileInfo": {
175+
"url": "https://somestorageaccount.blob.core.windows.net/00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000.zip?sv=2019-12-12&st=2021-01-26T18%3A30%3A20Z&se=2021-02-05T18%3A30%3A00Z&sr=c&sp=rl&sig=d7PZKyQsIeE6xb%2B1M4Yb56I%2FEEKoNIF65D%2Fs0IFsYcE%3D",
176+
"fileName": "inputartifacts.zip",
177+
"fileType": "ADDITIONAL_ARTIFACTS",
178+
"expireDateTime": "2021-12-05T16:43:46.072Z",
179+
"validationStatus": ""
180+
},
181+
"additionalFileInfo": []
182+
},
183+
"secrets": {
184+
"secret1": {
185+
"value": "https://samplevault.vault.azure.net/secrets/samplesecret/f113f91fd4c44a368049849c164db827",
186+
"type": "AKV_SECRET_URI"
187+
}
188+
},
189+
"environmentVariables": {
190+
"envvar1": "sampletext"
191+
},
192+
"subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Network/virtualNetworks/samplenetworkresource/subnets/AAAAA0A0A0",
193+
"keyvaultReferenceIdentityType": "UserAssigned",
194+
"keyvaultReferenceIdentityId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"
195+
}
196+
}
197+
}
198+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"operationId": "LoadTestAdministration_CreateOrUpdateAppComponents",
3+
"title": "Add or update app components to a load test",
4+
"parameters": {
5+
"testId": "ee843bd9-a6d4-4364-a45c-427a03c39fa7",
6+
"api-version": "2024-05-01-preview",
7+
"body": {
8+
"components": {
9+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
10+
"resourceType": "microsoft.insights/components",
11+
"resourceName": "appcomponentresource",
12+
"displayName": "Performance_LoadTest_Insights",
13+
"kind": "web"
14+
}
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"testId": "12345678-1234-1234-1234-123456789012",
22+
"components": {
23+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
24+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
25+
"resourceType": "microsoft.insights/components",
26+
"resourceName": "appcomponentresource",
27+
"displayName": "Performance_LoadTest_Insights",
28+
"resourceGroup": "samplerg",
29+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
30+
"kind": "web"
31+
}
32+
},
33+
"createdDateTime": "2021-12-05T16:43:46.072Z",
34+
"createdBy": "[email protected]",
35+
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z",
36+
"lastModifiedBy": "[email protected]"
37+
}
38+
},
39+
"201": {
40+
"body": {
41+
"testId": "12345678-1234-1234-1234-123456789012",
42+
"components": {
43+
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource": {
44+
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/microsoft.insights/components/appcomponentresource",
45+
"resourceType": "microsoft.insights/components",
46+
"resourceName": "appcomponentresource",
47+
"displayName": "Performance_LoadTest_Insights",
48+
"resourceGroup": "samplerg",
49+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
50+
"kind": "web"
51+
}
52+
},
53+
"createdDateTime": "2021-12-05T16:43:46.072Z",
54+
"createdBy": "[email protected]",
55+
"lastModifiedDateTime": "2021-12-05T16:43:46.072Z",
56+
"lastModifiedBy": "[email protected]"
57+
}
58+
}
59+
}
60+
}
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"operationId": "TestProfileAdministration_CreateOrUpdateTestProfile",
3+
"title": "Create or update a test profile",
4+
"parameters": {
5+
"api-version": "2024-05-01-preview",
6+
"testProfileId": "12345678-1234-1234-1234-123456789012",
7+
"body": {
8+
"description": "sample description",
9+
"displayName": "Performance_TestProfile",
10+
"testId": "12346-abcd-6789",
11+
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp",
12+
"targetResourceConfigurations": {
13+
"kind": "FunctionsFlexConsumption",
14+
"configurations": {
15+
"config1": {
16+
"instanceMemoryMB": 512,
17+
"httpConcurrency": 16
18+
},
19+
"config2": {
20+
"instanceMemoryMB": 2048,
21+
"httpConcurrency": 16
22+
}
23+
}
24+
}
25+
}
26+
},
27+
"responses": {
28+
"200": {
29+
"body": {
30+
"testProfileId": "12345678-1234-1234-1234-123456789012",
31+
"description": "sample description",
32+
"displayName": "Performance_TestProfile",
33+
"testId": "12346-abcd-6789",
34+
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp",
35+
"targetResourceConfigurations": {
36+
"kind": "FunctionsFlexConsumption",
37+
"configurations": {
38+
"config1": {
39+
"instanceMemoryMB": 512,
40+
"httpConcurrency": 16
41+
},
42+
"config2": {
43+
"instanceMemoryMB": 2048,
44+
"httpConcurrency": 16
45+
}
46+
}
47+
},
48+
"createdDateTime": "2024-05-01T16:43:46.072Z",
49+
"createdBy": "[email protected]",
50+
"lastModifiedDateTime": "2024-05-01T16:43:46.072Z",
51+
"lastModifiedBy": "[email protected]"
52+
}
53+
},
54+
"201": {
55+
"body": {
56+
"testProfileId": "12345678-1234-1234-1234-123456789012",
57+
"description": "sample description",
58+
"displayName": "Performance_TestProfile",
59+
"testId": "12346-abcd-6789",
60+
"targetResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/samplerg/providers/Microsoft.Web/sites/myfunctionapp",
61+
"targetResourceConfigurations": {
62+
"kind": "FunctionsFlexConsumption",
63+
"configurations": {
64+
"config1": {
65+
"instanceMemoryMB": 512,
66+
"httpConcurrency": 16
67+
},
68+
"config2": {
69+
"instanceMemoryMB": 2048,
70+
"httpConcurrency": 16
71+
}
72+
}
73+
},
74+
"createdDateTime": "2024-05-01T16:43:46.072Z",
75+
"createdBy": "[email protected]",
76+
"lastModifiedDateTime": "2024-05-01T16:43:46.072Z",
77+
"lastModifiedBy": "[email protected]"
78+
}
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)