Example #1
0
 def test_config_scan(self):
     Scanner.load_rules(os.path.join("ephemerol", "test", "rulebase.csv"))
     file_path_list = ['persistence.xml', 'web.xml', 'bing.xml', 'dir/dir/dir/ra.xml', '/dir/dir/ejb-jar.xml',
                       'dir/dir/web.xml']
     Scanner.config_scan(file_path_list=file_path_list)
     results = Scanner.scan_results
     self.assertEqual(4, len(results))
 def test_config_scan(self):
     file_path_list = ['persistence.xml', 'web.xml', 'bing.xml', 'dir/dir/dir/ra.xml', '/dir/dir/ejb-jar.xml',
                       'dir/dir/web.xml']
     Scanner.scan_results = []
     Scanner.config_scan(file_path_list=file_path_list)
     results = Scanner.scan_results
     self.assertEqual(5, len(results))
     print(results)
Example #3
0
 def test_config_scan(self):
     file_path_list = ['persistence.xml', 'web.xml', 'bing.xml', 'dir/dir/dir/ra.xml', '/dir/dir/ejb-jar.xml',
                       'dir/dir/web.xml']
     Scanner.scan_results = []
     Scanner.config_scan(file_path_list=file_path_list)
     results = Scanner.scan_results
     self.assertEqual(5, len(results))
     print(results)