in integration_test/functions/src/testLab-utils.ts [61:100]
function createTestMatrix(
accessToken: admin.GoogleOAuthAccessToken,
projectId: string,
testId: string,
device: AndroidDevice
): Promise<string> {
const options = requestOptions(
accessToken,
'POST',
'/v1/projects/' + projectId + '/testMatrices'
);
const body = {
projectId,
testSpecification: {
androidRoboTest: {
appApk: {
gcsPath: 'gs://path/to/non-existing-app.apk',
},
},
},
environmentMatrix: {
androidDeviceList: {
androidDevices: [device],
},
},
resultStorage: {
googleCloudStorage: {
gcsPath: 'gs://' + admin.storage().bucket().name,
},
},
clientInfo: {
name: 'CloudFunctionsSDKIntegrationTest',
clientInfoDetails: {
key: 'testId',
value: testId,
},
},
};
return utils.makeRequest(options, JSON.stringify(body));
}