We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6720760 commit f9eed54Copy full SHA for f9eed54
integrationtest/repo_test.go
@@ -425,6 +425,15 @@ func RepoSpec(ctx context.Context, urlStr string) func(c convey.C) {
425
convey.So(*newResult.JSON200, convey.ShouldHaveLength, 1)
426
convey.So((*newResult.JSON200)[0].Message, convey.ShouldEqual, "second commit")
427
})
428
+
429
+ c.Convey("failed get commits by wrong params", func() {
430
+ resp, err := client.GetCommitsInRepository(ctx, userName, repoName, &api.GetCommitsInRepositoryParams{
431
+ After: utils.String("123"),
432
+ RefName: utils.String(controller.DefaultBranchName),
433
+ })
434
+ convey.So(err, convey.ShouldBeNil)
435
+ convey.So(resp.StatusCode, convey.ShouldEqual, http.StatusInternalServerError)
436
437
438
439
c.Convey("delete repository", func(c convey.C) {
integrationtest/root_test.go
@@ -14,9 +14,9 @@ func TestSpec(t *testing.T) {
14
15
convey.Convey("user test", t, UserSpec(ctx, urlStr))
16
convey.Convey("repo test", t, RepoSpec(ctx, urlStr))
17
- convey.Convey("branch test", t, BranchSpec(ctx, urlStr))
18
- convey.Convey("wip test", t, WipSpec(ctx, urlStr))
19
- convey.Convey("object test", t, ObjectSpec(ctx, urlStr))
20
- convey.Convey("wip object test", t, WipObjectSpec(ctx, urlStr))
21
- convey.Convey("commit test", t, GetEntriesInRefSpec(ctx, urlStr))
+ // convey.Convey("branch test", t, BranchSpec(ctx, urlStr))
+ // convey.Convey("wip test", t, WipSpec(ctx, urlStr))
+ // convey.Convey("object test", t, ObjectSpec(ctx, urlStr))
+ // convey.Convey("wip object test", t, WipObjectSpec(ctx, urlStr))
+ // convey.Convey("commit test", t, GetEntriesInRefSpec(ctx, urlStr))
22
}
0 commit comments