Sfoglia il codice sorgente

Adjust filepaths to test resources

Adjust the filepaths referenced by the tests to fit the new
filepaths introduced in commit 683867b8bc.
dustin.born 6 anni fa
parent
commit
5b280fd391

+ 1 - 1
code/Test/test_pcap_comparator.py

@@ -45,7 +45,7 @@ class PcapComparison(unittest.TestCase):
     PCAP_ENVIRONMENT_VALUE = "ID2T_SRC_PCAP"
     SEED_ENVIRONMENT_VALUE = "ID2T_SEED"
 
-    DEFAULT_PCAP = "resources/test/telnet-raw.pcap"
+    DEFAULT_PCAP = "resources/test/Botnet/telnet-raw.pcap"
     DEFAULT_SEED = "42"
 
     def __init__(self, *args, **kwargs):

+ 2 - 2
code/Test/test_regression.py

@@ -7,8 +7,8 @@ from Test.TestUtil import PcapComparator, ID2TExecution
 
 
 class RegressionTest(unittest.TestCase):
-    REGRESSION_DIRECTORY = "../code/Test/regression_files"
-    REGRESSION_DIRECTORY_ID2T_RELATIVE = "code/Test/regression_files"
+    REGRESSION_DIRECTORY = "../resources/test/Botnet/regression_files"
+    REGRESSION_DIRECTORY_ID2T_RELATIVE = "resources/test/Botnet/regression_files"
     ID2T_RELATIVE_TO_LOCAL_PREFIX = "../"
 
     META_FILE = "fileinfo.xml"

+ 1 - 1
resources/test/Botnet/regression_files/fileinfo.xml

@@ -9,7 +9,7 @@ compare the newly created files to the existing ones.
 Paths are relative to this files location
 -->
 <tests>
-    <test name="first_test" infile="../../../resources/telnet-raw.pcap" outfile="telnet_regression.pcap" seed="42">
+    <test name="first_test" infile="../telnet-raw.pcap" outfile="telnet_regression.pcap" seed="42">
         <param key="hidden_mark" value="True"/>
     </test>
 </tests>