summaryrefslogtreecommitdiff
path: root/rules/rules_test.go
diff options
context:
space:
mode:
authorEnderByEndera <[email protected]>2021-01-05 18:12:47 +0800
committerEnderByEndera <[email protected]>2021-01-05 18:12:47 +0800
commitff5e63a5c277b9fe2284fd2d9ed988cec177431a (patch)
tree14dc81eecac2a88b2c8e75d1302f8cb771e6c89a /rules/rules_test.go
parentc8e63c7cf633d01688b7d65199703d03863910ee (diff)
1. in root.go, added a new goroutine to output0.0.5
output.json in 3 mins(will let user change it in the future) 2. in version.go changed version from 0.0.2 to 0.0.5 3. changed GetCommands, not GetCommands func will have no args and will call GetCommandsFromHist func 4. deleted verEndpoint and startEvaluateEndpoint func for it has no value 5. added history.sh to use history command-line tool 6. deleted router.StartRouter() in main.go
Diffstat (limited to 'rules/rules_test.go')
-rw-r--r--rules/rules_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/rules_test.go b/rules/rules_test.go
index f29785f..41eb131 100644
--- a/rules/rules_test.go
+++ b/rules/rules_test.go
@@ -1,7 +1,7 @@
/*
* @Author: EnderByEndera
* @Date: 2020-12-04 15:03:09
- * @LastEditTime: 2021-01-04 16:43:21
+ * @LastEditTime: 2021-01-05 17:19:26
* @LastEditors: Please set LastEditors
* @Description: Test commrules.go
* @FilePath: /commdetection/rules/commrules_test.go
@@ -127,7 +127,7 @@ func TestRule(t *testing.T) {
}
func TestInitCommScores(t *testing.T) {
- comms := comm.GetCommands("/root/.bash_history", "")
+ comms := comm.GetCommands()
comms = comm.FlushCommands(comms, []comm.Filter{comm.WhichCommandFilter})
css := InitCommScores(comms)
fmt.Println(css)