You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
514 B

package service
import (
"flag"
"path/filepath"
"testing"
"go-common/app/infra/databus/conf"
"github.com/smartystreets/goconvey/convey"
)
var (
s *Service
)
func init() {
dir, _ := filepath.Abs("../cmd/databus-test.toml")
flag.Set("conf", dir)
conf.Init()
s = New(conf.Conf)
}
func TestArchive(t *testing.T) {
convey.Convey("Archive", t, func() {
a, ok := s.AuthApp("databus_test_group")
convey.So(ok, convey.ShouldBeTrue)
convey.So(a, convey.ShouldNotBeNil)
convey.Printf("%+v", a)
})
}