Initial commit

This commit is contained in:
Donny
2019-04-22 20:46:32 +08:00
commit 49ab8aadd1
25441 changed files with 4055000 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
package service
import (
"context"
. "github.com/smartystreets/goconvey/convey"
"go-common/app/job/main/videoup-report/model/archive"
"testing"
)
func Test_ArcMonitorStats(t *testing.T) {
Convey("ArcMonitorStats", t, func() {
//var o *archive.Archive
o := &archive.Video{
ID: 10018978,
State: -30,
}
n := &archive.Video{
ID: 10018978,
State: -1,
}
err := s.hdlMonitorVideo(n, o)
So(err, ShouldBeNil)
})
}
func TestMonitorNotify(t *testing.T) {
Convey("MonitorNotify", t, func() {
tpl := s.email.MonitorNotifyTemplate("", "http://uat-manager.bilibili.co/#!/video/list?monitor_list=1_1_5", []string{"liusiming@bilibili.com"})
s.email.PushToRedis(context.TODO(), tpl)
s.email.Start("f_mail_list_fast")
})
}