Skip to content

Commit

Permalink
build: use fully qualified request type name in tests (#168)
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

* 🦉 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 5c53a83 commit 6912e77
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 244 deletions.
133 changes: 76 additions & 57 deletions packages/google-cloud-workflows-executions/test/gapic_executions_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CreateExecutionRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -265,9 +266,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CreateExecutionRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -311,9 +313,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CreateExecutionRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -341,9 +344,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CreateExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CreateExecutionRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CreateExecutionRequest',
['parent']
);
request.parent = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -361,9 +365,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.GetExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.GetExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -391,9 +396,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.GetExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.GetExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -437,9 +443,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.GetExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.GetExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -467,9 +474,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.GetExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('GetExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.GetExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -487,9 +495,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CancelExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -517,9 +526,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CancelExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedResponse = generateSampleMessage(
Expand Down Expand Up @@ -563,9 +573,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CancelExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedHeaderRequestParams = `name=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -593,9 +604,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.CancelExecutionRequest()
);
const defaultValue1 = getTypeDefaultValue('CancelExecutionRequest', [
'name',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.CancelExecutionRequest',
['name']
);
request.name = defaultValue1;
const expectedError = new Error('The client has already been closed.');
client.close();
Expand All @@ -613,9 +625,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -651,9 +664,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -707,9 +721,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -737,9 +752,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -797,9 +813,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down Expand Up @@ -846,9 +863,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedResponse = [
Expand Down Expand Up @@ -895,9 +913,10 @@ describe('v1.ExecutionsClient', () => {
const request = generateSampleMessage(
new protos.google.cloud.workflows.executions.v1.ListExecutionsRequest()
);
const defaultValue1 = getTypeDefaultValue('ListExecutionsRequest', [
'parent',
]);
const defaultValue1 = getTypeDefaultValue(
'.google.cloud.workflows.executions.v1.ListExecutionsRequest',
['parent']
);
request.parent = defaultValue1;
const expectedHeaderRequestParams = `parent=${defaultValue1}`;
const expectedError = new Error('expected');
Expand Down
Loading

0 comments on commit 6912e77

Please sign in to comment.