diff --git a/tests/Microsoft.Bot.Connector.Tests/AttachmentsTests.cs b/tests/Microsoft.Bot.Connector.Tests/AttachmentsTests.cs index 0f427f9d60..4332d7f4d6 100644 --- a/tests/Microsoft.Bot.Connector.Tests/AttachmentsTests.cs +++ b/tests/Microsoft.Bot.Connector.Tests/AttachmentsTests.cs @@ -1,181 +1,165 @@ -//namespace Connector.Tests -//{ -// using System; -// using System.IO; -// using Microsoft.Bot.Connector; - -// using Microsoft.Rest; -// using Xunit; - -// public class AttachmentsTests : BaseTest -// { -// protected const string conversationId = "B21UTEF8S:T03CWQ0QB:D2369CT7C"; - -// [Fact] -// public void UploadAttachmentAndGetAttachment() -// { -// UseClientFor(async client => -// { -// var attachment = new AttachmentData("image/png", ReadFile("bot.png"), "Bot.png", ReadFile("bot_icon.png")); -// var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); -// var attachmentId = response.Id; -// var attachmentInfo = await client.Attachments.GetAttachmentInfoAsync(attachmentId); - -// Assert.NotNull(attachmentInfo); -// Assert.Equal("Bot.png", attachmentInfo.Name); -// Assert.Equal("image/png", attachmentInfo.Type); -// Assert.Equal(2, attachmentInfo.Views.Count); -// }); -// } - -// [Fact] -// public void UploadAttachmentWithoutOriginalFails() -// { -// UseClientFor(async client => -// { -// var attachment = new AttachmentData() -// { -// Name = "Bot.png", -// Type = "image/png" -// }; - -// var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(conversationId, attachment)); -// Assert.Contains("OriginalBase64", ex.Message); -// }); -// } - -// [Fact] -// public void UploadAttachmentWithoutTypeFails() -// { -// UseClientFor(async client => -// { -// var attachment = new AttachmentData() -// { -// Name = "Bot.png", -// OriginalBase64 = ReadFile("Bot.png") -// }; - -// var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(conversationId, attachment)); -// Assert.Contains("Type", ex.Message); -// }); -// } - -// [Fact] -// public void UploadAttachmentWithNullConversationId() -// { -// UseClientFor(async client => -// { -// var attachment = new AttachmentData("image/png", ReadFile("bot.png"), "Bot.png", ReadFile("bot_icon.png")); - -// var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(null, attachment)); -// Assert.Contains("cannot be null", ex.Message); -// }); -// } - -// [Fact] -// public void UploadAttachmentWithNullAttachment() -// { -// UseClientFor(async client => -// { -// var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(conversationId, null)); -// Assert.Contains("cannot be null", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentInfoWithInvalidIdFails() -// { -// UseClientFor(async client => -// { -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentInfoAsync("bt13796-GJS4yaxDLI")); -// Assert.Contains("NotFound", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentInfoWithNullIdFails() -// { -// UseClientFor(async client => -// { -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentInfoAsync(null)); -// Assert.Contains("cannot be null", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentView() -// { -// UseClientFor(async client => -// { -// var attachment = new AttachmentData("image/png", ReadFile("bot.png"), "Bot.png", ReadFile("bot_icon.png")); -// var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); -// var attachmentId = response.Id; -// var stream = await client.Attachments.GetAttachmentAsync(attachmentId, "original"); - -// // Workaround for TestFramework not saving/replaying binary content -// // Instead, convert the expected output the same way that the TestRecorder converts binary content to string -// var expectedAsString = new StreamReader(new MemoryStream(attachment.OriginalBase64)).ReadToEnd(); -// var actualAsString = new StreamReader(stream).ReadToEnd(); - -// Assert.Equal(expectedAsString, actualAsString); -// }); -// } - -// [Fact] -// public void GetAttachmentViewWithInvalidAttachmentIdFails() -// { -// UseClientFor(async client => -// { -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync("bt13796-GJS4yaxDLI", "original")); -// Assert.Contains("NotFound", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentViewWithNullAttachmentIdFails() -// { - -// UseClientFor(async client => -// { -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(null, "original")); -// Assert.Contains("cannot be null", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentViewWithInvalidViewIdFails() -// { - -// UseClientFor(async client => -// { -// var attachment = new AttachmentData("image/png", ReadFile("bot.png"), "Bot.png", ReadFile("bot_icon.png")); -// var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); - -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(response.Id, "invalid")); - -// Assert.Contains("NotFound", ex.Message); -// }); -// } - -// [Fact] -// public void GetAttachmentViewWithNullViewIdFails() -// { - -// UseClientFor(async client => -// { -// var attachment = new AttachmentData("image/png", ReadFile("bot.png"), "Bot.png", ReadFile("bot_icon.png")); -// var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); - -// var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(response.Id, null)); - -// Assert.Contains("cannot be null", ex.Message); -// }); -// } - -// private byte[] ReadFile(string fileName) -// { -// var path = Path.Combine(Directory.GetCurrentDirectory(), "resources", fileName); -// return File.ReadAllBytes(path); -// } -// } -//} +namespace Connector.Tests +{ + using System.IO; + using Microsoft.Bot.Connector; + + using Microsoft.Rest; + using Xunit; + + public class AttachmentsTests : BaseTest + { + protected const string conversationId = "B21UTEF8S:T03CWQ0QB:D2369CT7C"; + + [Fact] + public void UploadAttachmentAndGetAttachment() + { + UseClientFor(async client => + { + var attachment = new AttachmentData("image/png", "Bot.png", ReadFile("bot.png"), ReadFile("bot_icon.png")); + var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); + var attachmentId = response.Id; + var attachmentInfo = await client.Attachments.GetAttachmentInfoAsync(attachmentId); + + Assert.NotNull(attachmentInfo); + Assert.Equal("Bot.png", attachmentInfo.Name); + Assert.Equal("image/png", attachmentInfo.Type); + Assert.Equal(2, attachmentInfo.Views.Count); + }); + } + + [Fact] + public void UploadAttachmentWithoutOriginalFails() + { + UseClientFor(async client => + { + var attachment = new AttachmentData() + { + Name = "Bot.png", + Type = "image/png" + }; + + var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(conversationId, attachment)); + Assert.Equal("MissingProperty", ex.Body.Error.Code); + Assert.Contains("original", ex.Body.Error.Message); + }); + } + + [Fact] + public void UploadAttachmentWithNullConversationId() + { + UseClientFor(async client => + { + var attachment = new AttachmentData("image/png", "Bot.png", ReadFile("bot.png"), ReadFile("bot_icon.png")); + + var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(null, attachment)); + Assert.Contains("cannot be null", ex.Message); + }); + } + + [Fact] + public void UploadAttachmentWithNullAttachment() + { + UseClientFor(async client => + { + var ex = await Assert.ThrowsAsync(() => client.Conversations.UploadAttachmentAsync(conversationId, null)); + Assert.Contains("cannot be null", ex.Message); + }); + } + + [Fact] + public void GetAttachmentInfoWithInvalidIdFails() + { + UseClientFor(async client => + { + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentInfoAsync("bt13796-GJS4yaxDLI")); + Assert.Contains("NotFound", ex.Message); + }); + } + + [Fact] + public void GetAttachmentInfoWithNullIdFails() + { + UseClientFor(async client => + { + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentInfoAsync(null)); + Assert.Contains("cannot be null", ex.Message); + }); + } + + [Fact] + public void GetAttachmentView() + { + UseClientFor(async client => + { + var attachment = new AttachmentData("image/png", "Bot.png", ReadFile("bot.png"), ReadFile("bot_icon.png")); + var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); + var attachmentId = response.Id; + var stream = await client.Attachments.GetAttachmentAsync(attachmentId, "original"); + + // Workaround for TestFramework not saving/replaying binary content + // Instead, convert the expected output the same way that the TestRecorder converts binary content to string + var expectedAsString = new StreamReader(new MemoryStream(attachment.OriginalBase64)).ReadToEnd(); + var actualAsString = new StreamReader(stream).ReadToEnd(); + + Assert.Equal(expectedAsString, actualAsString); + }); + } + + [Fact] + public void GetAttachmentViewWithInvalidAttachmentIdFails() + { + UseClientFor(async client => + { + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync("bt13796-GJS4yaxDLI", "original")); + Assert.Contains("NotFound", ex.Message); + }); + } + + [Fact] + public void GetAttachmentViewWithNullAttachmentIdFails() + { + + UseClientFor(async client => + { + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(null, "original")); + Assert.Contains("cannot be null", ex.Message); + }); + } + + [Fact] + public void GetAttachmentViewWithInvalidViewIdFails() + { + + UseClientFor(async client => + { + var attachment = new AttachmentData("image/png", "Bot.png", ReadFile("bot.png"), ReadFile("bot_icon.png")); + var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); + + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(response.Id, "invalid")); + + Assert.Contains("NotFound", ex.Message); + }); + } + + [Fact] + public void GetAttachmentViewWithNullViewIdFails() + { + + UseClientFor(async client => + { + var attachment = new AttachmentData("image/png", "Bot.png", ReadFile("bot.png"), ReadFile("bot_icon.png")); + var response = await client.Conversations.UploadAttachmentAsync(conversationId, attachment); + + var ex = await Assert.ThrowsAsync(() => client.Attachments.GetAttachmentAsync(response.Id, null)); + + Assert.Contains("cannot be null", ex.Message); + }); + } + + private static byte[] ReadFile(string fileName) + { + var path = Path.Combine(Directory.GetCurrentDirectory(), "resources", fileName); + return File.ReadAllBytes(path); + } + } +} diff --git a/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs b/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs index 841629f54f..10d502689a 100644 --- a/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs +++ b/tests/Microsoft.Bot.Connector.Tests/BaseTest.cs @@ -9,8 +9,8 @@ namespace Connector.Tests using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; - using Microsoft.Bot.Connector; using Microsoft.Azure.Test.HttpRecorder; + using Microsoft.Bot.Connector; using Microsoft.Rest; using Microsoft.Rest.ClientRuntime.Azure.TestFramework; @@ -20,8 +20,8 @@ public class BaseTest protected const string clientId = "[MSAPP_ID]"; protected const string clientSecret = "[MSAPP_PASSWORD]"; - protected const string userId = "U8H8E2HSB:T03CWQ0QB"; - protected const string botId = "B21S8SG7J:T03CWQ0QB"; + protected const string userId = "U19KH8EHJ:T03CWQ0QB"; + protected const string botId = "B21UTEF8S:T03CWQ0QB"; protected static Uri hostUri = new Uri("https://slack.botframework.com", UriKind.Absolute); private readonly string token; diff --git a/tests/Microsoft.Bot.Connector.Tests/DisableTestRunParallel.cs b/tests/Microsoft.Bot.Connector.Tests/DisableTestRunParallel.cs new file mode 100644 index 0000000000..5fa7926be2 --- /dev/null +++ b/tests/Microsoft.Bot.Connector.Tests/DisableTestRunParallel.cs @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using Xunit; + +[assembly: CollectionBehavior(DisableTestParallelization = true, MaxParallelThreads = 1)] diff --git a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj index 0cf435e41e..b2beba8450 100644 --- a/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj +++ b/tests/Microsoft.Bot.Connector.Tests/Microsoft.Bot.Connector.Tests.csproj @@ -1,15 +1,17 @@ - netcoreapp2.0 - + net462 + Microsoft.Bot.Connector.Tests + Copyright © Microsoft Corporation 2017 + Microsoft Bot Builder + false false - - + @@ -19,4 +21,13 @@ + + + PreserveNewest + + + PreserveNewest + + + diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentInfoWithInvalidIdFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentInfoWithInvalidIdFails.json index b67e963ab6..41a648ec61 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentInfoWithInvalidIdFails.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentInfoWithInvalidIdFails.json @@ -7,8 +7,12 @@ "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "\"NotFound\"", @@ -22,29 +26,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 14:31:06 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:57 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 404 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentView.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentView.json index 72eaad5454..48b299dfea 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentView.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentView.json @@ -13,57 +13,62 @@ "14108" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"at14127-9hip7buFlPY\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"at14442-AapMNMKmhZr\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "35" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 14:31:06 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:58 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/attachments/at14127-9hip7buFlPY/views/original", - "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQxMjctOWhpcDdidUZsUFkvdmlld3Mvb3JpZ2luYWw=", + "RequestUri": "/v3/attachments/at14442-AapMNMKmhZr/views/original", + "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQ0NDItQWFwTU5NS21oWnIvdmlld3Mvb3JpZ2luYWw=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "�PNG\r\n\u001a\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0001,\u0000\u0000\u0001,\b\u0006\u0000\u0000\u0000y}�u\u0000\u0000\u0000\u0004gAMA\u0000\u0000��\u000b�a\u0005\u0000\u0000!TIDATx\u0001�\u0007�U�\u0015�7u�m@\u0006��ػA�5��\u0001�Qc\u0014ł\u001541j��1��j��\u0014����Q\u0004\u000b�=*�\u0012kbWH�\t�\f�Ы�����\u0000S^������{-������}�w_���\\1}��H�\u0004H�\u0001��\u000e��)�\u0000\t�@D��b#�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a���\u0013%\u0001\u0012���\u0003$@\u0002n\bPXn��DI�\u0004(,�\u0000\t��\u001b\u0002\u0014���8Q\u0012 \u0001\n�=@\u0002$�\u0000��&*N�\u0004H��b\u000f�\u0000\t�!@a�����vl�J&��_\u0006��4��)�\r��)�\u0005�M�OjP�/��MRc�\u001f\u0007|�TΔV}*��o\n�8s�6�x�D����U��w殖�����[�_1?�Ӳ�\u0019�)-K���Ma��0�\u0011�)��O�/'\u0019���\u0019+��U�����p0�yb��\u0005���O�XR�ol\n+?~��u$�\u0011�e�@�#���WY�+~Yŀ#i�|1o�\u0002�ە?�eI9��)���%���$���ON1���\u001f��ac�e���>��\u00120�yc��\u0005�ȁҲ����\u0014Vn�\u0012���*�[O�'���=��\u000f��\u0007+e�-ղl͆��v�o�\u001b��:,\u000b9 \u000f��*\u001e\u0002\u0014V\u0011d�M1nx?9}\u001f[Y�8Se��\u0005y�U\u001cU$-]\u0007�cY�\u0003�PZ���\u001b��ʎW⿍�0V7�\u0019����%��G�R%KW�<��\u0012<ց�`]��\\�\u000f�eI9�)��Y%���\u0004cN,�3�e�rU�d\u0015\u0007\u0011K\u000b�,䃜(-Kʙ�Mae�)���S#7�P&g�G�c�\u001f�\u001f������%)9���6�\u001b����Ym+-䄼�\u001b��\bPX-�\u001eM�6�9����Y�d�>lJ���谾�*-�ײ�\u0017r��,)7=6��4���f�Q�~����zU7��13e�t��!e�\u0014h���C�,�}��)-K�\u0014�\u0001��h�^b,�i��M�U���Ui�\u0017�Y��>�K�?ˆ\u0000��0׫��#�j�Z�t=]0���\tY�\u0013�����ϲ�?���<\u0001\n+A��\u001e�G�qHi�#n=Կ +=R����ښN��\u00017�\u0003G�B\u001f�\u001fX�\u0012��\u0012��ˡ}�������V���j)��R\u0003?\u001c���e�\u001f�\u0017��\bPX\t���>r����zw�\u001a�*���!f/[\u001f�\u0004W�B_�?X�\u0010������!���le���u��&c%G �\u0016�Z\u0016�\u0003}�ʟ\u0000��\u0007ß\u000e�-�9ܶ\u0011��$��e��)��1\u0002����lY�\u0013�\u000b+?\u0002\u0014V��~<��|�\b�\u0006�#�YK)�\u001cc����\u0017�\u0002o�B��oX�\u0013��r`w命����e�oa���)+K�\u001f�\rΐ\u0016�[\u0016�\u0006��ʍ\u0000��%�\u001f\u001eY*?4������\u001bgJ�\u0012\u001eYe\u0019O^�\u000e��\u000e����A\u001f��'@ae���G�ʕ�l_�y\u0011e�E$��j,-�`Y�#�\u0013+;\u0002\u0014V���{x��x���>X�6����#�\fS��5�Ǒ\u0016�,�\u0013���9\u0001\n+\u0003V�>���tHad��b>\f� \u0012�_A\u000e��\u0016�\n��ʌ\u0000��\f�+\u000e�%??��ì3\u0017����}_����\u0000��\u0013��Dz�_�3V�\u0004(�&\u0018]��^r�P[YUm�\u00143�\u001f~4�L��\t\u0002�\u0005�BN��>C���&@a5��Cz�/��ʪzI�f��B����\u0012��\f\t \u001fH\u000byY\u0016�\r}�j�\u0000��\u0000�o��A~}���fm��)�\u0006\u0012(�o!'H\u000b�Y\u0016�\u000e��j�\u0000��\u0005�K?�S�6>\u0001[�R}5P���\u0005�Ϳ����y\u0012@^�\u0016�,�\u001f���5\u0001\n�\u001e�K�ܿ9��b\u0002���%sʪ\u001exG���J\u000b�\u001eZK\u000b}�~dmN������\u001c�5����M\u001f�@ӳ�\u0012@~8�B���~D_�>&@a)��\u000e�!�3�U��\u0002�;�������\u000b9BZ�ղЗ�OV\u001d��u�A=�B�e��0g���m|\n\u0013�Ep�\b OH\u000b�Z\u0016��+ڧ,���u�����sV���e|fK6s�\u0010@����u�z��k�\u0015���t@\u000f��\u000b}�U�Vf=0w������)+3��00�b�y[\u0015�\u0014���\r��\u0014��\u001a�\r���j\u001ed�\u000f\u0017�͵����[LkG��\u001b�[\u0015���E��Z�\tk�~��OƲ��aݑ�;�UP�\ny�H\u000b�[\u0015���E\u001f�XA\tk��|�\te�\u000f\u0003#Y�T%o��U�\u001b\n�\u001f��[K\u000b}�~\u000e��\u0011�9��.7\u0019�j�^��ț��-�ˡ�֤�֋�\u0007i\u001f�\u001f�\nGZ�g�uH\u0015���޷��l,��+�ˠ13��Zۋs�Ԝ�����\u0001�\u0001}aU�\u0016�\u001a�\u001dJ�^Xg��MƜX&�[۽\u001a\u0018�J��x}6e\u0015���d��A�\u0017��B_����!T��u��8vx?SY-Z�^\u0006�=�k�U\b�%�5�/�\u001f�\u0013��������Wj�u���d���\u0016G���Wkxd�������\u001f��T\t�Ū -�;�>͕Ja�6���z��U,�Wf�Jspm\t\u0011@�\u0014BZ�{�Z��\\1}c�\u0016w�'���#�K\u001b�笖����*�G�?Y�ջ�\u001dK�K��m�KI��û��i��\u001a���omӹ�l۳��霗�� ���{z��u\u001b�\u001d���y\u0007y|T�t������o�(#'�Ȅ7���FK\r�*a�PY�Q\u0000Y\rQY��LV\u0007Wv�Ϣ��cv�\"=;n�Y^�#���Z*׿�X��iy\u0013tm�Z.Գ\u0014��W7�w@���\u0007�\u0013zp�r��E��L_w\u001c\u0007��\u001e+��NWiML��R#����*�UVm�ؽ\u001a�T����R%/U�� }���?~�LNس�V���o�%W<:OnyeIC?.�����\u0016�bh\u001f�ӥmF�7��e�)�2g��sD\u0019M$�_:�B�un�t3<�Z�~���Һ���\u001ci�BX�u3�y�����^/G��<ݛ�ݯD�?�\\*z��b+���^\\$\u0017?0��\u000f��p�\u000fz��/\u001f��I�pU��n�v��\u0012\u001c��U�յd�#ެ\u0003k�\u000f �S'��=*�4��'�OأKAd5�jW�ڡW;�:�2'Y��!\r�Ҥ����EV�#���b�^\nw~�+�\u0019Z\u0015\u001eq��\u001c�$\r�ZX���E&�:��a ��\u001d6�Z����M�%ڤ8���)�{�/�s^��_�wQ�vp{�\u0014֋uc�^\n}��B�Y\u0015��}����\nk�m��x��hg؜u����>�#+4�E\u0007�����$қW�U��뫉���q;I\u0014֍�{*�װ�U���>�~���\\��hHf̉����n�C}���qU�wg��ж�|���İ��[\n�j|ɩKt|�NR�����B����wV���`�x.��\u001a�sg9���\u0019�HVz�������\u0000��\u001d:��PpK�'�[\u000b,\u000bo]H���\u0010\u001c�\u0015�����¾���Z.�5\\��`U+�\u001e�q��CY��ѻ$�<Şe%R�=��\u0018d�\u000b���I�\u0005�����xO�X\u0019�\u001f�Ъ,��՜�q]\n�mm�=#Y�Z-O�X\u0011�q�u�R�Wɶ�e�܇ոV\u001c\n�\u0010�c�\u000f��e�\n�ƥ��wK��~��\rr�6����WVh�~��\u0015���-�����j\\|��s�\u000fя�ˤ�b�$=���s)��\u0006�~l�'C����\u0013�\r��r�\u0001\u001c�!o�2��\u0010s��\u001fїI���Iz����RX��&�����ҽ#\u0007�s@~��D��`�E�\u0018]��l\\#\u000e\u0016l\u001b\u001a\u0013}8id��/�.����\u001c\u001b\u001bϥ���'&-�D?\u001b2I���U��j����j=-´�6��¸\u0018?�‡��\u0016�\u000f}h!+0��?���RXw�Y\u0005�\nҚ|�\u00009j'�GZ���n'��֣ɭ?�957\u000e�\f����*�%\u0017��s��1��\u0005k��L����\u001eIK?L;ș�����_\u0014/#�8���I�ip�\u000en/�º�~O����}f)+�\t}e)+�\u0001``�����g/���Bp����U2|�nf\u0017���9p\u001a��������\u001eJ�E \u000f�k��%��z���N9��Sb㏸�F��+̑Ֆ\u001cg.Y'���D��9���ס�kJN�\u0017\u0019F�[+��}�`�^��:�Cg�K']�UAV'�Q]�;\u001e��`�T�\"9\u0006�\u0013��s���Wp;�\u001c�}8\u001a�\r;T7��z��\u0003�;\n>�\u0011_5g�µz\u000f�\\�j�7��\u0019e�\\��\u000e۹�l�g\u0012��9:Ǘ�WF�}Z_�RϺ��m�Q\u001e>�B:\u001b�j�\u001d��\u0001��JS�JX\b�8�*\f�eyb?H\u000b'\\�x��45�ǵ\u001c��z�XVk����zU�����h\u000b�BH'�!\bͪp����\u0015��O؝��j�\u001c��\b�_�7�GV�{�\u001ae��R',,�>}_�\bci��\u0014�)?Ci\u00019�\u0019\u0002�\u0013�\u000b�ƪ +�=�?�eG����͈���x\"٪�U.�6<����9n�\b�?\u001e9��TV�弴߭��[8j\r�Rj�����β�l���5�\u001e=�\\\u000e�\u000bc�H`K\u0002�\u000b�G!�=�~O{�ZX\b\u000f\u0017���o���\u000bb�j�,\u0012�\t�\u001f\nq�T�wZ.�\u001a�k�kꅅ��R�#晴��o��%�ќ\u0007�SZ�5[H�G\u001f�\u001f,/E�~F_��R���H\u0010�\u0002��o����RZ�UZ�����)���.�?G��\u0003�UE��~F_�T�\b\u000b�N�pϼk����u�\u0001<�\ni#�kE�i�ֲB\u001f��C����pǿ�Tκ{�l0|xأc\u001by\\�a?Ei\u0005���7rG�V��E���C�����x}��}Oa��o�䯹\u0017b�\u0016���s!d��E��ZA\n\u000ba�嵥r���zFGZ���~�^\u0002���Q����\nGV�W�m�\u0015��\u0010�m\u001a>>�o��\u0010�Mbt�\f4��qȍ[,kG��\u00179[\u0015�\u0013}�~\r��\u0016\u0016�\u001f��\u0012=�f�l4�X\u001b�y�6�')�T�7�\\-e��D�OY)�,a���}e��g,��ΐV��՗\u000f\u000f�ͧ\u0018\u001f9\"O�jU�\u0015�\u0012�ɪ#\u0010�\u0011V�\bc��D�7�V��m���*dϾ���W�\u0004�\u001fd�<�\n�B?�/Y\u001f\u0013��>f!7ks|��9�\u000f\u000f#i�È=����w�O�������[�Y\u0010d�>D?�6'@am�#:E�\u0005��B�?y^��NimA���\u0017y!7kY��r9\u0017q�Kfv\u0014V\u0003\u001c���5�p���W����z�><�j ���\u0016rB^�ͪpd��C��\u001a&@a5�Enxi�\\4����&��]����\u001e{WJ+\u0019�F� \u001f䄼,����D}gy\u001b�Ǧ��H��\u0017\u0017���\u0017FZ���V\u0013Q�؏�KadU+�7V�\u0004(����u/,�K\u001e�}x���`S�ܻ]3��\u000bI\u0000y \u0017�cY�/�\u0019�y\u0002\u0014V���z��K\u001f��V?��\u00156�N��V\u0006���\nr@\u001e�Ų�W�/Vf\u0004(��8�o�[$_7�V�nu�dGJ+�Tl~\r�!+�aY�'�\u0015+s\u0002\u0014V��Zm��\u001e���_d��\u0003����t��\u0017\u000ee\u0015�\u0000��?r�,�\u0011���\u001d\u0001\n+;^�%ѿ�p\u0001�u>��e4y�z$+�n-+��5_��|C\u001c���!���](�z�VZ�z\u000f��%��H+����\u0013p\u0006op�,�\r���\u001b\u0001\n+7n�g\u0016ʷ\u001f��VE��M�]O�M�#���\u0019�BV�mY�\u0017�\r+w\u0002\u0014V���\u0017O/���u^\u001e#4��������fj~&��\rp���ٲ�'�\u0017V~\u0004(����ϟZ �{�VZ��\u0011��\u0015�\u001e�/���ݟ�g���\b\u0016��>a�O��ʟ���o\u000b�\u0007��Jk۞��)}B��;��@d\u0011G�\u0004W�B_�?X�\u0010����(?yr�\\�Da�UAi�\u001a�\u0015BV�\u0007�\u0005+9\u0002\u0014Vr,�GS\u0017ȏ����[\u000f�]��#�r�w`o}���\u000e�AV�hY�\u0003�\u0003+Y\u0002\u0014V�<�ʩ��'��emOi�7�\u0015�Y\u0016�G\u001f��'@a%�T~���?{Ҷaw(�;��\u0000\u001eie� 8��@p�,��Y6\u0004(,\u001b�����U�O����'���&`��`Â\u000fd\u0005^����;ˎ\u0000�e�V��/g�����6I�_W���\u0018\"2\u001f\u001a\\ +p�,䌼Y�\u0004(,[��m}�௞�}�u�Mg�,�BiՏ\u0013< +�,䋜Y�\u0004(,{��G�����Jk�>%�椴�\u0002�e\u0005.��\\�/�0\u0004(��p�o>2O�y�VZ�nS\u0012]եo�GZX?�n\u0003\u001e��<�+�p\u0004(�±��\u001e�'�\u001a�Vd7H\u000bWw1�\"q\u0001�e}SXwt5\"cY!G��*,\u0001\n�����z��=g�!���2����\u0002�V\u001f�J���~�B~ȑUx\u0002\u0014V���\u001e�+�7��\u001e�\u0016�P\u001c��\"Y�z�n�Bnȏ�2\u0004(���.�h�_g|�=�Jd��\n��)ݯ\u001eb}X'�kY�\u000b��Z�\u0000��r��b���\u001f_�=��^e\u001d��\\�)�Qc]�\u0015�iY�\ty�Z�@:��e�fu�\u0017�j�/�J�� �JI���dU)X�e!\u001f��jy\u0002\u0014V\u000bg�Qo��)s��/�Jk�n�'FUJ���\u001c��z�.�B.�\u00079�Z�@:���9�5\u0003l�\u000b�#7�l{�߽����H��sia�X\u0007�cY�\u0003�PV���\u001b��ʎ��ocS|yr���\u000f[i�\u0003i鑉WiE���c\u001d��\u001c�\u0007eeI9��)�왙�\u00056���je����\u001d�A\u001e;�Bzt�\u0015?�yc��\u0005�ȁ�����ؾ:6�5��+l��t������~�\u001d��߽�G\u000b`��\u0015�mY�\u000e���%����ѭ����_b���M3�\u0015[i�_��\u001aU!\u001d۶*jN�\u001f��Z\u0016x�;eeI9��)������\u0006�5��^]bv\u001b\u0018��\u0019+d��ޢ���:O�\u0002g�\u0006wV�\u0012���7�h�s�l����pj\u0014/g\u001b�\\ϊ�k�S�/8SVE�\u00196M��*򌰉���t�k�\u001eiy�U\u001c����\u0015|)��rq���;�hv�Lg�=[ƿ���<�*�)Ii�'�RV1���Ja\u0015F�\f׫�μk�Lxci^3�,�x�IH\u000b\u001c�\u0013\\Y~\bPX~��6�ȉ521Gi�AVq\\�H\u000b�����i��Ja��*�)6�Ȼj�;�J����r�\u0016��\u001fe\u0015S�����W4�u\u001bDN�P#�d(�4�*�-\u001bi�\u0017��\u001f�'\u0001\n�gnѦ;U7ߤ��5��4�*^x&�\u0002'�bj>�RX>s�f��wʝ�d�;\rK+\u0004Y��5%-�\u0001'�*���+��7�h�kUZ#�ϒ���\u0016�d��M�IEА��\u0005|���\u0000��?�h3�����iuGZ�\u00156o�U_Z�\u0001.�Uz:��\\1��DII���Z\u0013�\u000e�&����+�)Y�f�8k�nr��}a��;��qN��r\u001e �O\u0002!\u0011�C��ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004(����ZI�9\u0001\n�y��>\t�D��\n)m��\u0004�\u0013���\u0007��@H\u0004�\u000f����Sy��\u0000\u0000\u0000\u0000IEND�B`�", @@ -71,35 +76,35 @@ "Content-Length": [ "8605" ], + "Content-Disposition": [ + "attachment; filename=Bot.png; size=8605" + ], "Content-Type": [ "image/png" ], "Expires": [ "-1" ], - "Content-Disposition": [ - "attachment; filename=Bot.png; size=8605" + "Pragma": [ + "no-cache" + ], + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" + ], + "Strict-Transport-Security": [ + "max-age=31536000" ], "Cache-Control": [ "no-cache" ], "Date": [ - "Tue, 09 Jan 2018 14:31:07 GMT" - ], - "Pragma": [ - "no-cache" + "Mon, 22 Jan 2018 17:10:59 GMT" ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidAttachmentIdFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidAttachmentIdFails.json index fb7bd5ec5f..83ae32672c 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidAttachmentIdFails.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidAttachmentIdFails.json @@ -7,8 +7,12 @@ "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "", @@ -19,26 +23,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 15:19:21 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:53 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 404 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidViewIdFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidViewIdFails.json index 4014e69909..7aab61d88e 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidViewIdFails.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithInvalidViewIdFails.json @@ -13,57 +13,62 @@ "14108" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"at14128-4TrMvEJ1wTk\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"at14442-LRBis1DA4gJ\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "35" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 15:34:37 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:56 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/attachments/at14128-4TrMvEJ1wTk/views/invalid", - "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQxMjgtNFRyTXZFSjF3VGsvdmlld3MvaW52YWxpZA==", + "RequestUri": "/v3/attachments/at14442-LRBis1DA4gJ/views/invalid", + "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQ0NDItTFJCaXMxREE0Z0ovdmlld3MvaW52YWxpZA==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"attachment not found\"\r\n }\r\n}", @@ -77,26 +82,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 15:34:38 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:57 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 404 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithNullViewIdFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithNullViewIdFails.json index 2819ee01c8..ef563e0152 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithNullViewIdFails.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/GetAttachmentViewWithNullViewIdFails.json @@ -13,44 +13,45 @@ "14108" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"at14152-3JapVKevS4L\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"at14442-8RBZYw0bJeL\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "35" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:28:58 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:10:59 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentAndGetAttachment.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentAndGetAttachment.json index 3194aae115..114a0d8485 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentAndGetAttachment.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentAndGetAttachment.json @@ -13,90 +13,95 @@ "14108" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"at14127-CWg6c8nQGVH\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"at14442-AwPWMSJvpXZ\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "35" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 14:31:09 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:00 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/attachments/at14127-CWg6c8nQGVH", - "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQxMjctQ1dnNmM4blFHVkg=", + "RequestUri": "/v3/attachments/at14442-AwPWMSJvpXZ", + "EncodedRequestUri": "L3YzL2F0dGFjaG1lbnRzL2F0MTQ0NDItQXdQV01TSnZwWFo=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"name\": \"Bot.png\",\r\n \"type\": \"image/png\",\r\n \"views\": [\r\n {\r\n \"viewId\": \"original\",\r\n \"size\": 8605\r\n },\r\n {\r\n \"viewId\": \"thumbnail\",\r\n \"size\": 1899\r\n }\r\n ]\r\n}", "ResponseHeaders": { + "Content-Length": [ + "197" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Tue, 09 Jan 2018 14:31:09 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:01 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutOriginalFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutOriginalFails.json index f085c51a65..d65919fcce 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutOriginalFails.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutOriginalFails.json @@ -1,5 +1,62 @@ { - "Entries": [], + "Entries": [ + { + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/attachments", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2F0dGFjaG1lbnRz", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"type\": \"image/png\",\r\n \"name\": \"Bot.png\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "49" + ], + "User-Agent": [ + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"MissingProperty\",\r\n \"message\": \"You must provide an original or thumbnail property\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "124" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" + ], + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 22 Jan 2018 17:11:00 GMT" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 400 + } + ], "Names": {}, "Variables": {} } \ No newline at end of file diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutTypeFails.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutTypeFails.json deleted file mode 100644 index f085c51a65..0000000000 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.AttachmentsTests/UploadAttachmentWithoutTypeFails.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "Entries": [], - "Names": {}, - "Variables": {} -} \ No newline at end of file diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversation.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversation.json index 65e3301e9d..16728781f9 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversation.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversation.json @@ -4,50 +4,54 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Create Conversation\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Create Conversation\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "333" + "486" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187112.000022\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641076.000062\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:31 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:15 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithBotMember.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithBotMember.json index 4d999fafb3..74bc9d0efd 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithBotMember.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithBotMember.json @@ -4,17 +4,21 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Create Conversation with Bot member\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Create Conversation with Bot member\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "349" + "502" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Bots cannot IM other bots\"\r\n }\r\n}", @@ -28,26 +32,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:34 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:18 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithInvalidBot.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithInvalidBot.json index d27b6c4af6..67ac030d2a 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithInvalidBot.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithInvalidBot.json @@ -4,17 +4,21 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"invalid-id\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Create Conversation with invalid Bot\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"invalid-id\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Create Conversation with invalid Bot\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "341" + "494" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"Invalid userId: invalid-id\"\r\n }\r\n}", @@ -28,26 +32,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:26 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:22 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithoutMembers.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithoutMembers.json index bedda16387..04600b0709 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithoutMembers.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/CreateConversationWithoutMembers.json @@ -4,17 +4,21 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Create Conversation without members\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Create Conversation without members\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "296" + "449" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadArgument\",\r\n \"message\": \"Conversations must be to a single member\"\r\n }\r\n}", @@ -28,26 +32,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:31 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:04 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivity.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivity.json index 0fa425087d..9af4f73262 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivity.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivity.json @@ -4,96 +4,104 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be deleted\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be deleted\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "336" + "489" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187113.000509\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641071.000071\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:33 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:10 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities/1515187113.000509", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXMvMTUxNTE4NzExMy4wMDA1MDk=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities/1516641071.000071", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXMvMTUxNjY0MTA3MS4wMDAwNzE=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{}", "ResponseHeaders": { + "Content-Length": [ + "2" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:34 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:11 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithInvalidConversationId.json index 2e166f9cc3..febac37f50 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithInvalidConversationId.json @@ -4,63 +4,71 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be deleted with invalid conversation Id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be deleted with invalid conversation Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "365" + "518" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187110.000180\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641068.000195\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:30 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:07 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7K:T03CWQ0QB/activities/1515187110.000180", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdLJTNBVDAzQ1dRMFFCL2FjdGl2aXRpZXMvMTUxNTE4NzExMC4wMDAxODA=", + "RequestUri": "/v3/conversations/B21S8SG7K:T03CWQ0QB/activities/1516641068.000195", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdLJTNBVDAzQ1dRMFFCL2FjdGl2aXRpZXMvMTUxNjY0MTA2OC4wMDAxOTU=", "RequestMethod": "DELETE", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"Invalid ConversationId: B21S8SG7K:T03CWQ0QB\"\r\n }\r\n}", @@ -74,26 +82,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:30 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:07 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullActivityId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullActivityId.json index 27af68676f..4e6da39ecf 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullActivityId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullActivityId.json @@ -4,53 +4,54 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be deleted with null activity Id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be deleted with null activity Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "358" + "511" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515598146.000102\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641082.000206\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:05 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:22 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullConversationId.json index d1ef649ad2..20297a3811 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/DeleteActivityWithNullConversationId.json @@ -4,53 +4,54 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be deleted with null conversation Id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be deleted with null conversation Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "362" + "515" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515598162.000958\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641081.000358\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:23 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:21 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembers.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembers.json index f1f3bc5d8e..909c5d6885 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembers.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembers.json @@ -4,96 +4,104 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Get Activity Members\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Get Activity Members\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "334" + "487" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187099.000493\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641083.000259\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:19 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:23 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities/1515187099.000493/members", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXMvMTUxNTE4NzA5OS4wMDA0OTMvbWVtYmVycw==", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities/1516641083.000259/members", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXMvMTUxNjY0MTA4My4wMDAyNTkvbWVtYmVycw==", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "[\r\n {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\",\r\n \"name\": \"manxbot\"\r\n },\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\",\r\n \"name\": \"amit.stein\"\r\n }\r\n]", + "ResponseBody": "[\r\n {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\",\r\n \"name\": \"botbuilder-pc-bot\"\r\n },\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\",\r\n \"name\": \"pc\"\r\n }\r\n]", "ResponseHeaders": { + "Content-Length": [ + "144" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:19 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:23 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithInvalidConversationId.json index f9a5104ba2..b9905f6fa8 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithInvalidConversationId.json @@ -4,63 +4,71 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Get Activity Members with invalid conversation id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Get Activity Members with invalid conversation id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "363" + "516" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187103.000188\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641086.000459\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:23 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:26 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7M/activities/1515187103.000188/members", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3TS9hY3Rpdml0aWVzLzE1MTUxODcxMDMuMDAwMTg4L21lbWJlcnM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7CM/activities/1516641086.000459/members", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDTS9hY3Rpdml0aWVzLzE1MTY2NDEwODYuMDAwNDU5L21lbWJlcnM=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"GetMembersAsync FAILED: The specified channel was not found\"\r\n }\r\n}", @@ -74,26 +82,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:23 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:26 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullActivityId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullActivityId.json index b0149cb26e..33840302e6 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullActivityId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullActivityId.json @@ -4,53 +4,54 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Get Activity Members with null activity id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Get Activity Members with null activity id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "356" + "509" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515598141.000257\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641080.000996\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:01 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:21 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullConversationId.json index 9486c8a5dc..b51362a628 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetActivityMembersWithNullConversationId.json @@ -4,53 +4,54 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Get Activity Members with null conversation id\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Get Activity Members with null conversation id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "360" + "513" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515598150.000909\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641070.000334\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:10 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:10 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembers.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembers.json index 1d6fa59b20..6abb2d0cff 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembers.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembers.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,87 +13,95 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:32 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:08 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/members", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L21lbWJlcnM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/members", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL21lbWJlcnM=", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "[\r\n {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\",\r\n \"name\": \"manxbot\"\r\n },\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\",\r\n \"name\": \"amit.stein\"\r\n }\r\n]", + "ResponseBody": "[\r\n {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\",\r\n \"name\": \"botbuilder-pc-bot\"\r\n },\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\",\r\n \"name\": \"pc\"\r\n }\r\n]", "ResponseHeaders": { + "Content-Length": [ + "144" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:32 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:09 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembersWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembersWithInvalidConversationId.json index b3825959e4..3c6f73449f 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembersWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/GetConversationMembersWithInvalidConversationId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,54 +13,62 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:20 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:16 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7M/members", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3TS9tZW1iZXJz", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7CM/members", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDTS9tZW1iZXJz", "RequestMethod": "GET", "RequestBody": "", "RequestHeaders": { "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"GetMembersAsync FAILED: The specified channel was not found\"\r\n }\r\n}", @@ -74,26 +82,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:21 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:17 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivity.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivity.json index fc57e9610a..09f56d7d55 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivity.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivity.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,145 +13,157 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:23 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:23 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity gets a reply\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity gets a reply\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "175" + "316" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187104.000202\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641084.000496\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:24 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:24 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities/1515187104.000202", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXMvMTUxNTE4NzEwNC4wMDAyMDI=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities/1516641084.000496", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXMvMTUxNjY0MTA4NC4wMDA0OTY=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Reply to Activity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply to Activity\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "171" + "312" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187104.000310\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641084.000760\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:24 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:24 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithInvalidConversationId.json index 224b97230a..952d78bd04 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithInvalidConversationId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,112 +13,124 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:21 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:05 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Replay activity with invalid conversation id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply activity with invalid conversation id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "198" + "338" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187102.000105\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641066.000468\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:22 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:06 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7M/activities/1515187102.000105", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3TS9hY3Rpdml0aWVzLzE1MTUxODcxMDIuMDAwMTA1", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7CM/activities/1516641066.000468", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDTS9hY3Rpdml0aWVzLzE1MTY2NDEwNjYuMDAwNDY4", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Reply mustn't shown\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply mustn't shown\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "173" + "314" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"SendActivityToUserAsync FAILED: The specified channel was not found\"\r\n }\r\n}", @@ -132,26 +144,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:22 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:06 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullActivityId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullActivityId.json index 9be1c599d2..7a1caec304 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullActivityId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullActivityId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:18 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:05 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Reply activity with null activity id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply activity with null activity id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "190" + "331" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598158.000743\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641065.000218\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:19 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:05 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullConversationId.json index 4a473087b2..6d43661fcc 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullConversationId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:24 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:16 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Reply activity with null conversation id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply activity with null conversation id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "194" + "335" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598165.000019\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641076.000646\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:25 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:16 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullReply.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullReply.json index 69be407e50..779386bc4d 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullReply.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/ReplyToActivityWithNullReply.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:15 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:25 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=cfaeda5806a3768888e707969568c07d2824ec67e3dd88e924400998c026e3ff;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Reply activity with null reply\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Reply activity with null reply\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "184" + "325" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598155.000203\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641085.000417\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:15 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:25 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendCardToConversation.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendCardToConversation.json index 9800e7c238..a045bbcb3a 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendCardToConversation.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendCardToConversation.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,93 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:16 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:12 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send Card to Conversation\",\r\n \"attachments\": [\r\n {\r\n \"contentType\": \"Hero\",\r\n \"content\": {\r\n \"title\": \"A static image\",\r\n \"subtitle\": \"JPEG image\",\r\n \"images\": [\r\n {\r\n \"url\": \"https://docs.microsoft.com/en-us/bot-framework/media/designing-bots/core/dialogs-screens.png\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"contentType\": \"Hero\",\r\n \"content\": {\r\n \"title\": \"An animation\",\r\n \"subtitle\": \"GIF image\",\r\n \"images\": [\r\n {\r\n \"url\": \"http://i.giphy.com/Ki55RUbOV5njy.gif\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"name\": \"acticity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send Card to Conversation\",\r\n \"attachments\": [\r\n {\r\n \"contentType\": \"application/vnd.microsoft.card.hero\",\r\n \"content\": {\r\n \"title\": \"A static image\",\r\n \"subtitle\": \"JPEG image\",\r\n \"images\": [\r\n {\r\n \"url\": \"https://docs.microsoft.com/en-us/bot-framework/media/designing-bots/core/dialogs-screens.png\"\r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"contentType\": \"application/vnd.microsoft.card.hero\",\r\n \"content\": {\r\n \"title\": \"An animation\",\r\n \"subtitle\": \"GIF image\",\r\n \"images\": [\r\n {\r\n \"url\": \"http://i.giphy.com/Ki55RUbOV5njy.gif\"\r\n }\r\n ]\r\n }\r\n }\r\n ],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "804" + "985" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187097.000484\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641074.000204\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:17 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:13 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversation.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversation.json index 3b251439fe..e98a33429e 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversation.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversation.json @@ -4,102 +4,110 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send to Conversation\",\r\n \"name\": \"acticity\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send to Conversation\",\r\n \"attachments\": [],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "359" + "512" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187107.000207\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641079.000548\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:27 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:19 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send to Conversation\",\r\n \"name\": \"acticity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send to Conversation\",\r\n \"attachments\": [],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "197" + "338" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187107.000342\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641080.000236\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:27 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:19 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidBotId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidBotId.json index f84d7e1123..d029d66863 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidBotId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidBotId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,60 +13,68 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:29 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:18 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7M/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3TS9hY3Rpdml0aWVz", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7CM/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDTS9hY3Rpdml0aWVz", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7K:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send to Conversation\",\r\n \"name\": \"acticity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7K:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send to Conversation\",\r\n \"attachments\": [],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "197" + "338" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"MissingProperty\",\r\n \"message\": \"The bot referenced by the 'from' field is unrecognized\"\r\n }\r\n}", @@ -80,26 +88,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:29 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:18 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidConversationId.json index 7f7d5b4792..67298e6ede 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithInvalidConversationId.json @@ -4,69 +4,77 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send to Conversation with invalid conversation id\",\r\n \"name\": \"acticity\"\r\n }\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ],\r\n \"activity\": {\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send to Conversation with invalid conversation id\",\r\n \"attachments\": [],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n }\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "388" + "541" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"activityId\": \"1515187105.000344\",\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"activityId\": \"1516641069.000285\",\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "83" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:24 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:09 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7M/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3TS9hY3Rpdml0aWVz", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7CM/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDTS9hY3Rpdml0aWVz", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Send to Conversation with invalid conversation id\",\r\n \"name\": \"acticity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Send to Conversation with invalid conversation id\",\r\n \"attachments\": [],\r\n \"entities\": [],\r\n \"name\": \"acticity\"\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "226" + "367" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"SendActivityToUserAsync FAILED: The specified channel was not found\"\r\n }\r\n}", @@ -80,26 +88,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:25 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:09 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithNullActivity.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithNullActivity.json index 01fc8bc0c4..2db3732c3e 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithNullActivity.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/SendToConversationWithNullActivity.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,44 +13,45 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:17 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:05 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivity.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivity.json index 01337d2ca4..bc22179e4c 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivity.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivity.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,145 +13,157 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:18 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:02 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be updated\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be updated\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "176" + "317" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187098.000353\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641063.000556\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:18 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:03 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities/1515187098.000353", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXMvMTUxNTE4NzA5OC4wMDAzNTM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities/1516641063.000556", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXMvMTUxNjY0MTA2My4wMDA1NTY=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"id\": \"1515187098.000353\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Successfully activity updated\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"id\": \"1516641063.000556\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Successfully activity updated\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "213" + "354" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187098.000353\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641063.000556\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:19 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:04 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithInvalidConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithInvalidConversationId.json index d816f7a7ce..441fcf1c64 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithInvalidConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithInvalidConversationId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,112 +13,124 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:28 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:12 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be updated with invalid conversation Id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be updated with invalid conversation Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "205" + "346" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515187108.000284\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641072.000312\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:28 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:12 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7K:T03CWQ0QB/activities/1515187108.000284", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdLJTNBVDAzQ1dRMFFCL2FjdGl2aXRpZXMvMTUxNTE4NzEwOC4wMDAyODQ=", + "RequestUri": "/v3/conversations/B21S8SG7K:T03CWQ0QB/activities/1516641072.000312", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdLJTNBVDAzQ1dRMFFCL2FjdGl2aXRpZXMvMTUxNjY0MTA3Mi4wMDAzMTI=", "RequestMethod": "PUT", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"id\": \"1515187108.000284\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity mustn't be updated\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"id\": \"1516641072.000312\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity mustn't be updated\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "211" + "352" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ServiceError\",\r\n \"message\": \"Invalid ConversationId: B21S8SG7K:T03CWQ0QB\"\r\n }\r\n}", @@ -132,26 +144,26 @@ "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Fri, 05 Jan 2018 21:18:28 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:12 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 400 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivity.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivity.json index f5896e2385..f228db2afc 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivity.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivity.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:07 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:27 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be updated with null activity\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be updated with null activity\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "195" + "336" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598148.000132\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641087.000516\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:07 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:27 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivityId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivityId.json index 56b4dc7e2e..c274dd3414 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivityId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullActivityId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:10 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:14 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be updated with null activity Id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be updated with null activity Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "198" + "339" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598150.000273\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641075.000039\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:10 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:15 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 diff --git a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullConversationId.json b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullConversationId.json index 427ddcc9de..3f467b7cc0 100644 --- a/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullConversationId.json +++ b/tests/Microsoft.Bot.Connector.Tests/SessionRecords/Connector.Tests.ConversationsTest/UpdateActivityWithNullConversationId.json @@ -4,7 +4,7 @@ "RequestUri": "/v3/conversations", "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n }\r\n ]\r\n}", + "RequestBody": "{\r\n \"bot\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"members\": [\r\n {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n }\r\n ]\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" @@ -13,96 +13,101 @@ "125" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"B21S8SG7J:T03CWQ0QB:D8PNY7UQ7\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"B21UTEF8S:T03CWQ0QB:D2369CT7C\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "45" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:12 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:06 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Set-Cookie": [ - "ARRAffinity=f76e64c95ab5d1672884a9e933cce2851d5a7139606561276f150e3fe6f8ca2a;Path=/;HttpOnly;Domain=slack.botframework.com" - ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200 }, { - "RequestUri": "/v3/conversations/B21S8SG7J:T03CWQ0QB:D8PNY7UQ7/activities", - "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxUzhTRzdKJTNBVDAzQ1dRMFFCJTNBRDhQTlk3VVE3L2FjdGl2aXRpZXM=", + "RequestUri": "/v3/conversations/B21UTEF8S:T03CWQ0QB:D2369CT7C/activities", + "EncodedRequestUri": "L3YzL2NvbnZlcnNhdGlvbnMvQjIxVVRFRjhTJTNBVDAzQ1dRMFFCJTNBRDIzNjlDVDdDL2FjdGl2aXRpZXM=", "RequestMethod": "POST", - "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21S8SG7J:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U8H8E2HSB:T03CWQ0QB\"\r\n },\r\n \"text\": \"TEST Activity to be updated with null conversation Id\"\r\n}", + "RequestBody": "{\r\n \"type\": \"message\",\r\n \"from\": {\r\n \"id\": \"B21UTEF8S:T03CWQ0QB\"\r\n },\r\n \"recipient\": {\r\n \"id\": \"U19KH8EHJ:T03CWQ0QB\"\r\n },\r\n \"membersAdded\": [],\r\n \"membersRemoved\": [],\r\n \"reactionsAdded\": [],\r\n \"reactionsRemoved\": [],\r\n \"text\": \"TEST Activity to be updated with null conversation Id\",\r\n \"attachments\": [],\r\n \"entities\": []\r\n}", "RequestHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Content-Length": [ - "202" + "343" ], "User-Agent": [ - "FxVersion/4.6.25211.01", - "Microsoft.Azure.BotFramework.Connector.BotConnector/2.0.0.0" + "FxVersion/4.7.2600.0", + "OSName/Windows10Enterprise", + "OSVersion/6.3.16299", + "Microsoft.Bot.Connector.ConnectorClient/0.0.0.0", + "Microsoft-BotFramework/4.0", + "(BotBuilder .Net/0.0.0.0)" ] }, - "ResponseBody": "{\r\n \"id\": \"1515598152.000919\"\r\n}", + "ResponseBody": "{\r\n \"id\": \"1516641067.000346\"\r\n}", "ResponseHeaders": { + "Content-Length": [ + "33" + ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Cache-Control": [ + "Pragma": [ "no-cache" ], - "Date": [ - "Wed, 10 Jan 2018 15:29:12 GMT" + "Request-Context": [ + "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" ], - "Pragma": [ + "Strict-Transport-Security": [ + "max-age=31536000" + ], + "Cache-Control": [ "no-cache" ], + "Date": [ + "Mon, 22 Jan 2018 17:11:07 GMT" + ], "Server": [ "Microsoft-IIS/10.0" ], - "Vary": [ - "Accept-Encoding" - ], - "Request-Context": [ - "appId=cid-v1:6814484e-c0d5-40ea-9dba-74ff29ca4f62" - ], "X-Powered-By": [ "ASP.NET" - ], - "Strict-Transport-Security": [ - "max-age=31536000" ] }, "StatusCode": 200