Code Review
/
holmes
/
rule-management.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
bugfix - http/https protocol problem
[holmes/rule-management.git]
/
rulemgt
/
src
/
test
/
java
/
org
/
onap
/
holmes
/
rulemgt
/
dcae
/
ConfigFileScanningTaskTest.java
diff --git
a/rulemgt/src/test/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTaskTest.java
b/rulemgt/src/test/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTaskTest.java
index
053612b
..
d6d93a9
100644
(file)
--- a/
rulemgt/src/test/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTaskTest.java
+++ b/
rulemgt/src/test/java/org/onap/holmes/rulemgt/dcae/ConfigFileScanningTaskTest.java
@@
-44,6
+44,8
@@
public class ConfigFileScanningTaskTest {
@Test
public void run_add_rules() throws Exception {
@Test
public void run_add_rules() throws Exception {
+ System.setProperty("ENABLE_ENCRYPT", "true");
+
String clName = "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b";
String indexPath = getFilePath("index-add.json");
String contents = FileUtils.readTextFile(indexPath);
String clName = "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b";
String indexPath = getFilePath("index-add.json");
String contents = FileUtils.readTextFile(indexPath);
@@
-68,10
+70,14
@@
public class ConfigFileScanningTaskTest {
Map<String, String> config = Whitebox.getInternalState(cfst, "configInEffect");
assertThat(config.size(), is(1));
Map<String, String> config = Whitebox.getInternalState(cfst, "configInEffect");
assertThat(config.size(), is(1));
+
+ System.clearProperty("ENABLE_ENCRYPT");
}
@Test
public void run_remove_rules_normal() throws Exception {
}
@Test
public void run_remove_rules_normal() throws Exception {
+ System.setProperty("ENABLE_ENCRYPT", "false");
+
String clName = "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b";
String indexPath = getFilePath("index-add.json");
String contents = FileUtils.readTextFile(indexPath);
String clName = "ControlLoop-VOLTE-2179b738-fd36-4843-a71a-a8c24c70c55b";
String indexPath = getFilePath("index-add.json");
String contents = FileUtils.readTextFile(indexPath);
@@
-98,6
+104,8
@@
public class ConfigFileScanningTaskTest {
Map<String, String> config = Whitebox.getInternalState(cfst, "configInEffect");
assertThat(config.size(), is(0));
Map<String, String> config = Whitebox.getInternalState(cfst, "configInEffect");
assertThat(config.size(), is(0));
+
+ System.clearProperty("ENABLE_ENCRYPT");
}
@Test
}
@Test
@@
-238,4
+246,6
@@
public class ConfigFileScanningTaskTest {
ruleResult4API.setEnabled(1);
return ruleResult4API;
}
ruleResult4API.setEnabled(1);
return ruleResult4API;
}
+
+
}
\ No newline at end of file
}
\ No newline at end of file