From 211c248f35f160e63f337ebd828d6774b9d5997e Mon Sep 17 00:00:00 2001 From: Danny Date: Mon, 10 Oct 2022 14:22:31 -0400 Subject: [PATCH] GC: Iterative Function: Bug fix (#1110) ## Description Contact Iterative sequence tests changed to reflect `exchange.Backup` functions used within `SetupExchangeCollectionVars()`. The previous bug was caused by misalignment from the old test configuration and the current implementation. ## Type of change - [x] :bug: Bugfix ## Issue(s) * closes #1107 ## Test Plan - [x] :zap: Unit test --- src/internal/connector/exchange/iterators_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/connector/exchange/iterators_test.go b/src/internal/connector/exchange/iterators_test.go index bd30291a1..770f2fbec 100644 --- a/src/internal/connector/exchange/iterators_test.go +++ b/src/internal/connector/exchange/iterators_test.go @@ -108,10 +108,10 @@ func (suite *ExchangeIteratorSuite) TestIterativeFunctions() { }, }, { name: "Contacts Iterative Check", - queryFunction: GetAllContactsForUser, - iterativeFunction: IterateSelectAllDescendablesForCollections, + queryFunction: GetAllContactFolderNamesForUser, + iterativeFunction: IterateSelectAllContactsForCollections, scope: contactScope[0], - transformer: models.CreateContactFromDiscriminatorValue, + transformer: models.CreateContactFolderCollectionResponseFromDiscriminatorValue, }, { name: "Contact Folder Traversal", queryFunction: GetAllContactFolderNamesForUser,