resource_test.go 337 B

12345678910111213141516171819
  1. package http
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/admin/main/aegis/model"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestSyncResource(t *testing.T) {
  9. var (
  10. c = context.TODO()
  11. )
  12. convey.Convey("SyncResource", t, func(ctx convey.C) {
  13. d.SyncResource(c, &model.Action{}, map[string]interface{}{"state": 1})
  14. })
  15. }