Skip to content

Commit

Permalink
Changed test_from folder to /etc
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Apr 19, 2024
1 parent 60e2e93 commit e3f290f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/auditevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,17 +630,17 @@ mod tests {
(String::from("name"), String::from("/tmp"))
]);*/

let mut test_file = fs::File::create("/tmp/auditevent_test_from.txt").unwrap();
let mut test_file = fs::File::create("/etc/auditevent_test_from.txt").unwrap();
test_file.write_all(b"Hello, world!").unwrap();

let paths = Vec::from([
HashMap::<String, String>::from([
(String::from("name"), String::from("/tmp")),
(String::from("name"), String::from("/etc")),
(String::from("nametype"), String::from("PARENT"))
]),
HashMap::<String, String>::from([
(String::from("nametype"), String::from("nametype")),
(String::from("name"), String::from("/tmp/auditevent_test_from.txt")),
(String::from("name"), String::from("/etc/auditevent_test_from.txt")),
(String::from("ogid"), String::from("ogid")),
(String::from("rdev"), String::from("rdev")),
(String::from("cap_fver"), String::from("cap_fver")),
Expand Down Expand Up @@ -684,7 +684,7 @@ mod tests {
assert_eq!(utils::get_hostname(), event.hostname);
assert_eq!(String::from("FIM"), event.node);
assert_eq!(String::from(config::VERSION), event.version);
assert_eq!(String::from("/tmp"), event.path);
assert_eq!(String::from("/etc"), event.path);
assert_eq!(String::from("auditevent_test_from.txt"), event.file);
assert_eq!(13, event.size);
//assert_eq!(..., event.labels);
Expand Down

0 comments on commit e3f290f

Please sign in to comment.