build_test.go 514 B

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