common_test.go 542 B

12345678910111213141516171819202122232425
  1. package service
  2. import (
  3. "testing"
  4. . "github.com/smartystreets/goconvey/convey"
  5. )
  6. func TestService_ComConfigsByTagID(t *testing.T) {
  7. svr := svr(t)
  8. Convey("should app by name", t, func() {
  9. res, err := svr.ConfigsByTagID(1)
  10. So(err, ShouldBeNil)
  11. So(res, ShouldNotBeEmpty)
  12. })
  13. }
  14. func TestService_ComConfigsByTeam(t *testing.T) {
  15. svr := svr(t)
  16. Convey("should get common config by team", t, func() {
  17. res, err := svr.ComConfigsByTeam("main.common-arch", "dev", "shd", 1, 1)
  18. So(err, ShouldBeNil)
  19. So(res, ShouldNotBeEmpty)
  20. })
  21. }