Skip to content

Commit

Permalink
test: use fully qualified request type name in tests (#20)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 477248447

Source-Link: googleapis/googleapis@4689c73

Source-Link: googleapis/googleapis-gen@c405978
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzQwNTk3ODZhNWNkODA1YTAxNTFkOTViNDc3ZmJjNDg2YmNiY2VkYyJ9

test: use fully qualified request type name in tests
PiperOrigin-RevId: 475685359

Source-Link: googleapis/googleapis@7a12973

Source-Link: googleapis/googleapis-gen@370c729
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzcwYzcyOWUyYmEwNjJhMTY3NDQ5YzI3ODgyYmE1ZjM3OWM1YzM0ZCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Sep 29, 2022
1 parent a5224fa commit 1c207ba
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 100 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'CreateMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -270,7 +270,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'CreateMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -317,7 +317,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'CreateMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -351,7 +351,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'CreateMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest',
['parent']
);
request.parent = defaultValue1;
Expand All @@ -374,9 +374,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationWorkflowRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -405,9 +406,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationWorkflowRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -451,9 +453,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationWorkflowRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -481,9 +484,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationWorkflowRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -502,7 +506,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'DeleteMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -534,7 +538,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'DeleteMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -581,7 +585,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'DeleteMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -615,7 +619,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'DeleteMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.DeleteMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand All @@ -639,7 +643,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'StartMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -671,7 +675,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'StartMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -718,7 +722,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'StartMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand Down Expand Up @@ -752,7 +756,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest()
);
const defaultValue1 = getTypeDefaultValue(
'StartMigrationWorkflowRequest',
'.google.cloud.bigquery.migration.v2.StartMigrationWorkflowRequest',
['name']
);
request.name = defaultValue1;
Expand All @@ -775,9 +779,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationSubtaskRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -806,9 +811,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationSubtaskRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -852,9 +858,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationSubtaskRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -882,9 +889,10 @@ describe('v2.MigrationServiceClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest()
);
const defaultValue1 = getTypeDefaultValue('GetMigrationSubtaskRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.bigquery.migration.v2.GetMigrationSubtaskRequest',
['name']
);
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -903,7 +911,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -943,7 +951,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1000,7 +1008,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1034,7 +1042,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1103,7 +1111,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1161,7 +1169,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1215,7 +1223,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationWorkflowsRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationWorkflowsRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1262,7 +1270,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1302,7 +1310,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1359,7 +1367,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1393,7 +1401,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1462,7 +1470,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1520,7 +1528,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down Expand Up @@ -1574,7 +1582,7 @@ describe('v2.MigrationServiceClient', () => {
new protos.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest()
);
const defaultValue1 = getTypeDefaultValue(
'ListMigrationSubtasksRequest',
'.google.cloud.bigquery.migration.v2.ListMigrationSubtasksRequest',
['parent']
);
request.parent = defaultValue1;
Expand Down
Loading

0 comments on commit 1c207ba

Please sign in to comment.