Skip to content

Commit

Permalink
test: use fully qualified request type name in tests (#58)
Browse files Browse the repository at this point in the history
* 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

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Sep 23, 2022
1 parent 5a43fb2 commit e49154e
Showing 1 changed file with 76 additions and 49 deletions.
125 changes: 76 additions & 49 deletions packages/google-cloud-ids/test/gapic_i_d_s_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.GetEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.GetEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -295,7 +298,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.GetEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.GetEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -339,7 +345,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.GetEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.GetEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -367,7 +376,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.GetEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('GetEndpointRequest', ['name']);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.GetEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -385,9 +397,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.CreateEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.CreateEndpointRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -417,9 +430,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.CreateEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.CreateEndpointRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -470,9 +484,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.CreateEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.CreateEndpointRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -500,9 +515,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.CreateEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateEndpointRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.CreateEndpointRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -575,9 +591,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.DeleteEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.DeleteEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -607,9 +624,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.DeleteEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.DeleteEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -660,9 +678,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.DeleteEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.DeleteEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -690,9 +709,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.DeleteEndpointRequest()
);
const defaultValue1 = getTypeDefaultValue('DeleteEndpointRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.DeleteEndpointRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -765,9 +785,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -797,9 +818,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -845,9 +867,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -875,9 +898,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -925,9 +949,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -970,9 +995,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -1012,9 +1038,10 @@ describe('v1.IDSClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.ids.v1.ListEndpointsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListEndpointsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.ids.v1.ListEndpointsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down

0 comments on commit e49154e

Please sign in to comment.