From 10dce93742688eb9185eded6968413fb9670c556 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Sun, 22 Mar 2020 12:04:29 +0200 Subject: Change-Management tests: reset presets before each test This might prevent cascaded failures across the suite. Issue-ID: VID-647 Change-Id: If12e4c5c32e7bc14bfb9860993f1a29a4ce1be62 Signed-off-by: Ittay Stern --- .../src/test/java/org/onap/vid/api/ChangeManagementApiTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vid-automation') diff --git a/vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java b/vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java index abca42170..d0481fadd 100644 --- a/vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java +++ b/vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java @@ -67,6 +67,7 @@ import org.springframework.util.StopWatch; import org.springframework.web.client.RestTemplate; import org.testng.Assert; import org.testng.annotations.BeforeClass; +import org.testng.annotations.BeforeMethod; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import vid.automation.test.infra.FeatureTogglingTest; @@ -179,7 +180,7 @@ public class ChangeManagementApiTest extends BaseApiTest { super.login(); } - @BeforeClass + @BeforeMethod public static void commonSimulatorRegistration() { SimulatorApi.registerExpectationFromPreset( PresetAAIGetCloudOwnersByCloudRegionId.PRESET_MDT1_TO_ATT_NC, -- cgit 1.2.3-korg