@maxim_mazurok/gapi.client.testing-v1 0.0.20230519 → 0.0.20230526

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.
Files changed (3) hide show
  1. package/index.d.ts +19 -14
  2. package/package.json +1 -1
  3. package/tests.ts +10 -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: 20230519
12
+ // Revision: 20230526
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -635,6 +635,9 @@ declare namespace gapi.client {
635
635
  configurations?:
636
636
  NetworkConfiguration[];
637
637
  }
638
+ // tslint:disable-next-line:no-empty-interface
639
+ interface NoActivityIntent {
640
+ }
638
641
  interface ObbFile {
639
642
  /** Required. Opaque Binary Blob (OBB) file(s) to install on the device. */
640
643
  obb?:
@@ -733,6 +736,9 @@ declare namespace gapi.client {
733
736
  /** An intent that starts the main launcher activity. */
734
737
  launcherActivity?:
735
738
  any;
739
+ /** Skips the starting activity */
740
+ noActivity?:
741
+ any;
736
742
  /** An intent that starts an activity with specific details. */
737
743
  startActivity?:
738
744
  StartActivityIntent;
@@ -779,13 +785,13 @@ declare namespace gapi.client {
779
785
  * 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
786
  * 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
787
  * 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 seen a test case in the last 30 days, the record of the latest successful one will be used. - For new test cases,
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 considered to be 15 seconds long by
784
- * default. Because the actual shard duration can exceed the targeted shard duration, we recommend setting the targeted value at least 5 minutes less than the maximum allowed test
785
- * timeout (45 minutes for physical devices and 60 minutes for virtual), or using the custom test timeout value you set. This approach avoids cancelling the shard before all tests can
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 ARM
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 will count toward daily test quota.
788
+ * 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
789
+ * 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.
790
+ * 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
791
+ * (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
792
+ * 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
793
+ * 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
794
+ * exceed the number of test cases. Each shard created counts toward daily test quota.
789
795
  */
790
796
  targetedShardDuration?:
791
797
  string;
@@ -1190,9 +1196,9 @@ declare namespace gapi.client {
1190
1196
  }): Request<CancelTestMatrixResponse>;
1191
1197
  /**
1192
1198
  * 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. That happens later on and will require a call to
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 is
1195
- * malformed or if the matrix tries to use too many simultaneous devices.
1199
+ * 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
1200
+ * 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
1201
+ * is malformed or if the matrix tries to use too many simultaneous devices.
1196
1202
  */
1197
1203
  create(request: {
1198
1204
  /** V1 error format. */
@@ -1288,9 +1294,8 @@ declare namespace gapi.client {
1288
1294
  body: TestMatrix): Request<TestMatrix>;
1289
1295
  /**
1290
1296
  * 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 still be added to the matrix at a later stage. May return any of the following
1292
- * canonical 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
1293
- * exist
1297
+ * 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
1298
+ * 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
1299
  */
1295
1300
  get(request?: {
1296
1301
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.testing-v1",
3
- "version": "0.0.20230519",
3
+ "version": "0.0.20230526",
4
4
  "description": "TypeScript typings for Cloud Testing API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230519
6
+ // Revision: 20230526
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. That happens later on and will require a call to GetTestMatrix.
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 malformed or if the
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",
@@ -223,6 +223,8 @@ gapi.load('client', async () => {
223
223
  {
224
224
  launcherActivity: {
225
225
  },
226
+ noActivity: {
227
+ },
226
228
  startActivity: {
227
229
  action: "Test string",
228
230
  categories: [
@@ -421,6 +423,8 @@ gapi.load('client', async () => {
421
423
  {
422
424
  launcherActivity: {
423
425
  },
426
+ noActivity: {
427
+ },
424
428
  startActivity: {
425
429
  action: "Test string",
426
430
  categories: [
@@ -547,8 +551,8 @@ gapi.load('client', async () => {
547
551
  });
548
552
  /**
549
553
  * 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 still be added to the matrix at a later stage. May return any of the following canonical
551
- * 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
554
+ * 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
555
+ * 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
556
  */
553
557
  await gapi.client.testing.projects.testMatrices.get({
554
558
  projectId: "Test string",