test_files
Creates, updates, deletes, gets or lists a test_files resource.
Overview
| Name | test_files |
| Type | Resource |
| Id | azure.developer_loadtesting.test_files |
Fields
The following fields are returned by SELECT queries:
- get_test_file
- list_test_files
| Name | Datatype | Description |
|---|---|---|
expireDateTime | string (date-time) | Expiry time of the file (RFC 3339 literal format). |
fileName | string | Name of the file. Required. |
fileType | string | File type. Known values are: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", and "TEST_PLAN_RECOMMENDATIONS". (JMX_FILE, USER_PROPERTIES, ADDITIONAL_ARTIFACTS, ZIPPED_ARTIFACTS, URL_TEST_CONFIG, TEST_SCRIPT, BROWSER_RECORDING, TEST_PLAN_RECOMMENDATIONS) |
url | string | File URL. |
validationFailureDetails | string | Validation failure error details. |
validationStatus | string | Validation status of the file. Known values are: "NOT_VALIDATED", "VALIDATION_SUCCESS", "VALIDATION_FAILURE", "VALIDATION_INITIATED", and "VALIDATION_NOT_REQUIRED". (NOT_VALIDATED, VALIDATION_SUCCESS, VALIDATION_FAILURE, VALIDATION_INITIATED, VALIDATION_NOT_REQUIRED) |
| Name | Datatype | Description |
|---|---|---|
expireDateTime | string (date-time) | Expiry time of the file (RFC 3339 literal format). |
fileName | string | Name of the file. Required. |
fileType | string | File type. Known values are: "JMX_FILE", "USER_PROPERTIES", "ADDITIONAL_ARTIFACTS", "ZIPPED_ARTIFACTS", "URL_TEST_CONFIG", "TEST_SCRIPT", "BROWSER_RECORDING", and "TEST_PLAN_RECOMMENDATIONS". (JMX_FILE, USER_PROPERTIES, ADDITIONAL_ARTIFACTS, ZIPPED_ARTIFACTS, URL_TEST_CONFIG, TEST_SCRIPT, BROWSER_RECORDING, TEST_PLAN_RECOMMENDATIONS) |
url | string | File URL. |
validationFailureDetails | string | Validation failure error details. |
validationStatus | string | Validation status of the file. Known values are: "NOT_VALIDATED", "VALIDATION_SUCCESS", "VALIDATION_FAILURE", "VALIDATION_INITIATED", and "VALIDATION_NOT_REQUIRED". (NOT_VALIDATED, VALIDATION_SUCCESS, VALIDATION_FAILURE, VALIDATION_INITIATED, VALIDATION_NOT_REQUIRED) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_test_file | select | test_id, file_name, endpoint | Get all the files that are associated with a test. Get all the files that are associated with a test. | |
list_test_files | select | test_id, endpoint | Get all test files. Get all test files. | |
delete_test_file | delete | test_id, file_name, endpoint | Delete file by the file name for a test. Delete file by the file name for a test. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | The service endpoint host (no scheme), e.g. myaccount.table.cosmos.azure.com:443 - value of the client endpoint parameter. (default: ) |
file_name | string | Name of the file. Required. |
test_id | string | Unique test identifier for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters. Required. |
SELECT examples
- get_test_file
- list_test_files
Get all the files that are associated with a test. Get all the files that are associated with a test.
SELECT
expireDateTime,
fileName,
fileType,
url,
validationFailureDetails,
validationStatus
FROM azure.developer_loadtesting.test_files
WHERE test_id = '{{ test_id }}' -- required
AND file_name = '{{ file_name }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;
Get all test files. Get all test files.
SELECT
expireDateTime,
fileName,
fileType,
url,
validationFailureDetails,
validationStatus
FROM azure.developer_loadtesting.test_files
WHERE test_id = '{{ test_id }}' -- required
AND endpoint = '{{ endpoint }}' -- required
;
DELETE examples
- delete_test_file
Delete file by the file name for a test. Delete file by the file name for a test.
DELETE FROM azure.developer_loadtesting.test_files
WHERE test_id = '{{ test_id }}' --required
AND file_name = '{{ file_name }}' --required
AND endpoint = '{{ endpoint }}' --required
;