overlord_test.go 509 B

1234567891011121314151617181920
  1. package dao
  2. import (
  3. "context"
  4. "testing"
  5. "github.com/smartystreets/goconvey/convey"
  6. )
  7. func TestOverlordClusters(t *testing.T) {
  8. convey.Convey("get OverlordClusters", t, func(ctx convey.C) {
  9. ctx.Convey("When http response code != 0", func(ctx convey.C) {
  10. ocs, err := d.OverlordClusters(context.Background(), "", "main.common-arch.overlord")
  11. ctx.Convey("Then err should not be nil", func(ctx convey.C) {
  12. ctx.So(err, convey.ShouldBeNil)
  13. ctx.So(ocs, convey.ShouldNotBeNil)
  14. })
  15. })
  16. })
  17. }