From fa46d8b59aee4727d92affb449fab781a238fc97 Mon Sep 17 00:00:00 2001 From: Matt Wise <wsmatth@amazon.com> Date: Thu, 24 Sep 2020 17:34:58 -0500 Subject: [PATCH] fix unit test --- .../provider/aws/service/PartitionServiceImplTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/provider/partition-aws/src/test/java/org/opengroup/osdu/partition/provider/aws/service/PartitionServiceImplTest.java b/provider/partition-aws/src/test/java/org/opengroup/osdu/partition/provider/aws/service/PartitionServiceImplTest.java index 6b9c468ba..9dfe81234 100644 --- a/provider/partition-aws/src/test/java/org/opengroup/osdu/partition/provider/aws/service/PartitionServiceImplTest.java +++ b/provider/partition-aws/src/test/java/org/opengroup/osdu/partition/provider/aws/service/PartitionServiceImplTest.java @@ -15,7 +15,6 @@ package org.opengroup.osdu.partition.provider.aws.service; - import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; @@ -29,6 +28,7 @@ import org.opengroup.osdu.partition.provider.aws.util.SSMHelper; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; +import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -86,7 +86,7 @@ public class PartitionServiceImplTest { when(ssmHelper.partitionExists(any())).thenReturn(false); when(ssmHelper.createOrUpdateSecret(any(), any(), any())).thenReturn(true); - when(ssmHelper.getPartitionSecrets(any())).thenReturn(this.partitionInfo.getProperties()); + when(ssmHelper.getSsmParamsPathsForPartition(any())).thenReturn(new ArrayList<String>(this.partitionInfo.getProperties().keySet())); PartitionInfo partInfo = partService.createPartition(this.partitionInfo.getProperties().get("id").toString(), this.partitionInfo); assertTrue(partInfo.getProperties().size() == 3); -- GitLab