Skip to content

Commit 3fa6952

Browse files
committed
Fix product request
1 parent 9d04ed5 commit 3fa6952

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/AppClientTests.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public async Task TestEventHooksAsync()
164164
Id = "95fa9371-38d8-4ddb-b099-d9ed86e7c9bc",
165165
HookType = HookType.Webhook,
166166
Enabled = true,
167+
Product = Product.All,
167168
EventTypes = new List<string> { "message.new", "message.updated" },
168169
WebhookUrl = "https://example.com/webhook",
169170
};
@@ -173,16 +174,17 @@ public async Task TestEventHooksAsync()
173174
Id = "c3eff852-1194-47c2-8e1c-42a0b1dc1151",
174175
HookType = HookType.Webhook,
175176
Enabled = true,
177+
Product = Product.Chat,
176178
EventTypes = new List<string> { "message.new", "message.updated" },
177179
WebhookUrl = "https://example.com/webhook-chat",
178-
Product = Product.Chat,
179180
};
180181

181182
var sqsHook = new EventHook
182183
{
183184
Id = "4eaa795f-77d2-4b72-8f7e-11de0327121c",
184185
HookType = HookType.SQS,
185186
Enabled = true,
187+
Product = Product.All,
186188
EventTypes = new List<string> { "user.updated" },
187189
SqsQueueUrl = "https://sqs.region.amazonaws.com/123456789012/queue-name",
188190
SqsRegion = "us-east-1",
@@ -194,6 +196,7 @@ public async Task TestEventHooksAsync()
194196
Id = "7b2c6590-7b61-490a-8987-96c5f8a353ca",
195197
HookType = HookType.SNS,
196198
Enabled = true,
199+
Product = Product.All,
197200
EventTypes = new List<string> { "channel.updated" },
198201
SnsTopicArn = "arn:aws:sns:us-east-1:123456789012:topic-name",
199202
SnsRegion = "us-east-1",
@@ -202,8 +205,7 @@ public async Task TestEventHooksAsync()
202205

203206
var eventHooks = new List<EventHook> { webhookHook, chatWebhookHook, sqsHook, snsHook };
204207

205-
await _appClient.UpdateAppSettingsAsync(new AppSettingsRequest { EventHooks = eventHooks });
206-
208+
var updateResponse = await _appClient.UpdateAppSettingsAsync(new AppSettingsRequest { EventHooks = eventHooks });
207209
var getAppResponse = await _appClient.GetAppSettingsAsync();
208210
getAppResponse.App.EventHooks.Should().NotBeNull();
209211
getAppResponse.App.EventHooks.Should().HaveCount(4);

0 commit comments

Comments
 (0)