Skip to content

Commit

Permalink
feat(testing): update the API
Browse files Browse the repository at this point in the history
#### testing:v1
The following keys were added:
- schemas.IosDeviceFile.description
- schemas.IosDeviceFile.id
- schemas.IosDeviceFile.properties.bundleId.description
- schemas.IosDeviceFile.properties.bundleId.type
- schemas.IosDeviceFile.properties.content.$ref
- schemas.IosDeviceFile.properties.content.description
- schemas.IosDeviceFile.properties.devicePath.description
- schemas.IosDeviceFile.properties.devicePath.type
- schemas.IosDeviceFile.type
- schemas.IosTestSetup.properties.pullDirectories.description
- schemas.IosTestSetup.properties.pullDirectories.items.$ref
- schemas.IosTestSetup.properties.pullDirectories.type
- schemas.IosTestSetup.properties.pushFiles.description
- schemas.IosTestSetup.properties.pushFiles.items.$ref
- schemas.IosTestSetup.properties.pushFiles.type
  • Loading branch information
yoshi-automation authored and sofisl committed Oct 9, 2020
1 parent ebf9000 commit 394fdb4
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
35 changes: 34 additions & 1 deletion discovery/testing-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@
}
}
},
"revision": "20200918",
"revision": "20201001",
"rootUrl": "https://testing.googleapis.com/",
"schemas": {
"Account": {
Expand Down Expand Up @@ -1106,6 +1106,25 @@
},
"type": "object"
},
"IosDeviceFile": {
"description": "A file or directory to install on the device before the test starts.",
"id": "IosDeviceFile",
"properties": {
"bundleId": {
"description": "The bundle id of the app where this file lives. iOS apps sandbox their own filesystem, so app files must specify which app installed on the device.",
"type": "string"
},
"content": {
"$ref": "FileReference",
"description": "The source file"
},
"devicePath": {
"description": "Location of the file on the device, inside the app's sandboxed filesystem",
"type": "string"
}
},
"type": "object"
},
"IosDeviceList": {
"description": "A list of iOS device configurations in which the test is to be executed.",
"id": "IosDeviceList",
Expand Down Expand Up @@ -1245,6 +1264,20 @@
"networkProfile": {
"description": "The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.",
"type": "string"
},
"pullDirectories": {
"description": "List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app's filesystem (e.g. /Documents) by specifying the bundle id.",
"items": {
"$ref": "IosDeviceFile"
},
"type": "array"
},
"pushFiles": {
"description": "List of files to push to the device before starting the test.",
"items": {
"$ref": "IosDeviceFile"
},
"type": "array"
}
},
"type": "object"
Expand Down
25 changes: 25 additions & 0 deletions src/apis/testing/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,23 @@ export namespace testing_v1 {
*/
xcodeVersions?: Schema$XcodeVersion[];
}
/**
* A file or directory to install on the device before the test starts.
*/
export interface Schema$IosDeviceFile {
/**
* The bundle id of the app where this file lives. iOS apps sandbox their own filesystem, so app files must specify which app installed on the device.
*/
bundleId?: string | null;
/**
* The source file
*/
content?: Schema$FileReference;
/**
* Location of the file on the device, inside the app's sandboxed filesystem
*/
devicePath?: string | null;
}
/**
* A list of iOS device configurations in which the test is to be executed.
*/
Expand Down Expand Up @@ -813,6 +830,14 @@ export namespace testing_v1 {
* The network traffic profile used for running the test. Available network profiles can be queried by using the NETWORK_CONFIGURATION environment type when calling TestEnvironmentDiscoveryService.GetTestEnvironmentCatalog.
*/
networkProfile?: string | null;
/**
* List of directories on the device to upload to Cloud Storage at the end of the test. Directories should either be in a shared directory (e.g. /private/var/mobile/Media) or within an accessible directory inside the app's filesystem (e.g. /Documents) by specifying the bundle id.
*/
pullDirectories?: Schema$IosDeviceFile[];
/**
* List of files to push to the device before starting the test.
*/
pushFiles?: Schema$IosDeviceFile[];
}
/**
* An iOS version.
Expand Down

0 comments on commit 394fdb4

Please sign in to comment.