12345678910111213141516171819202122232425262728293031 |
- 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)
- })
- }
|