Merge branch 'feature/level-tuning#390' of github.com:Yamato-Security/hayabusa into feature/level-tuning#390
This commit is contained in:
@@ -83,6 +83,7 @@ impl LevelTuning {
|
||||
};
|
||||
|
||||
file.write_all(content.as_bytes()).unwrap();
|
||||
file.flush().unwrap();
|
||||
println!(
|
||||
"level: {} -> {}",
|
||||
rule["level"].as_str().unwrap(),
|
||||
@@ -145,7 +146,7 @@ mod tests {
|
||||
level: high
|
||||
"#;
|
||||
|
||||
let path = "test_files/rules/level_tuning_sample.yml";
|
||||
let path = "test_files/rules/level_tuning.txt";
|
||||
let mut file = File::create(path).unwrap();
|
||||
let buf = rule_str.as_bytes();
|
||||
file.write_all(buf).unwrap();
|
||||
|
||||
2
test_files/config/level_tuning.txt
Normal file
2
test_files/config/level_tuning.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
id,next_level
|
||||
12345678-1234-1234-1234-123456789012,high
|
||||
Reference in New Issue
Block a user