@azure-rest/load-testing 1.1.0-beta.1 → 1.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/LICENSE +1 -1
- package/README.md +12 -13
- package/dist/browser/azureLoadTesting.js +14 -12
- package/dist/browser/azureLoadTesting.js.map +1 -1
- package/dist/browser/clientDefinitions.d.ts +66 -34
- package/dist/browser/clientDefinitions.js.map +1 -1
- package/dist/browser/getFileValidationPoller.js +16 -11
- package/dist/browser/getFileValidationPoller.js.map +1 -1
- package/dist/browser/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/browser/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/browser/getTestRunCompletionPoller.js +16 -11
- package/dist/browser/getTestRunCompletionPoller.js.map +1 -1
- package/dist/browser/index.d.ts +6 -6
- package/dist/browser/index.js +1 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/isUnexpected.d.ts +15 -9
- package/dist/browser/isUnexpected.js +21 -13
- package/dist/browser/isUnexpected.js.map +1 -1
- package/dist/browser/models.d.ts +205 -172
- package/dist/browser/models.js.map +1 -1
- package/dist/browser/outputModels.d.ts +290 -208
- package/dist/browser/outputModels.js.map +1 -1
- package/dist/browser/paginateHelper.js +43 -73
- package/dist/browser/paginateHelper.js.map +1 -1
- package/dist/browser/parameters.d.ts +107 -66
- package/dist/browser/parameters.js.map +1 -1
- package/dist/browser/pollingHelper.d.ts +82 -4
- package/dist/browser/pollingHelper.js +119 -15
- package/dist/browser/pollingHelper.js.map +1 -1
- package/dist/browser/responses.d.ts +234 -121
- package/dist/browser/responses.js.map +1 -1
- package/dist/commonjs/azureLoadTesting.js +53 -45
- package/dist/commonjs/azureLoadTesting.js.map +7 -1
- package/dist/commonjs/clientDefinitions.d.ts +66 -34
- package/dist/commonjs/clientDefinitions.js +15 -5
- package/dist/commonjs/clientDefinitions.js.map +7 -1
- package/dist/commonjs/getFileValidationPoller.js +151 -137
- package/dist/commonjs/getFileValidationPoller.js.map +7 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.js +139 -127
- package/dist/commonjs/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/getTestRunCompletionPoller.js +139 -125
- package/dist/commonjs/getTestRunCompletionPoller.js.map +7 -1
- package/dist/commonjs/index.d.ts +6 -6
- package/dist/commonjs/index.js +46 -20
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/isUnexpected.d.ts +15 -9
- package/dist/commonjs/isUnexpected.js +118 -105
- package/dist/commonjs/isUnexpected.js.map +7 -1
- package/dist/commonjs/logger.js +28 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models.d.ts +205 -172
- package/dist/commonjs/models.js +15 -5
- package/dist/commonjs/models.js.map +7 -1
- package/dist/commonjs/outputModels.d.ts +290 -208
- package/dist/commonjs/outputModels.js +15 -5
- package/dist/commonjs/outputModels.js.map +7 -1
- package/dist/commonjs/paginateHelper.js +118 -158
- package/dist/commonjs/paginateHelper.js.map +7 -1
- package/dist/commonjs/parameters.d.ts +107 -66
- package/dist/commonjs/parameters.js +15 -5
- package/dist/commonjs/parameters.js.map +7 -1
- package/dist/commonjs/pollingHelper.d.ts +82 -4
- package/dist/commonjs/pollingHelper.js +143 -24
- package/dist/commonjs/pollingHelper.js.map +7 -1
- package/dist/commonjs/responses.d.ts +234 -121
- package/dist/commonjs/responses.js +15 -5
- package/dist/commonjs/responses.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/commonjs/util/LROUtil.js +76 -54
- package/dist/commonjs/util/LROUtil.js.map +7 -1
- package/dist/esm/azureLoadTesting.js +32 -40
- package/dist/esm/azureLoadTesting.js.map +7 -1
- package/dist/esm/clientDefinitions.d.ts +66 -34
- package/dist/esm/clientDefinitions.js +0 -4
- package/dist/esm/clientDefinitions.js.map +7 -1
- package/dist/esm/getFileValidationPoller.js +126 -132
- package/dist/esm/getFileValidationPoller.js.map +7 -1
- package/dist/esm/getTestProfileRunCompletionPoller.js +114 -122
- package/dist/esm/getTestProfileRunCompletionPoller.js.map +7 -1
- package/dist/esm/getTestRunCompletionPoller.js +114 -120
- package/dist/esm/getTestRunCompletionPoller.js.map +7 -1
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js +5 -11
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/isUnexpected.d.ts +15 -9
- package/dist/esm/isUnexpected.js +96 -103
- package/dist/esm/isUnexpected.js.map +7 -1
- package/dist/esm/logger.js +4 -4
- package/dist/esm/logger.js.map +7 -1
- package/dist/esm/models.d.ts +205 -172
- package/dist/esm/models.js +0 -4
- package/dist/esm/models.js.map +7 -1
- package/dist/esm/outputModels.d.ts +290 -208
- package/dist/esm/outputModels.js +0 -4
- package/dist/esm/outputModels.js.map +7 -1
- package/dist/esm/paginateHelper.js +95 -155
- package/dist/esm/paginateHelper.js.map +7 -1
- package/dist/esm/parameters.d.ts +107 -66
- package/dist/esm/parameters.js +0 -4
- package/dist/esm/parameters.js.map +7 -1
- package/dist/esm/pollingHelper.d.ts +82 -4
- package/dist/esm/pollingHelper.js +117 -18
- package/dist/esm/pollingHelper.js.map +7 -1
- package/dist/esm/responses.d.ts +234 -121
- package/dist/esm/responses.js +0 -4
- package/dist/esm/responses.js.map +7 -1
- package/dist/esm/util/LROUtil.js +52 -50
- package/dist/esm/util/LROUtil.js.map +7 -1
- package/dist/react-native/azureLoadTesting.js +14 -12
- package/dist/react-native/azureLoadTesting.js.map +1 -1
- package/dist/react-native/clientDefinitions.d.ts +66 -34
- package/dist/react-native/clientDefinitions.js.map +1 -1
- package/dist/react-native/getFileValidationPoller.js +16 -11
- package/dist/react-native/getFileValidationPoller.js.map +1 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestProfileRunCompletionPoller.js.map +1 -1
- package/dist/react-native/getTestRunCompletionPoller.js +16 -11
- package/dist/react-native/getTestRunCompletionPoller.js.map +1 -1
- package/dist/react-native/index.d.ts +6 -6
- package/dist/react-native/index.js +1 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/isUnexpected.d.ts +15 -9
- package/dist/react-native/isUnexpected.js +21 -13
- package/dist/react-native/isUnexpected.js.map +1 -1
- package/dist/react-native/models.d.ts +205 -172
- package/dist/react-native/models.js.map +1 -1
- package/dist/react-native/outputModels.d.ts +290 -208
- package/dist/react-native/outputModels.js.map +1 -1
- package/dist/react-native/paginateHelper.js +43 -73
- package/dist/react-native/paginateHelper.js.map +1 -1
- package/dist/react-native/parameters.d.ts +107 -66
- package/dist/react-native/parameters.js.map +1 -1
- package/dist/react-native/pollingHelper.d.ts +82 -4
- package/dist/react-native/pollingHelper.js +119 -15
- package/dist/react-native/pollingHelper.js.map +1 -1
- package/dist/react-native/responses.d.ts +234 -121
- package/dist/react-native/responses.js.map +1 -1
- package/package.json +69 -86
- package/review/{load-testing.api.md → load-testing-node.api.md} +420 -23
- package/dist/browser/azureLoadTesting.d.ts.map +0 -1
- package/dist/browser/clientDefinitions.d.ts.map +0 -1
- package/dist/browser/getFileValidationPoller.d.ts.map +0 -1
- package/dist/browser/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/isUnexpected.d.ts.map +0 -1
- package/dist/browser/logger.d.ts.map +0 -1
- package/dist/browser/models.d.ts.map +0 -1
- package/dist/browser/outputModels.d.ts.map +0 -1
- package/dist/browser/paginateHelper.d.ts.map +0 -1
- package/dist/browser/parameters.d.ts.map +0 -1
- package/dist/browser/pollingHelper.d.ts.map +0 -1
- package/dist/browser/responses.d.ts.map +0 -1
- package/dist/browser/util/LROUtil.d.ts.map +0 -1
- package/dist/commonjs/azureLoadTesting.d.ts.map +0 -1
- package/dist/commonjs/clientDefinitions.d.ts.map +0 -1
- package/dist/commonjs/getFileValidationPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/isUnexpected.d.ts.map +0 -1
- package/dist/commonjs/logger.d.ts.map +0 -1
- package/dist/commonjs/models.d.ts.map +0 -1
- package/dist/commonjs/outputModels.d.ts.map +0 -1
- package/dist/commonjs/paginateHelper.d.ts.map +0 -1
- package/dist/commonjs/parameters.d.ts.map +0 -1
- package/dist/commonjs/pollingHelper.d.ts.map +0 -1
- package/dist/commonjs/responses.d.ts.map +0 -1
- package/dist/commonjs/util/LROUtil.d.ts.map +0 -1
- package/dist/esm/azureLoadTesting.d.ts.map +0 -1
- package/dist/esm/clientDefinitions.d.ts.map +0 -1
- package/dist/esm/getFileValidationPoller.d.ts.map +0 -1
- package/dist/esm/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/isUnexpected.d.ts.map +0 -1
- package/dist/esm/logger.d.ts.map +0 -1
- package/dist/esm/models.d.ts.map +0 -1
- package/dist/esm/outputModels.d.ts.map +0 -1
- package/dist/esm/paginateHelper.d.ts.map +0 -1
- package/dist/esm/parameters.d.ts.map +0 -1
- package/dist/esm/pollingHelper.d.ts.map +0 -1
- package/dist/esm/responses.d.ts.map +0 -1
- package/dist/esm/util/LROUtil.d.ts.map +0 -1
- package/dist/react-native/azureLoadTesting.d.ts.map +0 -1
- package/dist/react-native/clientDefinitions.d.ts.map +0 -1
- package/dist/react-native/getFileValidationPoller.d.ts.map +0 -1
- package/dist/react-native/getTestProfileRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/getTestRunCompletionPoller.d.ts.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/isUnexpected.d.ts.map +0 -1
- package/dist/react-native/logger.d.ts.map +0 -1
- package/dist/react-native/models.d.ts.map +0 -1
- package/dist/react-native/outputModels.d.ts.map +0 -1
- package/dist/react-native/paginateHelper.d.ts.map +0 -1
- package/dist/react-native/parameters.d.ts.map +0 -1
- package/dist/react-native/pollingHelper.d.ts.map +0 -1
- package/dist/react-native/responses.d.ts.map +0 -1
- package/dist/react-native/util/LROUtil.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAqGlC,MAAM,WAAW,GAA6B;IAC5C,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvC,wBAAwB,EAAE,CAAC,KAAK,CAAC;IACjC,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,YAAY,EAAE,CAAC,KAAK,CAAC;IACrB,sCAAsC,EAAE,CAAC,KAAK,CAAC;IAC/C,sCAAsC,EAAE,CAAC,KAAK,CAAC;IAC/C,yCAAyC,EAAE,CAAC,KAAK,CAAC;IAClD,2BAA2B,EAAE,CAAC,KAAK,CAAC;IACpC,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,6CAA6C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC7D,2CAA2C,EAAE,CAAC,KAAK,CAAC;IACpD,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,uCAAuC,EAAE,CAAC,KAAK,CAAC;IAChD,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,oBAAoB,EAAE,CAAC,KAAK,CAAC;IAC7B,4BAA4B,EAAE,CAAC,KAAK,CAAC;IACrC,8BAA8B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC9C,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,gBAAgB,EAAE,CAAC,KAAK,CAAC;IACzB,6CAA6C,EAAE,CAAC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sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n LoadTestAdministrationCreateOrUpdateTest200Response,\n LoadTestAdministrationCreateOrUpdateTest201Response,\n LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n LoadTestAdministrationDeleteTest204Response,\n LoadTestAdministrationDeleteTestDefaultResponse,\n LoadTestAdministrationGetTest200Response,\n LoadTestAdministrationGetTestDefaultResponse,\n LoadTestAdministrationListTests200Response,\n LoadTestAdministrationListTestsDefaultResponse,\n LoadTestAdministrationUploadTestFile201Response,\n LoadTestAdministrationUploadTestFileDefaultResponse,\n LoadTestAdministrationGetTestFile200Response,\n LoadTestAdministrationGetTestFileDefaultResponse,\n LoadTestAdministrationDeleteTestFile204Response,\n LoadTestAdministrationDeleteTestFileDefaultResponse,\n LoadTestAdministrationListTestFiles200Response,\n LoadTestAdministrationListTestFilesDefaultResponse,\n LoadTestAdministrationCreateOrUpdateAppComponents200Response,\n LoadTestAdministrationCreateOrUpdateAppComponents201Response,\n LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestAdministrationGetAppComponents200Response,\n LoadTestAdministrationGetAppComponentsDefaultResponse,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestAdministrationGetServerMetricsConfig200Response,\n LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n TestProfileAdministrationCreateOrUpdateTestProfile200Response,\n TestProfileAdministrationCreateOrUpdateTestProfile201Response,\n TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n TestProfileAdministrationDeleteTestProfile204Response,\n TestProfileAdministrationDeleteTestProfileDefaultResponse,\n TestProfileAdministrationGetTestProfile200Response,\n TestProfileAdministrationGetTestProfileDefaultResponse,\n TestProfileAdministrationListTestProfiles200Response,\n TestProfileAdministrationListTestProfilesDefaultResponse,\n LoadTestRunGetTestRun200Response,\n LoadTestRunGetTestRunDefaultResponse,\n LoadTestRunCreateOrUpdateTestRun200Response,\n LoadTestRunCreateOrUpdateTestRun201Response,\n LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n LoadTestRunDeleteTestRun204Response,\n LoadTestRunDeleteTestRunDefaultResponse,\n LoadTestRunListTestRuns200Response,\n LoadTestRunListTestRunsDefaultResponse,\n LoadTestRunGetTestRunFile200Response,\n LoadTestRunGetTestRunFileDefaultResponse,\n LoadTestRunStop200Response,\n LoadTestRunStopDefaultResponse,\n LoadTestRunListMetricNamespaces200Response,\n LoadTestRunListMetricNamespacesDefaultResponse,\n LoadTestRunListMetricDefinitions200Response,\n LoadTestRunListMetricDefinitionsDefaultResponse,\n LoadTestRunListMetrics200Response,\n LoadTestRunListMetricsDefaultResponse,\n LoadTestRunListMetricDimensionValues200Response,\n LoadTestRunListMetricDimensionValuesDefaultResponse,\n LoadTestRunCreateOrUpdateAppComponents200Response,\n LoadTestRunCreateOrUpdateAppComponents201Response,\n LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestRunGetAppComponents200Response,\n LoadTestRunGetAppComponentsDefaultResponse,\n LoadTestRunCreateOrUpdateServerMetricsConfig200Response,\n LoadTestRunCreateOrUpdateServerMetricsConfig201Response,\n LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestRunGetServerMetricsConfig200Response,\n LoadTestRunGetServerMetricsConfigDefaultResponse,\n TestProfileRunAdministrationGetTestProfileRun200Response,\n TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n TestProfileRunAdministrationDeleteTestProfileRun204Response,\n TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n TestProfileRunAdministrationStop200Response,\n TestProfileRunAdministrationStopDefaultResponse,\n TestProfileRunAdministrationListTestProfileRuns200Response,\n TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n TriggerAdministrationGetTrigger200Response,\n TriggerAdministrationGetTriggerDefaultResponse,\n TriggerAdministrationCreateOrUpdateTrigger200Response,\n TriggerAdministrationCreateOrUpdateTrigger201Response,\n TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n TriggerAdministrationDeleteTrigger204Response,\n TriggerAdministrationDeleteTriggerDefaultResponse,\n TriggerAdministrationListTrigger200Response,\n TriggerAdministrationListTriggerDefaultResponse,\n NotificationRuleAdministrationGetNotificationRule200Response,\n NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n NotificationRuleAdministrationDeleteNotificationRule204Response,\n NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n NotificationRuleAdministrationListNotificationRule200Response,\n NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"PATCH /tests/{testId}\": [\"200\", \"201\"],\n \"DELETE /tests/{testId}\": [\"204\"],\n \"GET /tests/{testId}\": [\"200\"],\n \"GET /tests\": [\"200\"],\n \"PUT /tests/{testId}/files/{fileName}\": [\"201\"],\n \"GET /tests/{testId}/files/{fileName}\": [\"200\"],\n \"DELETE /tests/{testId}/files/{fileName}\": [\"204\"],\n \"GET /tests/{testId}/files\": [\"200\"],\n \"PATCH /tests/{testId}/app-components\": [\"200\", \"201\"],\n \"GET /tests/{testId}/app-components\": [\"200\"],\n \"PATCH /tests/{testId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /tests/{testId}/server-metrics-config\": [\"200\"],\n \"PATCH /test-profiles/{testProfileId}\": [\"200\", \"201\"],\n \"DELETE /test-profiles/{testProfileId}\": [\"204\"],\n \"GET /test-profiles/{testProfileId}\": [\"200\"],\n \"GET /test-profiles\": [\"200\"],\n \"GET /test-runs/{testRunId}\": [\"200\"],\n \"PATCH /test-runs/{testRunId}\": [\"200\", \"201\"],\n \"DELETE /test-runs/{testRunId}\": [\"204\"],\n \"GET /test-runs\": [\"200\"],\n \"GET /test-runs/{testRunId}/files/{fileName}\": [\"200\"],\n \"POST /test-runs/{testRunId}:stop\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-namespaces\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-definitions\": [\"200\"],\n \"POST /test-runs/{testRunId}/metrics\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-dimensions/{name}/values\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/app-components\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/app-components\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/server-metrics-config\": [\"200\"],\n \"GET /test-profile-runs/{testProfileRunId}\": [\"200\"],\n \"PATCH /test-profile-runs/{testProfileRunId}\": [\"200\", \"201\"],\n \"DELETE /test-profile-runs/{testProfileRunId}\": [\"204\"],\n \"POST /test-profile-runs/{testProfileRunId}:stop\": [\"200\"],\n \"GET /test-profile-runs\": [\"200\"],\n \"GET /triggers/{triggerId}\": [\"200\"],\n \"PATCH /triggers/{triggerId}\": [\"200\", \"201\"],\n \"DELETE /triggers/{triggerId}\": [\"204\"],\n \"GET /triggers\": [\"200\"],\n \"GET /notification-rules/{notificationRuleId}\": [\"200\"],\n \"PATCH /notification-rules/{notificationRuleId}\": [\"200\", \"201\"],\n \"DELETE /notification-rules/{notificationRuleId}\": [\"204\"],\n \"GET /notification-rules\": [\"200\"],\n};\n\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse,\n): response is LoadTestAdministrationDeleteTestDefaultResponse;\nexport function isUnexpected(\n response: LoadTestAdministrationGetTest200Response | LoadTestAdministrationGetTestDefaultResponse,\n): response is LoadTestAdministrationGetTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse,\n): response is LoadTestAdministrationListTestsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse,\n): response is LoadTestAdministrationUploadTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse,\n): response is LoadTestAdministrationGetTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse,\n): response is LoadTestAdministrationDeleteTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse,\n): response is LoadTestAdministrationListTestFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse,\n): response is LoadTestAdministrationGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n): response is TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse,\n): response is TestProfileAdministrationDeleteTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse,\n): response is TestProfileAdministrationGetTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse,\n): response is TestProfileAdministrationListTestProfilesDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRun200Response | LoadTestRunGetTestRunDefaultResponse,\n): response is LoadTestRunGetTestRunDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n): response is LoadTestRunCreateOrUpdateTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunDeleteTestRun204Response | LoadTestRunDeleteTestRunDefaultResponse,\n): response is LoadTestRunDeleteTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListTestRuns200Response | LoadTestRunListTestRunsDefaultResponse,\n): response is LoadTestRunListTestRunsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRunFile200Response | LoadTestRunGetTestRunFileDefaultResponse,\n): response is LoadTestRunGetTestRunFileDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunStop200Response | LoadTestRunStopDefaultResponse,\n): response is LoadTestRunStopDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse,\n): response is LoadTestRunListMetricNamespacesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse,\n): response is LoadTestRunListMetricDefinitionsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListMetrics200Response | LoadTestRunListMetricsDefaultResponse,\n): response is LoadTestRunListMetricsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse,\n): response is LoadTestRunListMetricDimensionValuesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestRunCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetAppComponents200Response | LoadTestRunGetAppComponentsDefaultResponse,\n): response is LoadTestRunGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse,\n): response is LoadTestRunGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationGetTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse,\n): response is TestProfileRunAdministrationStopDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is TestProfileRunAdministrationListTestProfileRunsDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse,\n): response is TriggerAdministrationGetTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse,\n): response is TriggerAdministrationDeleteTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse,\n): response is TriggerAdministrationListTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTest200Response\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | LoadTestRunGetTestRun200Response\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRun204Response\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRuns200Response\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFile200Response\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStop200Response\n | LoadTestRunStopDefaultResponse\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetrics200Response\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponents200Response\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStopDefaultResponse\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"isUnexpected.js","sourceRoot":"","sources":["../../src/isUnexpected.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAoHlC,MAAM,WAAW,GAA6B;IAC5C,+BAA+B,EAAE,CAAC,KAAK,CAAC;IACxC,uBAAuB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACvC,wBAAwB,EAAE,CAAC,KAAK,CAAC;IACjC,qBAAqB,EAAE,CAAC,KAAK,CAAC;IAC9B,YAAY,EAAE,CAAC,KAAK,CAAC;IACrB,2BAA2B,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC3C,4BAA4B,EAAE,CAAC,KAAK,CAAC;IACrC,qDAAqD,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACrE,sDAAsD,EAAE,CAAC,KAAK,CAAC;IAC/D,sCAAsC,EAAE,CAAC,KAAK,CAAC;IAC/C,sCAAsC,EAAE,CAAC,KAAK,CAAC;IAC/C,yCAAyC,EAAE,CAAC,KAAK,CAAC;IAClD,2BAA2B,EAAE,CAAC,KAAK,CAAC;IACpC,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,6CAA6C,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IAC7D,2CAA2C,EAAE,CAAC,KAAK,CAAC;IACpD,sCAAsC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACtD,uCAAuC,EAAE,CAAC,KAAK,CAAC;IAChD,oCAAoC,EAAE,CAAC,KAAK,CAAC;IAC7C,oBAAoB,EAAE,CAAC,KAAK,CAAC;IAC7B,2BAA2B,EAAE,CAAC,KAAK,CAAC;IACpC,6BAA6B,EAAE,C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KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type {\n OperationsGetStatus200Response,\n OperationsGetStatusDefaultResponse,\n LoadTestAdministrationCreateOrUpdateTest200Response,\n LoadTestAdministrationCreateOrUpdateTest201Response,\n LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n LoadTestAdministrationDeleteTest204Response,\n LoadTestAdministrationDeleteTestDefaultResponse,\n LoadTestAdministrationGetTest200Response,\n LoadTestAdministrationGetTestDefaultResponse,\n LoadTestAdministrationListTests200Response,\n LoadTestAdministrationListTestsDefaultResponse,\n LoadTestAdministrationCloneTest202Response,\n LoadTestAdministrationCloneTestLogicalResponse,\n LoadTestAdministrationCloneTestDefaultResponse,\n LoadTestAdministrationGenerateTestPlanRecommendations202Response,\n LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse,\n LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse,\n LoadTestAdministrationUploadTestFile201Response,\n LoadTestAdministrationUploadTestFileDefaultResponse,\n LoadTestAdministrationGetTestFile200Response,\n LoadTestAdministrationGetTestFileDefaultResponse,\n LoadTestAdministrationDeleteTestFile204Response,\n LoadTestAdministrationDeleteTestFileDefaultResponse,\n LoadTestAdministrationListTestFiles200Response,\n LoadTestAdministrationListTestFilesDefaultResponse,\n LoadTestAdministrationCreateOrUpdateAppComponents200Response,\n LoadTestAdministrationCreateOrUpdateAppComponents201Response,\n LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestAdministrationGetAppComponents200Response,\n LoadTestAdministrationGetAppComponentsDefaultResponse,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response,\n LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestAdministrationGetServerMetricsConfig200Response,\n LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n TestProfileAdministrationCreateOrUpdateTestProfile200Response,\n TestProfileAdministrationCreateOrUpdateTestProfile201Response,\n TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n TestProfileAdministrationDeleteTestProfile204Response,\n TestProfileAdministrationDeleteTestProfileDefaultResponse,\n TestProfileAdministrationGetTestProfile200Response,\n TestProfileAdministrationGetTestProfileDefaultResponse,\n TestProfileAdministrationListTestProfiles200Response,\n TestProfileAdministrationListTestProfilesDefaultResponse,\n TriggerAdministrationGetTrigger200Response,\n TriggerAdministrationGetTriggerDefaultResponse,\n TriggerAdministrationCreateOrUpdateTrigger200Response,\n TriggerAdministrationCreateOrUpdateTrigger201Response,\n TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n TriggerAdministrationDeleteTrigger204Response,\n TriggerAdministrationDeleteTriggerDefaultResponse,\n TriggerAdministrationListTrigger200Response,\n TriggerAdministrationListTriggerDefaultResponse,\n NotificationRuleAdministrationGetNotificationRule200Response,\n NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response,\n NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n NotificationRuleAdministrationDeleteNotificationRule204Response,\n NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n NotificationRuleAdministrationListNotificationRule200Response,\n NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n LoadTestRunGetTestRun200Response,\n LoadTestRunGetTestRunDefaultResponse,\n LoadTestRunCreateOrUpdateTestRun200Response,\n LoadTestRunCreateOrUpdateTestRun201Response,\n LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n LoadTestRunDeleteTestRun204Response,\n LoadTestRunDeleteTestRunDefaultResponse,\n LoadTestRunListTestRuns200Response,\n LoadTestRunListTestRunsDefaultResponse,\n LoadTestRunGetTestRunFile200Response,\n LoadTestRunGetTestRunFileDefaultResponse,\n LoadTestRunStop200Response,\n LoadTestRunStopDefaultResponse,\n LoadTestRunGetLatestInsights200Response,\n LoadTestRunGetLatestInsightsDefaultResponse,\n LoadTestRunUpdateLatestInsights200Response,\n LoadTestRunUpdateLatestInsightsDefaultResponse,\n LoadTestRunGenerateInsights202Response,\n LoadTestRunGenerateInsightsLogicalResponse,\n LoadTestRunGenerateInsightsDefaultResponse,\n LoadTestRunListMetricNamespaces200Response,\n LoadTestRunListMetricNamespacesDefaultResponse,\n LoadTestRunListMetricDefinitions200Response,\n LoadTestRunListMetricDefinitionsDefaultResponse,\n LoadTestRunListMetrics200Response,\n LoadTestRunListMetricsDefaultResponse,\n LoadTestRunListMetricDimensionValues200Response,\n LoadTestRunListMetricDimensionValuesDefaultResponse,\n LoadTestRunCreateOrUpdateAppComponents200Response,\n LoadTestRunCreateOrUpdateAppComponents201Response,\n LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n LoadTestRunGetAppComponents200Response,\n LoadTestRunGetAppComponentsDefaultResponse,\n LoadTestRunCreateOrUpdateServerMetricsConfig200Response,\n LoadTestRunCreateOrUpdateServerMetricsConfig201Response,\n LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n LoadTestRunGetServerMetricsConfig200Response,\n LoadTestRunGetServerMetricsConfigDefaultResponse,\n TestProfileRunAdministrationGetTestProfileRun200Response,\n TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response,\n TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n TestProfileRunAdministrationDeleteTestProfileRun204Response,\n TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n TestProfileRunAdministrationStop200Response,\n TestProfileRunAdministrationStopDefaultResponse,\n TestProfileRunAdministrationListTestProfileRuns200Response,\n TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n} from \"./responses.js\";\n\nconst responseMap: Record<string, string[]> = {\n \"GET /operations/{operationId}\": [\"200\"],\n \"PATCH /tests/{testId}\": [\"200\", \"201\"],\n \"DELETE /tests/{testId}\": [\"204\"],\n \"GET /tests/{testId}\": [\"200\"],\n \"GET /tests\": [\"200\"],\n \"GET /tests/{testId}:clone\": [\"200\", \"202\"],\n \"POST /tests/{testId}:clone\": [\"202\"],\n \"GET /tests/{testId}:generateTestPlanRecommendations\": [\"200\", \"202\"],\n \"POST /tests/{testId}:generateTestPlanRecommendations\": [\"202\"],\n \"PUT /tests/{testId}/files/{fileName}\": [\"201\"],\n \"GET /tests/{testId}/files/{fileName}\": [\"200\"],\n \"DELETE /tests/{testId}/files/{fileName}\": [\"204\"],\n \"GET /tests/{testId}/files\": [\"200\"],\n \"PATCH /tests/{testId}/app-components\": [\"200\", \"201\"],\n \"GET /tests/{testId}/app-components\": [\"200\"],\n \"PATCH /tests/{testId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /tests/{testId}/server-metrics-config\": [\"200\"],\n \"PATCH /test-profiles/{testProfileId}\": [\"200\", \"201\"],\n \"DELETE /test-profiles/{testProfileId}\": [\"204\"],\n \"GET /test-profiles/{testProfileId}\": [\"200\"],\n \"GET /test-profiles\": [\"200\"],\n \"GET /triggers/{triggerId}\": [\"200\"],\n \"PATCH /triggers/{triggerId}\": [\"200\", \"201\"],\n \"DELETE /triggers/{triggerId}\": [\"204\"],\n \"GET /triggers\": [\"200\"],\n \"GET /notification-rules/{notificationRuleId}\": [\"200\"],\n \"PATCH /notification-rules/{notificationRuleId}\": [\"200\", \"201\"],\n \"DELETE /notification-rules/{notificationRuleId}\": [\"204\"],\n \"GET /notification-rules\": [\"200\"],\n \"GET /test-runs/{testRunId}\": [\"200\"],\n \"PATCH /test-runs/{testRunId}\": [\"200\", \"201\"],\n \"DELETE /test-runs/{testRunId}\": [\"204\"],\n \"GET /test-runs\": [\"200\"],\n \"GET /test-runs/{testRunId}/files/{fileName}\": [\"200\"],\n \"POST /test-runs/{testRunId}:stop\": [\"200\"],\n \"GET /test-runs/{testRunId}/insights/latest\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/insights/latest\": [\"200\"],\n \"GET /test-runs/{testRunId}/insights:generate\": [\"200\", \"202\"],\n \"POST /test-runs/{testRunId}/insights:generate\": [\"202\"],\n \"GET /test-runs/{testRunId}/metric-namespaces\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-definitions\": [\"200\"],\n \"POST /test-runs/{testRunId}/metrics\": [\"200\"],\n \"GET /test-runs/{testRunId}/metric-dimensions/{name}/values\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/app-components\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/app-components\": [\"200\"],\n \"PATCH /test-runs/{testRunId}/server-metrics-config\": [\"200\", \"201\"],\n \"GET /test-runs/{testRunId}/server-metrics-config\": [\"200\"],\n \"GET /test-profile-runs/{testProfileRunId}\": [\"200\"],\n \"PATCH /test-profile-runs/{testProfileRunId}\": [\"200\", \"201\"],\n \"DELETE /test-profile-runs/{testProfileRunId}\": [\"204\"],\n \"POST /test-profile-runs/{testProfileRunId}:stop\": [\"200\"],\n \"GET /test-profile-runs\": [\"200\"],\n};\n\nexport function isUnexpected(\n response: OperationsGetStatus200Response | OperationsGetStatusDefaultResponse,\n): response is OperationsGetStatusDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse,\n): response is LoadTestAdministrationDeleteTestDefaultResponse;\nexport function isUnexpected(\n response: LoadTestAdministrationGetTest200Response | LoadTestAdministrationGetTestDefaultResponse,\n): response is LoadTestAdministrationGetTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse,\n): response is LoadTestAdministrationListTestsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCloneTest202Response\n | LoadTestAdministrationCloneTestLogicalResponse\n | LoadTestAdministrationCloneTestDefaultResponse,\n): response is LoadTestAdministrationCloneTestDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGenerateTestPlanRecommendations202Response\n | LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse,\n): response is LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse,\n): response is LoadTestAdministrationUploadTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse,\n): response is LoadTestAdministrationGetTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse,\n): response is LoadTestAdministrationDeleteTestFileDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse,\n): response is LoadTestAdministrationListTestFilesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse,\n): response is LoadTestAdministrationGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse,\n): response is LoadTestAdministrationGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse,\n): response is TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse,\n): response is TestProfileAdministrationDeleteTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse,\n): response is TestProfileAdministrationGetTestProfileDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse,\n): response is TestProfileAdministrationListTestProfilesDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse,\n): response is TriggerAdministrationGetTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse,\n): response is TriggerAdministrationCreateOrUpdateTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse,\n): response is TriggerAdministrationDeleteTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse,\n): response is TriggerAdministrationListTriggerDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationGetNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response:\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse,\n): response is NotificationRuleAdministrationListNotificationRuleDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRun200Response | LoadTestRunGetTestRunDefaultResponse,\n): response is LoadTestRunGetTestRunDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse,\n): response is LoadTestRunCreateOrUpdateTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunDeleteTestRun204Response | LoadTestRunDeleteTestRunDefaultResponse,\n): response is LoadTestRunDeleteTestRunDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListTestRuns200Response | LoadTestRunListTestRunsDefaultResponse,\n): response is LoadTestRunListTestRunsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetTestRunFile200Response | LoadTestRunGetTestRunFileDefaultResponse,\n): response is LoadTestRunGetTestRunFileDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunStop200Response | LoadTestRunStopDefaultResponse,\n): response is LoadTestRunStopDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetLatestInsights200Response | LoadTestRunGetLatestInsightsDefaultResponse,\n): response is LoadTestRunGetLatestInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunUpdateLatestInsights200Response\n | LoadTestRunUpdateLatestInsightsDefaultResponse,\n): response is LoadTestRunUpdateLatestInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGenerateInsights202Response\n | LoadTestRunGenerateInsightsLogicalResponse\n | LoadTestRunGenerateInsightsDefaultResponse,\n): response is LoadTestRunGenerateInsightsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse,\n): response is LoadTestRunListMetricNamespacesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse,\n): response is LoadTestRunListMetricDefinitionsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunListMetrics200Response | LoadTestRunListMetricsDefaultResponse,\n): response is LoadTestRunListMetricsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse,\n): response is LoadTestRunListMetricDimensionValuesDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse,\n): response is LoadTestRunCreateOrUpdateAppComponentsDefaultResponse;\nexport function isUnexpected(\n response: LoadTestRunGetAppComponents200Response | LoadTestRunGetAppComponentsDefaultResponse,\n): response is LoadTestRunGetAppComponentsDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse,\n): response is LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse,\n): response is LoadTestRunGetServerMetricsConfigDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationGetTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse,\n): response is TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse,\n): response is TestProfileRunAdministrationStopDefaultResponse;\nexport function isUnexpected(\n response:\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is TestProfileRunAdministrationListTestProfileRunsDefaultResponse;\nexport function isUnexpected(\n response:\n | OperationsGetStatus200Response\n | OperationsGetStatusDefaultResponse\n | LoadTestAdministrationCreateOrUpdateTest200Response\n | LoadTestAdministrationCreateOrUpdateTest201Response\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTest204Response\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTest200Response\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTests200Response\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationCloneTest202Response\n | LoadTestAdministrationCloneTestLogicalResponse\n | LoadTestAdministrationCloneTestDefaultResponse\n | LoadTestAdministrationGenerateTestPlanRecommendations202Response\n | LoadTestAdministrationGenerateTestPlanRecommendationsLogicalResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse\n | LoadTestAdministrationUploadTestFile201Response\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFile200Response\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFile204Response\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFiles200Response\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponents200Response\n | LoadTestAdministrationCreateOrUpdateAppComponents201Response\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponents200Response\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig200Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfig201Response\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfig200Response\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfile200Response\n | TestProfileAdministrationCreateOrUpdateTestProfile201Response\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfile204Response\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfile200Response\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfiles200Response\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | TriggerAdministrationGetTrigger200Response\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTrigger200Response\n | TriggerAdministrationCreateOrUpdateTrigger201Response\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTrigger204Response\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTrigger200Response\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRule200Response\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule200Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRule201Response\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRule204Response\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRule200Response\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse\n | LoadTestRunGetTestRun200Response\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRun200Response\n | LoadTestRunCreateOrUpdateTestRun201Response\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRun204Response\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRuns200Response\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFile200Response\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStop200Response\n | LoadTestRunStopDefaultResponse\n | LoadTestRunGetLatestInsights200Response\n | LoadTestRunGetLatestInsightsDefaultResponse\n | LoadTestRunUpdateLatestInsights200Response\n | LoadTestRunUpdateLatestInsightsDefaultResponse\n | LoadTestRunGenerateInsights202Response\n | LoadTestRunGenerateInsightsLogicalResponse\n | LoadTestRunGenerateInsightsDefaultResponse\n | LoadTestRunListMetricNamespaces200Response\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitions200Response\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetrics200Response\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValues200Response\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponents200Response\n | LoadTestRunCreateOrUpdateAppComponents201Response\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponents200Response\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfig200Response\n | LoadTestRunCreateOrUpdateServerMetricsConfig201Response\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfig200Response\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRun200Response\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRun204Response\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStop200Response\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRuns200Response\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse,\n): response is\n | OperationsGetStatusDefaultResponse\n | LoadTestAdministrationCreateOrUpdateTestDefaultResponse\n | LoadTestAdministrationDeleteTestDefaultResponse\n | LoadTestAdministrationGetTestDefaultResponse\n | LoadTestAdministrationListTestsDefaultResponse\n | LoadTestAdministrationCloneTestDefaultResponse\n | LoadTestAdministrationGenerateTestPlanRecommendationsDefaultResponse\n | LoadTestAdministrationUploadTestFileDefaultResponse\n | LoadTestAdministrationGetTestFileDefaultResponse\n | LoadTestAdministrationDeleteTestFileDefaultResponse\n | LoadTestAdministrationListTestFilesDefaultResponse\n | LoadTestAdministrationCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestAdministrationGetAppComponentsDefaultResponse\n | LoadTestAdministrationCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestAdministrationGetServerMetricsConfigDefaultResponse\n | TestProfileAdministrationCreateOrUpdateTestProfileDefaultResponse\n | TestProfileAdministrationDeleteTestProfileDefaultResponse\n | TestProfileAdministrationGetTestProfileDefaultResponse\n | TestProfileAdministrationListTestProfilesDefaultResponse\n | TriggerAdministrationGetTriggerDefaultResponse\n | TriggerAdministrationCreateOrUpdateTriggerDefaultResponse\n | TriggerAdministrationDeleteTriggerDefaultResponse\n | TriggerAdministrationListTriggerDefaultResponse\n | NotificationRuleAdministrationGetNotificationRuleDefaultResponse\n | NotificationRuleAdministrationCreateOrUpdateNotificationRuleDefaultResponse\n | NotificationRuleAdministrationDeleteNotificationRuleDefaultResponse\n | NotificationRuleAdministrationListNotificationRuleDefaultResponse\n | LoadTestRunGetTestRunDefaultResponse\n | LoadTestRunCreateOrUpdateTestRunDefaultResponse\n | LoadTestRunDeleteTestRunDefaultResponse\n | LoadTestRunListTestRunsDefaultResponse\n | LoadTestRunGetTestRunFileDefaultResponse\n | LoadTestRunStopDefaultResponse\n | LoadTestRunGetLatestInsightsDefaultResponse\n | LoadTestRunUpdateLatestInsightsDefaultResponse\n | LoadTestRunGenerateInsightsDefaultResponse\n | LoadTestRunListMetricNamespacesDefaultResponse\n | LoadTestRunListMetricDefinitionsDefaultResponse\n | LoadTestRunListMetricsDefaultResponse\n | LoadTestRunListMetricDimensionValuesDefaultResponse\n | LoadTestRunCreateOrUpdateAppComponentsDefaultResponse\n | LoadTestRunGetAppComponentsDefaultResponse\n | LoadTestRunCreateOrUpdateServerMetricsConfigDefaultResponse\n | LoadTestRunGetServerMetricsConfigDefaultResponse\n | TestProfileRunAdministrationGetTestProfileRunDefaultResponse\n | TestProfileRunAdministrationCreateOrUpdateTestProfileRunDefaultResponse\n | TestProfileRunAdministrationDeleteTestProfileRunDefaultResponse\n | TestProfileRunAdministrationStopDefaultResponse\n | TestProfileRunAdministrationListTestProfileRunsDefaultResponse {\n const lroOriginal = response.headers[\"x-ms-original-url\"];\n const url = new URL(lroOriginal ?? response.request.url);\n const method = response.request.method;\n let pathDetails = responseMap[`${method} ${url.pathname}`];\n if (!pathDetails) {\n pathDetails = getParametrizedPathSuccess(method, url.pathname);\n }\n return !pathDetails.includes(response.status);\n}\n\nfunction getParametrizedPathSuccess(method: string, path: string): string[] {\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: string[] = [];\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(responseMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n"]}
|
package/dist/browser/models.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { OperationState
|
|
1
|
+
import type { OperationState as PollerOperationState } from "@azure/core-lro";
|
|
2
|
+
import type { SimplePollerLike } from "./pollingHelper.js";
|
|
2
3
|
import type { LoadTestAdministrationGetTestFile200Response, LoadTestAdministrationUploadTestFile201Response, LoadTestRunCreateOrUpdateTestRun200Response, LoadTestRunCreateOrUpdateTestRun201Response, LoadTestRunGetTestRun200Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response, TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response, TestProfileRunAdministrationGetTestProfileRun200Response } from "./responses.js";
|
|
3
4
|
/** Load test model. */
|
|
4
5
|
export interface Test {
|
|
@@ -56,6 +57,8 @@ export interface Test {
|
|
|
56
57
|
engineBuiltInIdentityType?: ManagedIdentityType;
|
|
57
58
|
/** Resource Ids of the managed identity built in to load test engines. Required if engineBuiltInIdentityType is UserAssigned. */
|
|
58
59
|
engineBuiltInIdentityIds?: string[];
|
|
60
|
+
/** Preferences for the test. */
|
|
61
|
+
preferences?: TestPreferences;
|
|
59
62
|
}
|
|
60
63
|
/** Pass fail criteria for a test. */
|
|
61
64
|
export interface PassFailCriteria {
|
|
@@ -126,6 +129,8 @@ export interface AutoStopCriteria {
|
|
|
126
129
|
errorRate?: number;
|
|
127
130
|
/** Time window during which the error percentage should be evaluated in seconds. */
|
|
128
131
|
errorRateTimeWindowInSeconds?: number;
|
|
132
|
+
/** Maximum number of virtual users per load testing engine, at which the test run should be automatically stopped. */
|
|
133
|
+
maximumVirtualUsersPerEngine?: number;
|
|
129
134
|
}
|
|
130
135
|
/** Secret */
|
|
131
136
|
export interface Secret {
|
|
@@ -216,6 +221,20 @@ export interface TestFileInfo {
|
|
|
216
221
|
/** Name of the file. */
|
|
217
222
|
fileName: string;
|
|
218
223
|
}
|
|
224
|
+
/** Preferences for the test. */
|
|
225
|
+
export interface TestPreferences {
|
|
226
|
+
/** Enable or disable AI based insights on Test Run Errors. */
|
|
227
|
+
enableAIErrorInsights?: boolean;
|
|
228
|
+
}
|
|
229
|
+
/** Request to clone an existing test into a new test. */
|
|
230
|
+
export interface CloneTestRequest {
|
|
231
|
+
/** Unique identifier for the new test that will be created. */
|
|
232
|
+
newTestId: string;
|
|
233
|
+
/** Display Name override for the newly created test. */
|
|
234
|
+
displayName?: string;
|
|
235
|
+
/** Description override for the newly created test. */
|
|
236
|
+
description?: string;
|
|
237
|
+
}
|
|
219
238
|
/** Test app components */
|
|
220
239
|
export interface TestAppComponents {
|
|
221
240
|
/**
|
|
@@ -300,160 +319,6 @@ export interface FunctionFlexConsumptionResourceConfiguration {
|
|
|
300
319
|
/** HTTP Concurrency for the function app. */
|
|
301
320
|
httpConcurrency?: number;
|
|
302
321
|
}
|
|
303
|
-
/** Load test run model */
|
|
304
|
-
export interface TestRun {
|
|
305
|
-
/** Pass fail criteria for a test. */
|
|
306
|
-
passFailCriteria?: PassFailCriteria;
|
|
307
|
-
/** Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window. */
|
|
308
|
-
autoStopCriteria?: AutoStopCriteria;
|
|
309
|
-
/**
|
|
310
|
-
* Secrets can be stored in an Azure Key Vault or any other secret store. If the
|
|
311
|
-
* secret is stored in an Azure Key Vault, the value should be the secret
|
|
312
|
-
* identifier and the type should be AKV_SECRET_URI. If the secret is stored
|
|
313
|
-
* elsewhere, the secret value should be provided directly and the type should be
|
|
314
|
-
* SECRET_VALUE.
|
|
315
|
-
*/
|
|
316
|
-
secrets?: Record<string, Secret>;
|
|
317
|
-
/** Certificates metadata */
|
|
318
|
-
certificate?: CertificateMetadata;
|
|
319
|
-
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
320
|
-
environmentVariables?: Record<string, string>;
|
|
321
|
-
/** Display name of a testRun. */
|
|
322
|
-
displayName?: string;
|
|
323
|
-
/** Associated test Id. */
|
|
324
|
-
testId?: string;
|
|
325
|
-
/** The test run description. */
|
|
326
|
-
description?: string;
|
|
327
|
-
/**
|
|
328
|
-
* Request data collection level for test run
|
|
329
|
-
*
|
|
330
|
-
* Possible values: "NONE", "ERRORS"
|
|
331
|
-
*/
|
|
332
|
-
requestDataLevel?: RequestDataLevel;
|
|
333
|
-
/** Enable or disable debug level logging. True if debug logs are enabled for the test run. False otherwise */
|
|
334
|
-
debugLogsEnabled?: boolean;
|
|
335
|
-
/**
|
|
336
|
-
* The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).
|
|
337
|
-
*
|
|
338
|
-
* Possible values: "User", "ScheduledTrigger"
|
|
339
|
-
*/
|
|
340
|
-
createdByType?: CreatedByType;
|
|
341
|
-
}
|
|
342
|
-
/** Error details if there is any failure in load test run */
|
|
343
|
-
export interface ErrorDetails {
|
|
344
|
-
}
|
|
345
|
-
/** Test run statistics. */
|
|
346
|
-
export interface TestRunStatistics {
|
|
347
|
-
}
|
|
348
|
-
/** Collection of test run artifacts */
|
|
349
|
-
export interface TestRunArtifacts {
|
|
350
|
-
/** The output artifacts for the test run. */
|
|
351
|
-
outputArtifacts?: TestRunOutputArtifacts;
|
|
352
|
-
}
|
|
353
|
-
/** The input artifacts for the test run. */
|
|
354
|
-
export interface TestRunInputArtifacts {
|
|
355
|
-
/** The load test YAML file that contains the the test configuration */
|
|
356
|
-
configFileInfo?: TestRunFileInfo;
|
|
357
|
-
/** The test script file for the test run */
|
|
358
|
-
testScriptFileInfo?: TestRunFileInfo;
|
|
359
|
-
/** The user properties file */
|
|
360
|
-
userPropFileInfo?: TestRunFileInfo;
|
|
361
|
-
/** The zip file for all input artifacts */
|
|
362
|
-
inputArtifactsZipFileInfo?: TestRunFileInfo;
|
|
363
|
-
/** The config json file for url based test */
|
|
364
|
-
urlTestConfigFileInfo?: TestRunFileInfo;
|
|
365
|
-
}
|
|
366
|
-
/** Test run file info. */
|
|
367
|
-
export interface TestRunFileInfo {
|
|
368
|
-
/** Name of the file. */
|
|
369
|
-
fileName: string;
|
|
370
|
-
}
|
|
371
|
-
/** The output artifacts for the test run. */
|
|
372
|
-
export interface TestRunOutputArtifacts {
|
|
373
|
-
/** The test run results file */
|
|
374
|
-
resultFileInfo?: TestRunFileInfo;
|
|
375
|
-
/** The test run report with metrics */
|
|
376
|
-
logsFileInfo?: TestRunFileInfo;
|
|
377
|
-
/** The container for test run artifacts. */
|
|
378
|
-
artifactsContainerInfo?: ArtifactsContainerInfo;
|
|
379
|
-
/** The report file for the test run. */
|
|
380
|
-
reportFileInfo?: TestRunFileInfo;
|
|
381
|
-
}
|
|
382
|
-
/** Artifacts container info. */
|
|
383
|
-
export interface ArtifactsContainerInfo {
|
|
384
|
-
/** This is a SAS URI to an Azure Storage Container that contains the test run artifacts. */
|
|
385
|
-
url?: string;
|
|
386
|
-
/** Expiry time of the container (RFC 3339 literal format) */
|
|
387
|
-
expireDateTime?: Date | string;
|
|
388
|
-
}
|
|
389
|
-
/** Filters to fetch the set of metric. */
|
|
390
|
-
export interface MetricRequestPayload {
|
|
391
|
-
/**
|
|
392
|
-
* Get metrics for specific dimension values. Example: Metric contains dimension
|
|
393
|
-
* like SamplerName, Error. To retrieve all the time series data where SamplerName
|
|
394
|
-
* is equals to HTTPRequest1 or HTTPRequest2, the DimensionFilter value will be
|
|
395
|
-
* {"SamplerName", ["HTTPRequest1", "HTTPRequest2"}
|
|
396
|
-
*/
|
|
397
|
-
filters?: Array<DimensionFilter>;
|
|
398
|
-
}
|
|
399
|
-
/** Dimension name and values to filter */
|
|
400
|
-
export interface DimensionFilter {
|
|
401
|
-
/** The dimension name */
|
|
402
|
-
name?: string;
|
|
403
|
-
/** The dimension values. Maximum values can be 20. */
|
|
404
|
-
values?: string[];
|
|
405
|
-
}
|
|
406
|
-
/** Test run app component */
|
|
407
|
-
export interface TestRunAppComponents {
|
|
408
|
-
/**
|
|
409
|
-
* Azure resource collection { resource id (fully qualified resource Id e.g
|
|
410
|
-
* subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName})
|
|
411
|
-
* : resource object }
|
|
412
|
-
*/
|
|
413
|
-
components: Record<string, AppComponent>;
|
|
414
|
-
}
|
|
415
|
-
/** Test run server metrics configuration */
|
|
416
|
-
export interface TestRunServerMetricsConfiguration {
|
|
417
|
-
/**
|
|
418
|
-
* Azure resource metrics collection {metric id : metrics object} (Refer :
|
|
419
|
-
* https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition
|
|
420
|
-
* for metric id).
|
|
421
|
-
*/
|
|
422
|
-
metrics?: Record<string, ResourceMetric>;
|
|
423
|
-
}
|
|
424
|
-
/** The Test Profile Run Model. Test Profile Run resource enables you to instantiate an already created test profile and run load tests to get recommendations on the optimal configuration for the target resource. */
|
|
425
|
-
export interface TestProfileRun {
|
|
426
|
-
/** Display name for the test profile run. */
|
|
427
|
-
displayName?: string;
|
|
428
|
-
/** The test profile run description */
|
|
429
|
-
description?: string;
|
|
430
|
-
/** Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated. */
|
|
431
|
-
testProfileId?: string;
|
|
432
|
-
}
|
|
433
|
-
/** Details of a particular test run for a test profile run. */
|
|
434
|
-
export interface TestRunDetail {
|
|
435
|
-
/**
|
|
436
|
-
* Status of the test run.
|
|
437
|
-
*
|
|
438
|
-
* Possible values: "ACCEPTED", "NOTSTARTED", "PROVISIONING", "PROVISIONED", "CONFIGURING", "CONFIGURED", "EXECUTING", "EXECUTED", "DEPROVISIONING", "DEPROVISIONED", "DONE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATION_SUCCESS", "VALIDATION_FAILURE"
|
|
439
|
-
*/
|
|
440
|
-
status: TestRunStatus;
|
|
441
|
-
/** ID of the configuration on which the test ran. */
|
|
442
|
-
configurationId: string;
|
|
443
|
-
/** Key value pair of extra properties associated with the test run. */
|
|
444
|
-
properties: Record<string, string>;
|
|
445
|
-
}
|
|
446
|
-
/** A recommendation object that provides a list of configuration that optimizes its category. */
|
|
447
|
-
export interface TestProfileRunRecommendation {
|
|
448
|
-
/**
|
|
449
|
-
* Category of the recommendation.
|
|
450
|
-
*
|
|
451
|
-
* Possible values: "ThroughputOptimized", "CostOptimized"
|
|
452
|
-
*/
|
|
453
|
-
category: RecommendationCategory;
|
|
454
|
-
/** List of configurations IDs for which the recommendation is applicable. These are a subset of the provided target resource configurations. */
|
|
455
|
-
configurations?: string[];
|
|
456
|
-
}
|
|
457
322
|
/** Trigger model. */
|
|
458
323
|
export interface TriggerParent {
|
|
459
324
|
/** The name of the trigger. */
|
|
@@ -607,6 +472,172 @@ export interface TriggerDisabledNotificationEventFilter extends TestsNotificatio
|
|
|
607
472
|
/** Event type for trigger disabled event. */
|
|
608
473
|
kind: "TriggerDisabled";
|
|
609
474
|
}
|
|
475
|
+
/** Load test run model */
|
|
476
|
+
export interface TestRun {
|
|
477
|
+
/** Pass fail criteria for a test. */
|
|
478
|
+
passFailCriteria?: PassFailCriteria;
|
|
479
|
+
/** Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window. */
|
|
480
|
+
autoStopCriteria?: AutoStopCriteria;
|
|
481
|
+
/**
|
|
482
|
+
* Secrets can be stored in an Azure Key Vault or any other secret store. If the
|
|
483
|
+
* secret is stored in an Azure Key Vault, the value should be the secret
|
|
484
|
+
* identifier and the type should be AKV_SECRET_URI. If the secret is stored
|
|
485
|
+
* elsewhere, the secret value should be provided directly and the type should be
|
|
486
|
+
* SECRET_VALUE.
|
|
487
|
+
*/
|
|
488
|
+
secrets?: Record<string, Secret>;
|
|
489
|
+
/** Certificates metadata */
|
|
490
|
+
certificate?: CertificateMetadata;
|
|
491
|
+
/** Environment variables which are defined as a set of <name,value> pairs. */
|
|
492
|
+
environmentVariables?: Record<string, string>;
|
|
493
|
+
/** Display name of a testRun. */
|
|
494
|
+
displayName?: string;
|
|
495
|
+
/** Associated test Id. */
|
|
496
|
+
testId?: string;
|
|
497
|
+
/** The test run description. */
|
|
498
|
+
description?: string;
|
|
499
|
+
/**
|
|
500
|
+
* Request data collection level for test run
|
|
501
|
+
*
|
|
502
|
+
* Possible values: "NONE", "ERRORS"
|
|
503
|
+
*/
|
|
504
|
+
requestDataLevel?: RequestDataLevel;
|
|
505
|
+
/** Enable or disable debug level logging. True if debug logs are enabled for the test run. False otherwise */
|
|
506
|
+
debugLogsEnabled?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).
|
|
509
|
+
*
|
|
510
|
+
* Possible values: "User", "ScheduledTrigger", "AzurePipelines", "GitHubWorkflows"
|
|
511
|
+
*/
|
|
512
|
+
createdByType?: CreatedByType;
|
|
513
|
+
}
|
|
514
|
+
/** Error details if there is any failure in load test run */
|
|
515
|
+
export interface ErrorDetails {
|
|
516
|
+
}
|
|
517
|
+
/** Test run statistics. */
|
|
518
|
+
export interface TestRunStatistics {
|
|
519
|
+
}
|
|
520
|
+
/** Collection of test run artifacts */
|
|
521
|
+
export interface TestRunArtifacts {
|
|
522
|
+
/** The output artifacts for the test run. */
|
|
523
|
+
outputArtifacts?: TestRunOutputArtifacts;
|
|
524
|
+
}
|
|
525
|
+
/** The input artifacts for the test run. */
|
|
526
|
+
export interface TestRunInputArtifacts {
|
|
527
|
+
/** The load test YAML file that contains the the test configuration */
|
|
528
|
+
configFileInfo?: TestRunFileInfo;
|
|
529
|
+
/** The test script file for the test run */
|
|
530
|
+
testScriptFileInfo?: TestRunFileInfo;
|
|
531
|
+
/** The user properties file */
|
|
532
|
+
userPropFileInfo?: TestRunFileInfo;
|
|
533
|
+
/** The zip file for all input artifacts */
|
|
534
|
+
inputArtifactsZipFileInfo?: TestRunFileInfo;
|
|
535
|
+
/** The config json file for url based test */
|
|
536
|
+
urlTestConfigFileInfo?: TestRunFileInfo;
|
|
537
|
+
}
|
|
538
|
+
/** Test run file info. */
|
|
539
|
+
export interface TestRunFileInfo {
|
|
540
|
+
/** Name of the file. */
|
|
541
|
+
fileName: string;
|
|
542
|
+
}
|
|
543
|
+
/** The output artifacts for the test run. */
|
|
544
|
+
export interface TestRunOutputArtifacts {
|
|
545
|
+
/** The test run results file */
|
|
546
|
+
resultFileInfo?: TestRunFileInfo;
|
|
547
|
+
/** The test run report with metrics */
|
|
548
|
+
logsFileInfo?: TestRunFileInfo;
|
|
549
|
+
/** The container for test run artifacts. */
|
|
550
|
+
artifactsContainerInfo?: ArtifactsContainerInfo;
|
|
551
|
+
/** The report file for the test run. */
|
|
552
|
+
reportFileInfo?: TestRunFileInfo;
|
|
553
|
+
}
|
|
554
|
+
/** Artifacts container info. */
|
|
555
|
+
export interface ArtifactsContainerInfo {
|
|
556
|
+
/** This is a SAS URI to an Azure Storage Container that contains the test run artifacts. */
|
|
557
|
+
url?: string;
|
|
558
|
+
/** Expiry time of the container (RFC 3339 literal format) */
|
|
559
|
+
expireDateTime?: Date | string;
|
|
560
|
+
}
|
|
561
|
+
/** Represents insights for the test run. */
|
|
562
|
+
export interface TestRunInsights {
|
|
563
|
+
/** The rows of the insights. */
|
|
564
|
+
rows?: Record<string, Record<string, string>>;
|
|
565
|
+
}
|
|
566
|
+
/** Represents a column of the test run insight */
|
|
567
|
+
export interface TestRunInsightColumn {
|
|
568
|
+
/** Name of the column. */
|
|
569
|
+
name: string;
|
|
570
|
+
/** The data type of the column. */
|
|
571
|
+
dataType: string;
|
|
572
|
+
}
|
|
573
|
+
/** Filters to fetch the set of metric. */
|
|
574
|
+
export interface MetricRequestPayload {
|
|
575
|
+
/**
|
|
576
|
+
* Get metrics for specific dimension values. Example: Metric contains dimension
|
|
577
|
+
* like SamplerName, Error. To retrieve all the time series data where SamplerName
|
|
578
|
+
* is equals to HTTPRequest1 or HTTPRequest2, the DimensionFilter value will be
|
|
579
|
+
* {"SamplerName", ["HTTPRequest1", "HTTPRequest2"}
|
|
580
|
+
*/
|
|
581
|
+
filters?: Array<DimensionFilter>;
|
|
582
|
+
}
|
|
583
|
+
/** Dimension name and values to filter */
|
|
584
|
+
export interface DimensionFilter {
|
|
585
|
+
/** The dimension name */
|
|
586
|
+
name?: string;
|
|
587
|
+
/** The dimension values. Maximum values can be 20. */
|
|
588
|
+
values?: string[];
|
|
589
|
+
}
|
|
590
|
+
/** Test run app component */
|
|
591
|
+
export interface TestRunAppComponents {
|
|
592
|
+
/**
|
|
593
|
+
* Azure resource collection { resource id (fully qualified resource Id e.g
|
|
594
|
+
* subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.LoadTestService/loadtests/{resName})
|
|
595
|
+
* : resource object }
|
|
596
|
+
*/
|
|
597
|
+
components: Record<string, AppComponent>;
|
|
598
|
+
}
|
|
599
|
+
/** Test run server metrics configuration */
|
|
600
|
+
export interface TestRunServerMetricsConfiguration {
|
|
601
|
+
/**
|
|
602
|
+
* Azure resource metrics collection {metric id : metrics object} (Refer :
|
|
603
|
+
* https://learn.microsoft.com/en-us/rest/api/monitor/metric-definitions/list#metricdefinition
|
|
604
|
+
* for metric id).
|
|
605
|
+
*/
|
|
606
|
+
metrics?: Record<string, ResourceMetric>;
|
|
607
|
+
}
|
|
608
|
+
/** The Test Profile Run Model. Test Profile Run resource enables you to instantiate an already created test profile and run load tests to get recommendations on the optimal configuration for the target resource. */
|
|
609
|
+
export interface TestProfileRun {
|
|
610
|
+
/** Display name for the test profile run. */
|
|
611
|
+
displayName?: string;
|
|
612
|
+
/** The test profile run description */
|
|
613
|
+
description?: string;
|
|
614
|
+
/** Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated. */
|
|
615
|
+
testProfileId?: string;
|
|
616
|
+
}
|
|
617
|
+
/** Details of a particular test run for a test profile run. */
|
|
618
|
+
export interface TestRunDetail {
|
|
619
|
+
/**
|
|
620
|
+
* Status of the test run.
|
|
621
|
+
*
|
|
622
|
+
* Possible values: "ACCEPTED", "NOTSTARTED", "PROVISIONING", "PROVISIONED", "CONFIGURING", "CONFIGURED", "EXECUTING", "EXECUTED", "DEPROVISIONING", "DEPROVISIONED", "DONE", "CANCELLING", "CANCELLED", "FAILED", "VALIDATION_SUCCESS", "VALIDATION_FAILURE"
|
|
623
|
+
*/
|
|
624
|
+
status: TestRunStatus;
|
|
625
|
+
/** ID of the configuration on which the test ran. */
|
|
626
|
+
configurationId: string;
|
|
627
|
+
/** Key value pair of extra properties associated with the test run. */
|
|
628
|
+
properties: Record<string, string>;
|
|
629
|
+
}
|
|
630
|
+
/** A recommendation object that provides a list of configuration that optimizes its category. */
|
|
631
|
+
export interface TestProfileRunRecommendation {
|
|
632
|
+
/**
|
|
633
|
+
* Category of the recommendation.
|
|
634
|
+
*
|
|
635
|
+
* Possible values: "ThroughputOptimized", "CostOptimized"
|
|
636
|
+
*/
|
|
637
|
+
category: RecommendationCategory;
|
|
638
|
+
/** List of configurations IDs for which the recommendation is applicable. These are a subset of the provided target resource configurations. */
|
|
639
|
+
configurations?: string[];
|
|
640
|
+
}
|
|
610
641
|
/** Configurations of a target resource. This varies with the kind of resource. */
|
|
611
642
|
export type TargetResourceConfigurations = TargetResourceConfigurationsParent | FunctionFlexConsumptionTargetResourceConfigurations;
|
|
612
643
|
/** Trigger model. */
|
|
@@ -617,6 +648,8 @@ export type Recurrence = RecurrenceParent | DailyRecurrence | HourlyRecurrence |
|
|
|
617
648
|
export type NotificationRule = NotificationRuleParent | TestsNotificationRule;
|
|
618
649
|
/** The notification event filter for Tests scope. */
|
|
619
650
|
export type TestsNotificationEventFilter = TestsNotificationEventFilterParent | TestRunEndedNotificationEventFilter | TestRunStartedNotificationEventFilter | TriggerCompletedNotificationEventFilter | TriggerDisabledNotificationEventFilter;
|
|
651
|
+
/** Alias for OperationState */
|
|
652
|
+
export type OperationState = string;
|
|
620
653
|
/** Alias for PFMetrics */
|
|
621
654
|
export type PFMetrics = string;
|
|
622
655
|
/** Alias for PassFailAggregationFunction */
|
|
@@ -639,20 +672,6 @@ export type TestKind = string;
|
|
|
639
672
|
export type ManagedIdentityType = string;
|
|
640
673
|
/** Alias for ResourceKind */
|
|
641
674
|
export type ResourceKind = string;
|
|
642
|
-
/** Alias for PassFailTestResult */
|
|
643
|
-
export type PassFailTestResult = string;
|
|
644
|
-
/** Alias for TestRunStatus */
|
|
645
|
-
export type TestRunStatus = string;
|
|
646
|
-
/** Alias for RequestDataLevel */
|
|
647
|
-
export type RequestDataLevel = string;
|
|
648
|
-
/** Alias for CreatedByType */
|
|
649
|
-
export type CreatedByType = string;
|
|
650
|
-
/** Alias for TimeGrain */
|
|
651
|
-
export type TimeGrain = string;
|
|
652
|
-
/** Alias for TestProfileRunStatus */
|
|
653
|
-
export type TestProfileRunStatus = string;
|
|
654
|
-
/** Alias for RecommendationCategory */
|
|
655
|
-
export type RecommendationCategory = string;
|
|
656
675
|
/** Alias for TriggerType */
|
|
657
676
|
export type TriggerType = string;
|
|
658
677
|
/** Alias for TriggerState */
|
|
@@ -665,19 +684,33 @@ export type WeekDays = string;
|
|
|
665
684
|
export type NotificationScopeType = string;
|
|
666
685
|
/** Alias for NotificationEventType */
|
|
667
686
|
export type NotificationEventType = string;
|
|
687
|
+
/** Alias for TestRunStatus */
|
|
688
|
+
export type TestRunStatus = string;
|
|
689
|
+
/** Alias for PassFailTestResult */
|
|
690
|
+
export type PassFailTestResult = string;
|
|
691
|
+
/** Alias for RequestDataLevel */
|
|
692
|
+
export type RequestDataLevel = string;
|
|
693
|
+
/** Alias for CreatedByType */
|
|
694
|
+
export type CreatedByType = string;
|
|
695
|
+
/** Alias for TimeGrain */
|
|
696
|
+
export type TimeGrain = string;
|
|
697
|
+
/** Alias for TestProfileRunStatus */
|
|
698
|
+
export type TestProfileRunStatus = string;
|
|
699
|
+
/** Alias for RecommendationCategory */
|
|
700
|
+
export type RecommendationCategory = string;
|
|
668
701
|
/** Added Poller Types **/
|
|
669
702
|
/**
|
|
670
703
|
* Poller for File Upload and Validation
|
|
671
704
|
*/
|
|
672
|
-
export type FileUploadAndValidatePoller = SimplePollerLike<
|
|
705
|
+
export type FileUploadAndValidatePoller = SimplePollerLike<PollerOperationState<LoadTestAdministrationGetTestFile200Response>, LoadTestAdministrationGetTestFile200Response>;
|
|
673
706
|
/**
|
|
674
707
|
* Poller for Test Run Completion
|
|
675
708
|
*/
|
|
676
|
-
export type TestRunCompletionPoller = SimplePollerLike<
|
|
709
|
+
export type TestRunCompletionPoller = SimplePollerLike<PollerOperationState<LoadTestRunGetTestRun200Response>, LoadTestRunGetTestRun200Response>;
|
|
677
710
|
/**
|
|
678
711
|
* Poller for Test Profile Run Completion
|
|
679
712
|
*/
|
|
680
|
-
export type TestProfileRunCompletionPoller = SimplePollerLike<
|
|
713
|
+
export type TestProfileRunCompletionPoller = SimplePollerLike<PollerOperationState<TestProfileRunAdministrationGetTestProfileRun200Response>, TestProfileRunAdministrationGetTestProfileRun200Response>;
|
|
681
714
|
export type TestRunCreateOrUpdateSuccessResponse = LoadTestRunCreateOrUpdateTestRun200Response | LoadTestRunCreateOrUpdateTestRun201Response;
|
|
682
715
|
export type TestProfileRunCreateOrUpdateSuccessResponse = TestProfileRunAdministrationCreateOrUpdateTestProfileRun200Response | TestProfileRunAdministrationCreateOrUpdateTestProfileRun201Response;
|
|
683
716
|
export type TestUploadFileSuccessResponse = LoadTestAdministrationUploadTestFile201Response;
|