Change-Management tests: reset presets before each test 21/104121/2
authorIttay Stern <ittay.stern@att.com>
Sun, 22 Mar 2020 10:04:29 +0000 (12:04 +0200)
committerIttay Stern <ittay.stern@att.com>
Sun, 22 Mar 2020 10:36:55 +0000 (10:36 +0000)
This might prevent cascaded failures across the suite.

Issue-ID: VID-647

Change-Id: If12e4c5c32e7bc14bfb9860993f1a29a4ce1be62
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java

index abca421..d0481fa 100644 (file)
@@ -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,