aboutsummaryrefslogtreecommitdiffstats
path: root/vid-automation/src/test/java/org
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-03-22 12:04:29 +0200
committerIttay Stern <ittay.stern@att.com>2020-03-22 10:36:55 +0000
commit10dce93742688eb9185eded6968413fb9670c556 (patch)
tree9e92e4f6835fd3c7d53c20c18cf6dc6d2ab62d9e /vid-automation/src/test/java/org
parent3f7f2146b06bc9c8b64a00832b06eeafa266ed67 (diff)
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 <ittay.stern@att.com>
Diffstat (limited to 'vid-automation/src/test/java/org')
-rw-r--r--vid-automation/src/test/java/org/onap/vid/api/ChangeManagementApiTest.java3
1 files changed, 2 insertions, 1 deletions
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,