Skip to content

Commit

Permalink
test: use fully qualified request type name in tests (#414)
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 22, 2022
1 parent 21305c8 commit 4a4e9f4
Showing 1 changed file with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,10 @@ describe('v1beta1.PhishingProtectionServiceV1Beta1Client', () => {
const request = generateSampleMessage(
new protos.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest()
);
const defaultValue1 = getTypeDefaultValue('ReportPhishingRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -239,9 +240,10 @@ describe('v1beta1.PhishingProtectionServiceV1Beta1Client', () => {
const request = generateSampleMessage(
new protos.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest()
);
const defaultValue1 = getTypeDefaultValue('ReportPhishingRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -288,9 +290,10 @@ describe('v1beta1.PhishingProtectionServiceV1Beta1Client', () => {
const request = generateSampleMessage(
new protos.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest()
);
const defaultValue1 = getTypeDefaultValue('ReportPhishingRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -321,9 +324,10 @@ describe('v1beta1.PhishingProtectionServiceV1Beta1Client', () => {
const request = generateSampleMessage(
new protos.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest()
);
const defaultValue1 = getTypeDefaultValue('ReportPhishingRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.phishingprotection.v1beta1.ReportPhishingRequest',
['parent']
);
request.parent = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand Down

0 comments on commit 4a4e9f4

Please sign in to comment.