diff --git a/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto b/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto index 812f1269..42a05401 100644 --- a/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto +++ b/protos/google/cloud/dialogflow/cx/v3beta1/test_case.proto @@ -270,12 +270,29 @@ message TestConfig { // Session parameters to be compared when calculating differences. repeated string tracking_parameters = 1; - // Flow name. If not set, default start flow is assumed. + // Flow name to start the test case with. // Format: `projects//locations//agents//flows/`. + // + // Only one of `flow` and `page` should be set to indicate the starting point + // of the test case. If both are set, `page` takes precedence over `flow`. If + // neither is set, the test case will start with start page on the default + // start flow. string flow = 2 [(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }]; + + // The [page][google.cloud.dialogflow.cx.v3beta1.Page] to start the test case with. + // Format: `projects//locations//agents//flows//pages/`. + // + // Only one of `flow` and `page` should be set to indicate the starting point + // of the test case. If both are set, `page` takes precedence over `flow`. If + // neither is set, the test case will start with start page on the default + // start flow. + string page = 3 [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/Page" + }]; } // One interaction between a human and virtual agent. The human provides some diff --git a/protos/protos.d.ts b/protos/protos.d.ts index b38b72dd..5ef0abea 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -40205,6 +40205,9 @@ export namespace google { /** TestConfig flow */ flow?: (string|null); + + /** TestConfig page */ + page?: (string|null); } /** Represents a TestConfig. */ @@ -40222,6 +40225,9 @@ export namespace google { /** TestConfig flow. */ public flow: string; + /** TestConfig page. */ + public page: string; + /** * Creates a new TestConfig instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index a54ac946..383871b0 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -94068,6 +94068,7 @@ * @interface ITestConfig * @property {Array.|null} [trackingParameters] TestConfig trackingParameters * @property {string|null} [flow] TestConfig flow + * @property {string|null} [page] TestConfig page */ /** @@ -94102,6 +94103,14 @@ */ TestConfig.prototype.flow = ""; + /** + * TestConfig page. + * @member {string} page + * @memberof google.cloud.dialogflow.cx.v3beta1.TestConfig + * @instance + */ + TestConfig.prototype.page = ""; + /** * Creates a new TestConfig instance using the specified properties. * @function create @@ -94131,6 +94140,8 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.trackingParameters[i]); if (message.flow != null && Object.hasOwnProperty.call(message, "flow")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.flow); + if (message.page != null && Object.hasOwnProperty.call(message, "page")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.page); return writer; }; @@ -94173,6 +94184,9 @@ case 2: message.flow = reader.string(); break; + case 3: + message.page = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -94218,6 +94232,9 @@ if (message.flow != null && message.hasOwnProperty("flow")) if (!$util.isString(message.flow)) return "flow: string expected"; + if (message.page != null && message.hasOwnProperty("page")) + if (!$util.isString(message.page)) + return "page: string expected"; return null; }; @@ -94242,6 +94259,8 @@ } if (object.flow != null) message.flow = String(object.flow); + if (object.page != null) + message.page = String(object.page); return message; }; @@ -94260,8 +94279,10 @@ var object = {}; if (options.arrays || options.defaults) object.trackingParameters = []; - if (options.defaults) + if (options.defaults) { object.flow = ""; + object.page = ""; + } if (message.trackingParameters && message.trackingParameters.length) { object.trackingParameters = []; for (var j = 0; j < message.trackingParameters.length; ++j) @@ -94269,6 +94290,8 @@ } if (message.flow != null && message.hasOwnProperty("flow")) object.flow = message.flow; + if (message.page != null && message.hasOwnProperty("page")) + object.page = message.page; return object; }; diff --git a/protos/protos.json b/protos/protos.json index a0d2d154..a703ad69 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -10995,6 +10995,13 @@ "options": { "(google.api.resource_reference).type": "dialogflow.googleapis.com/Flow" } + }, + "page": { + "type": "string", + "id": 3, + "options": { + "(google.api.resource_reference).type": "dialogflow.googleapis.com/Page" + } } } }, diff --git a/test/gapic_agents_v3.ts b/test/gapic_agents_v3.ts index 135c9305..58415ec6 100644 --- a/test/gapic_agents_v3.ts +++ b/test/gapic_agents_v3.ts @@ -357,7 +357,6 @@ describe('v3.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAgent(request), expectedError); @@ -484,7 +483,6 @@ describe('v3.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateAgentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createAgent(request), expectedError); @@ -615,7 +613,6 @@ describe('v3.AgentsClient', () => { ); request.agent = {}; request.agent.name = ''; - const expectedHeaderRequestParams = 'agent.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAgent(request), expectedError); @@ -742,7 +739,6 @@ describe('v3.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAgent(request), expectedError); @@ -869,7 +865,6 @@ describe('v3.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.ValidateAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validateAgent(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_agents_v3beta1.ts b/test/gapic_agents_v3beta1.ts index 617e645b..c185d04d 100644 --- a/test/gapic_agents_v3beta1.ts +++ b/test/gapic_agents_v3beta1.ts @@ -357,7 +357,6 @@ describe('v3beta1.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAgent(request), expectedError); @@ -484,7 +483,6 @@ describe('v3beta1.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createAgent(request), expectedError); @@ -615,7 +613,6 @@ describe('v3beta1.AgentsClient', () => { ); request.agent = {}; request.agent.name = ''; - const expectedHeaderRequestParams = 'agent.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAgent(request), expectedError); @@ -742,7 +739,6 @@ describe('v3beta1.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAgent(request), expectedError); @@ -869,7 +865,6 @@ describe('v3beta1.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validateAgent(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3beta1.AgentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_changelogs_v3.ts b/test/gapic_changelogs_v3.ts index c37ea715..d99b0886 100644 --- a/test/gapic_changelogs_v3.ts +++ b/test/gapic_changelogs_v3.ts @@ -328,7 +328,6 @@ describe('v3.ChangelogsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetChangelogRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getChangelog(request), expectedError); diff --git a/test/gapic_changelogs_v3beta1.ts b/test/gapic_changelogs_v3beta1.ts index 33541527..29c0dcf3 100644 --- a/test/gapic_changelogs_v3beta1.ts +++ b/test/gapic_changelogs_v3beta1.ts @@ -328,7 +328,6 @@ describe('v3beta1.ChangelogsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getChangelog(request), expectedError); diff --git a/test/gapic_deployments_v3.ts b/test/gapic_deployments_v3.ts index e26856a8..e7301d2c 100644 --- a/test/gapic_deployments_v3.ts +++ b/test/gapic_deployments_v3.ts @@ -328,7 +328,6 @@ describe('v3.DeploymentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetDeploymentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDeployment(request), expectedError); diff --git a/test/gapic_deployments_v3beta1.ts b/test/gapic_deployments_v3beta1.ts index 639117c9..9f16902c 100644 --- a/test/gapic_deployments_v3beta1.ts +++ b/test/gapic_deployments_v3beta1.ts @@ -328,7 +328,6 @@ describe('v3beta1.DeploymentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDeployment(request), expectedError); diff --git a/test/gapic_entity_types_v3.ts b/test/gapic_entity_types_v3.ts index 82614496..173c8993 100644 --- a/test/gapic_entity_types_v3.ts +++ b/test/gapic_entity_types_v3.ts @@ -328,7 +328,6 @@ describe('v3.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEntityType(request), expectedError); @@ -455,7 +454,6 @@ describe('v3.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createEntityType(request), expectedError); @@ -586,7 +584,6 @@ describe('v3.EntityTypesClient', () => { ); request.entityType = {}; request.entityType.name = ''; - const expectedHeaderRequestParams = 'entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEntityType(request), expectedError); @@ -713,7 +710,6 @@ describe('v3.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteEntityType(request), expectedError); diff --git a/test/gapic_entity_types_v3beta1.ts b/test/gapic_entity_types_v3beta1.ts index 6c249e3e..007966c0 100644 --- a/test/gapic_entity_types_v3beta1.ts +++ b/test/gapic_entity_types_v3beta1.ts @@ -328,7 +328,6 @@ describe('v3beta1.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEntityType(request), expectedError); @@ -455,7 +454,6 @@ describe('v3beta1.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createEntityType(request), expectedError); @@ -586,7 +584,6 @@ describe('v3beta1.EntityTypesClient', () => { ); request.entityType = {}; request.entityType.name = ''; - const expectedHeaderRequestParams = 'entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEntityType(request), expectedError); @@ -713,7 +710,6 @@ describe('v3beta1.EntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteEntityType(request), expectedError); diff --git a/test/gapic_environments_v3.ts b/test/gapic_environments_v3.ts index d8728124..933a74fc 100644 --- a/test/gapic_environments_v3.ts +++ b/test/gapic_environments_v3.ts @@ -360,7 +360,6 @@ describe('v3.EnvironmentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEnvironment(request), expectedError); @@ -487,7 +486,6 @@ describe('v3.EnvironmentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteEnvironment(request), expectedError); diff --git a/test/gapic_environments_v3beta1.ts b/test/gapic_environments_v3beta1.ts index a00ded8c..78a18dea 100644 --- a/test/gapic_environments_v3beta1.ts +++ b/test/gapic_environments_v3beta1.ts @@ -362,7 +362,6 @@ describe('v3beta1.EnvironmentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEnvironment(request), expectedError); @@ -489,7 +488,6 @@ describe('v3beta1.EnvironmentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteEnvironment(request), expectedError); diff --git a/test/gapic_experiments_v3.ts b/test/gapic_experiments_v3.ts index c53c1778..1dcc929d 100644 --- a/test/gapic_experiments_v3.ts +++ b/test/gapic_experiments_v3.ts @@ -328,7 +328,6 @@ describe('v3.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getExperiment(request), expectedError); @@ -455,7 +454,6 @@ describe('v3.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateExperimentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createExperiment(request), expectedError); @@ -586,7 +584,6 @@ describe('v3.ExperimentsClient', () => { ); request.experiment = {}; request.experiment.name = ''; - const expectedHeaderRequestParams = 'experiment.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateExperiment(request), expectedError); @@ -713,7 +710,6 @@ describe('v3.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteExperiment(request), expectedError); @@ -840,7 +836,6 @@ describe('v3.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.StartExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.startExperiment(request), expectedError); @@ -967,7 +962,6 @@ describe('v3.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.StopExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.stopExperiment(request), expectedError); diff --git a/test/gapic_experiments_v3beta1.ts b/test/gapic_experiments_v3beta1.ts index 382d51df..0373fac2 100644 --- a/test/gapic_experiments_v3beta1.ts +++ b/test/gapic_experiments_v3beta1.ts @@ -328,7 +328,6 @@ describe('v3beta1.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getExperiment(request), expectedError); @@ -455,7 +454,6 @@ describe('v3beta1.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createExperiment(request), expectedError); @@ -586,7 +584,6 @@ describe('v3beta1.ExperimentsClient', () => { ); request.experiment = {}; request.experiment.name = ''; - const expectedHeaderRequestParams = 'experiment.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateExperiment(request), expectedError); @@ -713,7 +710,6 @@ describe('v3beta1.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteExperiment(request), expectedError); @@ -840,7 +836,6 @@ describe('v3beta1.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.startExperiment(request), expectedError); @@ -967,7 +962,6 @@ describe('v3beta1.ExperimentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.stopExperiment(request), expectedError); diff --git a/test/gapic_flows_v3.ts b/test/gapic_flows_v3.ts index 84b59f94..cb6ae5c1 100644 --- a/test/gapic_flows_v3.ts +++ b/test/gapic_flows_v3.ts @@ -360,7 +360,6 @@ describe('v3.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateFlowRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createFlow(request), expectedError); @@ -487,7 +486,6 @@ describe('v3.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteFlow(request), expectedError); @@ -611,7 +609,6 @@ describe('v3.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFlow(request), expectedError); @@ -742,7 +739,6 @@ describe('v3.FlowsClient', () => { ); request.flow = {}; request.flow.name = ''; - const expectedHeaderRequestParams = 'flow.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateFlow(request), expectedError); @@ -869,7 +865,6 @@ describe('v3.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3.ValidateFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validateFlow(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_flows_v3beta1.ts b/test/gapic_flows_v3beta1.ts index 2e18fdd6..0a73e3bf 100644 --- a/test/gapic_flows_v3beta1.ts +++ b/test/gapic_flows_v3beta1.ts @@ -360,7 +360,6 @@ describe('v3beta1.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createFlow(request), expectedError); @@ -487,7 +486,6 @@ describe('v3beta1.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteFlow(request), expectedError); @@ -611,7 +609,6 @@ describe('v3beta1.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFlow(request), expectedError); @@ -742,7 +739,6 @@ describe('v3beta1.FlowsClient', () => { ); request.flow = {}; request.flow.name = ''; - const expectedHeaderRequestParams = 'flow.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateFlow(request), expectedError); @@ -869,7 +865,6 @@ describe('v3beta1.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validateFlow(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3beta1.FlowsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_intents_v3.ts b/test/gapic_intents_v3.ts index 995b1749..fb66631c 100644 --- a/test/gapic_intents_v3.ts +++ b/test/gapic_intents_v3.ts @@ -325,7 +325,6 @@ describe('v3.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetIntentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIntent(request), expectedError); @@ -452,7 +451,6 @@ describe('v3.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateIntentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createIntent(request), expectedError); @@ -583,7 +581,6 @@ describe('v3.IntentsClient', () => { ); request.intent = {}; request.intent.name = ''; - const expectedHeaderRequestParams = 'intent.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateIntent(request), expectedError); @@ -710,7 +707,6 @@ describe('v3.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteIntentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteIntent(request), expectedError); diff --git a/test/gapic_intents_v3beta1.ts b/test/gapic_intents_v3beta1.ts index 5654cc49..fdd43fa4 100644 --- a/test/gapic_intents_v3beta1.ts +++ b/test/gapic_intents_v3beta1.ts @@ -325,7 +325,6 @@ describe('v3beta1.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIntent(request), expectedError); @@ -452,7 +451,6 @@ describe('v3beta1.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createIntent(request), expectedError); @@ -583,7 +581,6 @@ describe('v3beta1.IntentsClient', () => { ); request.intent = {}; request.intent.name = ''; - const expectedHeaderRequestParams = 'intent.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateIntent(request), expectedError); @@ -710,7 +707,6 @@ describe('v3beta1.IntentsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteIntent(request), expectedError); diff --git a/test/gapic_pages_v3.ts b/test/gapic_pages_v3.ts index 6a1c0917..4b7b4a58 100644 --- a/test/gapic_pages_v3.ts +++ b/test/gapic_pages_v3.ts @@ -325,7 +325,6 @@ describe('v3.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetPageRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getPage(request), expectedError); @@ -452,7 +451,6 @@ describe('v3.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreatePageRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createPage(request), expectedError); @@ -583,7 +581,6 @@ describe('v3.PagesClient', () => { ); request.page = {}; request.page.name = ''; - const expectedHeaderRequestParams = 'page.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updatePage(request), expectedError); @@ -710,7 +707,6 @@ describe('v3.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeletePageRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deletePage(request), expectedError); diff --git a/test/gapic_pages_v3beta1.ts b/test/gapic_pages_v3beta1.ts index e0e9e339..97a2eb0a 100644 --- a/test/gapic_pages_v3beta1.ts +++ b/test/gapic_pages_v3beta1.ts @@ -325,7 +325,6 @@ describe('v3beta1.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetPageRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getPage(request), expectedError); @@ -452,7 +451,6 @@ describe('v3beta1.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createPage(request), expectedError); @@ -583,7 +581,6 @@ describe('v3beta1.PagesClient', () => { ); request.page = {}; request.page.name = ''; - const expectedHeaderRequestParams = 'page.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updatePage(request), expectedError); @@ -710,7 +707,6 @@ describe('v3beta1.PagesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deletePage(request), expectedError); diff --git a/test/gapic_security_settings_service_v3.ts b/test/gapic_security_settings_service_v3.ts index 165446e1..df7a495f 100644 --- a/test/gapic_security_settings_service_v3.ts +++ b/test/gapic_security_settings_service_v3.ts @@ -348,7 +348,6 @@ describe('v3.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -483,7 +482,6 @@ describe('v3.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSecuritySettings(request), expectedError); @@ -622,7 +620,6 @@ describe('v3.SecuritySettingsServiceClient', () => { ); request.securitySettings = {}; request.securitySettings.name = ''; - const expectedHeaderRequestParams = 'security_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -760,7 +757,6 @@ describe('v3.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_security_settings_service_v3beta1.ts b/test/gapic_security_settings_service_v3beta1.ts index 3c200396..b0ae7143 100644 --- a/test/gapic_security_settings_service_v3beta1.ts +++ b/test/gapic_security_settings_service_v3beta1.ts @@ -356,7 +356,6 @@ describe('v3beta1.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -499,7 +498,6 @@ describe('v3beta1.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSecuritySettings(request), expectedError); @@ -646,7 +644,6 @@ describe('v3beta1.SecuritySettingsServiceClient', () => { ); request.securitySettings = {}; request.securitySettings.name = ''; - const expectedHeaderRequestParams = 'security_settings.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -792,7 +789,6 @@ describe('v3beta1.SecuritySettingsServiceClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_session_entity_types_v3.ts b/test/gapic_session_entity_types_v3.ts index 61902f2f..5b0b651f 100644 --- a/test/gapic_session_entity_types_v3.ts +++ b/test/gapic_session_entity_types_v3.ts @@ -331,7 +331,6 @@ describe('v3.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSessionEntityType(request), expectedError); @@ -462,7 +461,6 @@ describe('v3.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -600,7 +598,6 @@ describe('v3.SessionEntityTypesClient', () => { ); request.sessionEntityType = {}; request.sessionEntityType.name = ''; - const expectedHeaderRequestParams = 'session_entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -734,7 +731,6 @@ describe('v3.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_session_entity_types_v3beta1.ts b/test/gapic_session_entity_types_v3beta1.ts index 742e185c..e95def50 100644 --- a/test/gapic_session_entity_types_v3beta1.ts +++ b/test/gapic_session_entity_types_v3beta1.ts @@ -342,7 +342,6 @@ describe('v3beta1.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSessionEntityType(request), expectedError); @@ -477,7 +476,6 @@ describe('v3beta1.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -619,7 +617,6 @@ describe('v3beta1.SessionEntityTypesClient', () => { ); request.sessionEntityType = {}; request.sessionEntityType.name = ''; - const expectedHeaderRequestParams = 'session_entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -757,7 +754,6 @@ describe('v3beta1.SessionEntityTypesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_sessions_v3.ts b/test/gapic_sessions_v3.ts index 104cf1b3..7fa6c68d 100644 --- a/test/gapic_sessions_v3.ts +++ b/test/gapic_sessions_v3.ts @@ -281,7 +281,6 @@ describe('v3.SessionsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DetectIntentRequest() ); request.session = ''; - const expectedHeaderRequestParams = 'session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.detectIntent(request), expectedError); @@ -408,7 +407,6 @@ describe('v3.SessionsClient', () => { new protos.google.cloud.dialogflow.cx.v3.MatchIntentRequest() ); request.session = ''; - const expectedHeaderRequestParams = 'session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.matchIntent(request), expectedError); @@ -539,7 +537,6 @@ describe('v3.SessionsClient', () => { ); request.matchIntentRequest = {}; request.matchIntentRequest.session = ''; - const expectedHeaderRequestParams = 'match_intent_request.session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.fulfillIntent(request), expectedError); diff --git a/test/gapic_sessions_v3beta1.ts b/test/gapic_sessions_v3beta1.ts index 2c3a3041..f2d07d85 100644 --- a/test/gapic_sessions_v3beta1.ts +++ b/test/gapic_sessions_v3beta1.ts @@ -281,7 +281,6 @@ describe('v3beta1.SessionsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest() ); request.session = ''; - const expectedHeaderRequestParams = 'session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.detectIntent(request), expectedError); @@ -408,7 +407,6 @@ describe('v3beta1.SessionsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest() ); request.session = ''; - const expectedHeaderRequestParams = 'session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.matchIntent(request), expectedError); @@ -539,7 +537,6 @@ describe('v3beta1.SessionsClient', () => { ); request.matchIntentRequest = {}; request.matchIntentRequest.session = ''; - const expectedHeaderRequestParams = 'match_intent_request.session='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.fulfillIntent(request), expectedError); diff --git a/test/gapic_test_cases_v3.ts b/test/gapic_test_cases_v3.ts index 9bcb26b6..68537a62 100644 --- a/test/gapic_test_cases_v3.ts +++ b/test/gapic_test_cases_v3.ts @@ -361,7 +361,6 @@ describe('v3.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchDeleteTestCases(request), expectedError); @@ -488,7 +487,6 @@ describe('v3.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetTestCaseRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTestCase(request), expectedError); @@ -615,7 +613,6 @@ describe('v3.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTestCase(request), expectedError); @@ -746,7 +743,6 @@ describe('v3.TestCasesClient', () => { ); request.testCase = {}; request.testCase.name = ''; - const expectedHeaderRequestParams = 'test_case.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateTestCase(request), expectedError); @@ -873,7 +869,6 @@ describe('v3.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest() ); request.agent = ''; - const expectedHeaderRequestParams = 'agent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.calculateCoverage(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTestCaseResult(request), expectedError); diff --git a/test/gapic_test_cases_v3beta1.ts b/test/gapic_test_cases_v3beta1.ts index d7dc8355..fe65c87a 100644 --- a/test/gapic_test_cases_v3beta1.ts +++ b/test/gapic_test_cases_v3beta1.ts @@ -361,7 +361,6 @@ describe('v3beta1.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.batchDeleteTestCases(request), expectedError); @@ -488,7 +487,6 @@ describe('v3beta1.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTestCase(request), expectedError); @@ -615,7 +613,6 @@ describe('v3beta1.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTestCase(request), expectedError); @@ -746,7 +743,6 @@ describe('v3beta1.TestCasesClient', () => { ); request.testCase = {}; request.testCase.name = ''; - const expectedHeaderRequestParams = 'test_case.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateTestCase(request), expectedError); @@ -873,7 +869,6 @@ describe('v3beta1.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest() ); request.agent = ''; - const expectedHeaderRequestParams = 'agent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.calculateCoverage(request), expectedError); @@ -1000,7 +995,6 @@ describe('v3beta1.TestCasesClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTestCaseResult(request), expectedError); diff --git a/test/gapic_transition_route_groups_v3.ts b/test/gapic_transition_route_groups_v3.ts index 4736053d..37e2e358 100644 --- a/test/gapic_transition_route_groups_v3.ts +++ b/test/gapic_transition_route_groups_v3.ts @@ -346,7 +346,6 @@ describe('v3.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -484,7 +483,6 @@ describe('v3.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -626,7 +624,6 @@ describe('v3.TransitionRouteGroupsClient', () => { ); request.transitionRouteGroup = {}; request.transitionRouteGroup.name = ''; - const expectedHeaderRequestParams = 'transition_route_group.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -764,7 +761,6 @@ describe('v3.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_transition_route_groups_v3beta1.ts b/test/gapic_transition_route_groups_v3beta1.ts index be227f47..444e2641 100644 --- a/test/gapic_transition_route_groups_v3beta1.ts +++ b/test/gapic_transition_route_groups_v3beta1.ts @@ -348,7 +348,6 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -486,7 +485,6 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -628,7 +626,6 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { ); request.transitionRouteGroup = {}; request.transitionRouteGroup.name = ''; - const expectedHeaderRequestParams = 'transition_route_group.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -766,7 +763,6 @@ describe('v3beta1.TransitionRouteGroupsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_versions_v3.ts b/test/gapic_versions_v3.ts index ba67bfdf..a3500c71 100644 --- a/test/gapic_versions_v3.ts +++ b/test/gapic_versions_v3.ts @@ -360,7 +360,6 @@ describe('v3.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetVersionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getVersion(request), expectedError); @@ -491,7 +490,6 @@ describe('v3.VersionsClient', () => { ); request.version = {}; request.version.name = ''; - const expectedHeaderRequestParams = 'version.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateVersion(request), expectedError); @@ -618,7 +616,6 @@ describe('v3.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteVersionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteVersion(request), expectedError); @@ -745,7 +742,6 @@ describe('v3.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3.CompareVersionsRequest() ); request.baseVersion = ''; - const expectedHeaderRequestParams = 'base_version='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.compareVersions(request), expectedError); diff --git a/test/gapic_versions_v3beta1.ts b/test/gapic_versions_v3beta1.ts index 8f809a55..9882730d 100644 --- a/test/gapic_versions_v3beta1.ts +++ b/test/gapic_versions_v3beta1.ts @@ -360,7 +360,6 @@ describe('v3beta1.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getVersion(request), expectedError); @@ -491,7 +490,6 @@ describe('v3beta1.VersionsClient', () => { ); request.version = {}; request.version.name = ''; - const expectedHeaderRequestParams = 'version.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateVersion(request), expectedError); @@ -618,7 +616,6 @@ describe('v3beta1.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteVersion(request), expectedError); @@ -745,7 +742,6 @@ describe('v3beta1.VersionsClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest() ); request.baseVersion = ''; - const expectedHeaderRequestParams = 'base_version='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.compareVersions(request), expectedError); diff --git a/test/gapic_webhooks_v3.ts b/test/gapic_webhooks_v3.ts index a48a3934..1b428da5 100644 --- a/test/gapic_webhooks_v3.ts +++ b/test/gapic_webhooks_v3.ts @@ -328,7 +328,6 @@ describe('v3.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3.GetWebhookRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getWebhook(request), expectedError); @@ -455,7 +454,6 @@ describe('v3.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3.CreateWebhookRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createWebhook(request), expectedError); @@ -586,7 +584,6 @@ describe('v3.WebhooksClient', () => { ); request.webhook = {}; request.webhook.name = ''; - const expectedHeaderRequestParams = 'webhook.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateWebhook(request), expectedError); @@ -713,7 +710,6 @@ describe('v3.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteWebhook(request), expectedError); diff --git a/test/gapic_webhooks_v3beta1.ts b/test/gapic_webhooks_v3beta1.ts index 425b48b2..924ce3ee 100644 --- a/test/gapic_webhooks_v3beta1.ts +++ b/test/gapic_webhooks_v3beta1.ts @@ -328,7 +328,6 @@ describe('v3beta1.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getWebhook(request), expectedError); @@ -455,7 +454,6 @@ describe('v3beta1.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createWebhook(request), expectedError); @@ -586,7 +584,6 @@ describe('v3beta1.WebhooksClient', () => { ); request.webhook = {}; request.webhook.name = ''; - const expectedHeaderRequestParams = 'webhook.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateWebhook(request), expectedError); @@ -713,7 +710,6 @@ describe('v3beta1.WebhooksClient', () => { new protos.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteWebhook(request), expectedError);