refresh_upload_video_test.go
734 字节
package vod
import (
"github.com/gavv/httpexpect"
"github.com/onsi/ginkgo"
"net/http"
)
var _ = ginkgo.Describe("刷新视频上次凭证", func() {
ginkgo.Describe("刷新视频上次凭证", func() {
ginkgo.Context("", func() {
ginkgo.It("", func() {
httpExpect := httpexpect.New(ginkgo.GinkgoT(), server.URL)
body := map[string]interface{}{
"videoId": "1023bc472c69499dbe332afa785ee610",
}
httpExpect.POST("/v1/vod/refreshUploadVideo").
WithJSON(body).
WithHeader("x-mmm-appproject", "opportunity").
Expect().
Status(http.StatusOK).
JSON().
Object().
ContainsKey("code").ValueEqual("code", 0).
ContainsKey("msg").ValueEqual("msg", "成功")
})
})
})
})