@maxim_mazurok/gapi.client.testing-v1 0.0.20230519 → 0.0.20230523
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/index.d.ts +13 -14
- package/package.json +1 -1
- package/tests.ts +6 -6
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://testing.googleapis.com/$discovery/rest?version=v1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230523
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -779,13 +779,13 @@ declare namespace gapi.client {
|
|
|
779
779
|
* time, up to the maximum shard limit (described below). To guarantee at least one test case for each shard, the number of shards will not exceed the number of test cases. Shard
|
|
780
780
|
* duration will be exceeded if: - The maximum shard limit is reached and there is more calculated test time remaining to allocate into shards. - Any individual test is estimated to be
|
|
781
781
|
* longer than the targeted shard duration. Shard duration is not guaranteed because smart sharding uses test case history and default durations which may not be accurate. The rules
|
|
782
|
-
* for finding the test case timing records are: - If the service has
|
|
783
|
-
* the average duration of other known test cases will be used. - If there are no previous test case timing records available, the test case is
|
|
784
|
-
*
|
|
785
|
-
*
|
|
786
|
-
* finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more
|
|
787
|
-
* virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not
|
|
788
|
-
* exceed the number of test cases. Each shard created
|
|
782
|
+
* for finding the test case timing records are: - If the service has processed a test case in the last 30 days, the record of the latest successful test case will be used. - For new
|
|
783
|
+
* test cases, the average duration of other known test cases will be used. - If there are no previous test case timing records available, the default test case duration is 15 seconds.
|
|
784
|
+
* Because the actual shard duration can exceed the targeted shard duration, we recommend that you set the targeted value at least 5 minutes less than the maximum allowed test timeout
|
|
785
|
+
* (45 minutes for physical devices and 60 minutes for virtual), or that you use the custom test timeout value that you set. This approach avoids cancelling the shard before all tests
|
|
786
|
+
* can finish. Note that there is a limit for maximum number of shards. When you select one or more physical devices, the number of shards must be <= 50. When you select one or more
|
|
787
|
+
* ARM virtual devices, it must be <= 100. When you select only x86 virtual devices, it must be <= 500. To guarantee at least one test case for per shard, the number of shards will not
|
|
788
|
+
* exceed the number of test cases. Each shard created counts toward daily test quota.
|
|
789
789
|
*/
|
|
790
790
|
targetedShardDuration?:
|
|
791
791
|
string;
|
|
@@ -1190,9 +1190,9 @@ declare namespace gapi.client {
|
|
|
1190
1190
|
}): Request<CancelTestMatrixResponse>;
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most
|
|
1193
|
-
* 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix.
|
|
1194
|
-
* GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request
|
|
1195
|
-
* malformed or if the matrix tries to use too many simultaneous devices.
|
|
1193
|
+
* 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call
|
|
1194
|
+
* to GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request
|
|
1195
|
+
* is malformed or if the matrix tries to use too many simultaneous devices.
|
|
1196
1196
|
*/
|
|
1197
1197
|
create(request: {
|
|
1198
1198
|
/** V1 error format. */
|
|
@@ -1288,9 +1288,8 @@ declare namespace gapi.client {
|
|
|
1288
1288
|
body: TestMatrix): Request<TestMatrix>;
|
|
1289
1289
|
/**
|
|
1290
1290
|
* Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the
|
|
1291
|
-
* resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may
|
|
1292
|
-
*
|
|
1293
|
-
* exist
|
|
1291
|
+
* resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical
|
|
1292
|
+
* error codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
|
|
1294
1293
|
*/
|
|
1295
1294
|
get(request?: {
|
|
1296
1295
|
/** V1 error format. */
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230523
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -47,9 +47,9 @@ gapi.load('client', async () => {
|
|
|
47
47
|
});
|
|
48
48
|
/**
|
|
49
49
|
* Creates and runs a matrix of tests according to the given specifications. Unsupported environments will be returned in the state UNSUPPORTED. A test matrix is limited to use at most
|
|
50
|
-
* 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix.
|
|
51
|
-
* May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is
|
|
52
|
-
* matrix tries to use too many simultaneous devices.
|
|
50
|
+
* 2000 devices in parallel. The returned matrix will not yet contain the executions that will be created for this matrix. Execution creation happens later on and will require a call to
|
|
51
|
+
* GetTestMatrix. May return any of the following canonical error codes: - PERMISSION_DENIED - if the user is not authorized to write to project - INVALID_ARGUMENT - if the request is
|
|
52
|
+
* malformed or if the matrix tries to use too many simultaneous devices.
|
|
53
53
|
*/
|
|
54
54
|
await gapi.client.testing.projects.testMatrices.create({
|
|
55
55
|
projectId: "Test string",
|
|
@@ -547,8 +547,8 @@ gapi.load('client', async () => {
|
|
|
547
547
|
});
|
|
548
548
|
/**
|
|
549
549
|
* Checks the status of a test matrix and the executions once they are created. The test matrix will contain the list of test executions to run if and only if the
|
|
550
|
-
* resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may
|
|
551
|
-
*
|
|
550
|
+
* resultStorage.toolResultsExecution fields have been populated. Note: Flaky test executions may be added to the matrix at a later stage. May return any of the following canonical error
|
|
551
|
+
* codes: - PERMISSION_DENIED - if the user is not authorized to read project - INVALID_ARGUMENT - if the request is malformed - NOT_FOUND - if the Test Matrix does not exist
|
|
552
552
|
*/
|
|
553
553
|
await gapi.client.testing.projects.testMatrices.get({
|
|
554
554
|
projectId: "Test string",
|