Skip to content

Commit

Permalink
chore: update v2.14.2 gapic-generator-typescript (#1503)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Committer: @summer-ji-eng
PiperOrigin-RevId: 434859890

Source-Link: googleapis/googleapis@bc2432d

Source-Link: googleapis/googleapis-gen@930b673
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTMwYjY3MzEwM2U5MjUyM2Y4Y2ZlZDM4ZGVjZDdkM2FmYWU4ZWJlNyJ9
  • Loading branch information
gcf-owl-bot[bot] authored Mar 21, 2022
1 parent f3aec70 commit 1edb248
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 24 deletions.
6 changes: 0 additions & 6 deletions test/gapic_publisher_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v1.PublisherClient', () => {
new protos.google.pubsub.v1.Topic()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createTopic(request), expectedError);
Expand Down Expand Up @@ -459,7 +458,6 @@ describe('v1.PublisherClient', () => {
);
request.topic = {};
request.topic.name = '';
const expectedHeaderRequestParams = 'topic.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateTopic(request), expectedError);
Expand Down Expand Up @@ -583,7 +581,6 @@ describe('v1.PublisherClient', () => {
new protos.google.pubsub.v1.PublishRequest()
);
request.topic = '';
const expectedHeaderRequestParams = 'topic=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.publish(request), expectedError);
Expand Down Expand Up @@ -707,7 +704,6 @@ describe('v1.PublisherClient', () => {
new protos.google.pubsub.v1.GetTopicRequest()
);
request.topic = '';
const expectedHeaderRequestParams = 'topic=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getTopic(request), expectedError);
Expand Down Expand Up @@ -834,7 +830,6 @@ describe('v1.PublisherClient', () => {
new protos.google.pubsub.v1.DeleteTopicRequest()
);
request.topic = '';
const expectedHeaderRequestParams = 'topic=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteTopic(request), expectedError);
Expand Down Expand Up @@ -962,7 +957,6 @@ describe('v1.PublisherClient', () => {
new protos.google.pubsub.v1.DetachSubscriptionRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.detachSubscription(request), expectedError);
Expand Down
5 changes: 0 additions & 5 deletions test/gapic_schema_service_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ describe('v1.SchemaServiceClient', () => {
new protos.google.pubsub.v1.CreateSchemaRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createSchema(request), expectedError);
Expand Down Expand Up @@ -452,7 +451,6 @@ describe('v1.SchemaServiceClient', () => {
new protos.google.pubsub.v1.GetSchemaRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getSchema(request), expectedError);
Expand Down Expand Up @@ -579,7 +577,6 @@ describe('v1.SchemaServiceClient', () => {
new protos.google.pubsub.v1.DeleteSchemaRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteSchema(request), expectedError);
Expand Down Expand Up @@ -706,7 +703,6 @@ describe('v1.SchemaServiceClient', () => {
new protos.google.pubsub.v1.ValidateSchemaRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.validateSchema(request), expectedError);
Expand Down Expand Up @@ -833,7 +829,6 @@ describe('v1.SchemaServiceClient', () => {
new protos.google.pubsub.v1.ValidateMessageRequest()
);
request.parent = '';
const expectedHeaderRequestParams = 'parent=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.validateMessage(request), expectedError);
Expand Down
13 changes: 0 additions & 13 deletions test/gapic_subscriber_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.Subscription()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createSubscription(request), expectedError);
Expand Down Expand Up @@ -470,7 +469,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.GetSubscriptionRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getSubscription(request), expectedError);
Expand Down Expand Up @@ -602,7 +600,6 @@ describe('v1.SubscriberClient', () => {
);
request.subscription = {};
request.subscription.name = '';
const expectedHeaderRequestParams = 'subscription.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateSubscription(request), expectedError);
Expand Down Expand Up @@ -730,7 +727,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.DeleteSubscriptionRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteSubscription(request), expectedError);
Expand Down Expand Up @@ -857,7 +853,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.ModifyAckDeadlineRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.modifyAckDeadline(request), expectedError);
Expand Down Expand Up @@ -984,7 +979,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.AcknowledgeRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.acknowledge(request), expectedError);
Expand Down Expand Up @@ -1107,7 +1101,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.PullRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.pull(request), expectedError);
Expand Down Expand Up @@ -1234,7 +1227,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.ModifyPushConfigRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.modifyPushConfig(request), expectedError);
Expand Down Expand Up @@ -1361,7 +1353,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.GetSnapshotRequest()
);
request.snapshot = '';
const expectedHeaderRequestParams = 'snapshot=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.getSnapshot(request), expectedError);
Expand Down Expand Up @@ -1488,7 +1479,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.CreateSnapshotRequest()
);
request.name = '';
const expectedHeaderRequestParams = 'name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.createSnapshot(request), expectedError);
Expand Down Expand Up @@ -1619,7 +1609,6 @@ describe('v1.SubscriberClient', () => {
);
request.snapshot = {};
request.snapshot.name = '';
const expectedHeaderRequestParams = 'snapshot.name=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.updateSnapshot(request), expectedError);
Expand Down Expand Up @@ -1746,7 +1735,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.DeleteSnapshotRequest()
);
request.snapshot = '';
const expectedHeaderRequestParams = 'snapshot=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.deleteSnapshot(request), expectedError);
Expand Down Expand Up @@ -1869,7 +1857,6 @@ describe('v1.SubscriberClient', () => {
new protos.google.pubsub.v1.SeekRequest()
);
request.subscription = '';
const expectedHeaderRequestParams = 'subscription=';
const expectedError = new Error('The client has already been closed.');
client.close();
await assert.rejects(client.seek(request), expectedError);
Expand Down

0 comments on commit 1edb248

Please sign in to comment.