Skip to content
Snippets Groups Projects
Commit ae8211fe authored by Volodymyr Sydorenko's avatar Volodymyr Sydorenko
Browse files

Merge branch 'disable_tests_when_the_replay_feature_disabled' into 'master'

Enable integration tests flag for replay feature.

See merge request !963
parents 193a359f 2e9852b7
No related branches found
No related tags found
1 merge request!963Enable integration tests flag for replay feature.
Pipeline #301658 failed
......@@ -21,6 +21,8 @@ import org.opengroup.osdu.storage.Replay.ReplayEndpointsTests;
import org.opengroup.osdu.storage.util.AzureTestUtils;
import org.opengroup.osdu.storage.util.ConfigUtils;
import static org.junit.Assume.assumeTrue;
public class TestReplayEndpoint extends ReplayEndpointsTests {
private static final AzureTestUtils azureTestUtils = new AzureTestUtils();
......@@ -40,6 +42,7 @@ public class TestReplayEndpoint extends ReplayEndpointsTests {
public void setup() throws Exception {
this.testUtils = new AzureTestUtils();
this.configUtils = new ConfigUtils("test.properties");
assumeTrue(configUtils.isTestReplayEnabled());
}
@After
......
......@@ -51,6 +51,8 @@ public class ConfigUtils {
return getBooleanProperty("collaboration.enabled", "false");
}
public boolean isTestReplayEnabled(){ return getBooleanProperty("test.replay.enabled", "false");}
public boolean getIsTestReplayAllEnabled() { return getBooleanProperty("test.replayAll.enabled", "false");}
public long getTimeoutForReplay() { return getLongProperty("test.replayAll.timeout", "60");}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment