diff --git a/src/internal/connector/mockconnector/mock_data_collection_test.go b/src/internal/connector/mockconnector/mock_data_collection_test.go index e6660821f..32b68b29d 100644 --- a/src/internal/connector/mockconnector/mock_data_collection_test.go +++ b/src/internal/connector/mockconnector/mock_data_collection_test.go @@ -135,28 +135,48 @@ func (suite *MockExchangeDataSuite) TestMockByteHydration() { _, err := support.CreateMessageFromBytes(bytes) return err }, - }, { + }, + { + name: "Event Message Response: Regression", + transformation: func(t *testing.T) error { + bytes := mockconnector.GetMockEventMessageResponse(subject) + _, err := support.CreateMessageFromBytes(bytes) + return err + }, + }, + { + name: "Event Message Request: Regression", + transformation: func(t *testing.T) error { + bytes := mockconnector.GetMockEventMessageRequest(subject) + _, err := support.CreateMessageFromBytes(bytes) + return err + }, + }, + { name: "Contact Bytes", transformation: func(t *testing.T) error { bytes := mockconnector.GetMockContactBytes(subject) _, err := support.CreateContactFromBytes(bytes) return err }, - }, { + }, + { name: "Event No Attendees Bytes", transformation: func(t *testing.T) error { bytes := mockconnector.GetDefaultMockEventBytes(subject) _, err := support.CreateEventFromBytes(bytes) return err }, - }, { + }, + { name: "Event w/ Attendees Bytes", transformation: func(t *testing.T) error { bytes := mockconnector.GetMockEventWithAttendeesBytes(subject) _, err := support.CreateEventFromBytes(bytes) return err }, - }, { + }, + { name: "Sharepoint: List", transformation: func(t *testing.T) error { bytes, err := mockconnector.GetMockListBytes(subject) diff --git a/src/internal/connector/mockconnector/mock_data_message.go b/src/internal/connector/mockconnector/mock_data_message.go index cff6f3664..4c63806c9 100644 --- a/src/internal/connector/mockconnector/mock_data_message.go +++ b/src/internal/connector/mockconnector/mock_data_message.go @@ -24,6 +24,7 @@ const ( defaultMessageSender = "foobar@8qzvrj.onmicrosoft.com" defaultMessageTo = "LidiaH@8qzvrj.onmicrosoft.com" defaultMessageFrom = "foobar@8qzvrj.onmicrosoft.com" + defaultAlias = "A Stranger" // Order of fields to fill in: // 1. created datetime @@ -282,10 +283,42 @@ func GetMockMessageWithTwoAttachments(subject string) []byte { "style=\\\"font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)\\\">Lidia,