|
|
|
@ -83,7 +83,7 @@ func TestCreateRelease(t *testing.T) { |
|
|
|
|
session := loginUser(t, "user2") |
|
|
|
|
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, false) |
|
|
|
|
|
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.stable"), 2) |
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.stable"), 3) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestCreateReleasePreRelease(t *testing.T) { |
|
|
|
@ -92,7 +92,7 @@ func TestCreateReleasePreRelease(t *testing.T) { |
|
|
|
|
session := loginUser(t, "user2") |
|
|
|
|
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", true, false) |
|
|
|
|
|
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.prerelease"), 2) |
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.prerelease"), 3) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestCreateReleaseDraft(t *testing.T) { |
|
|
|
@ -101,7 +101,7 @@ func TestCreateReleaseDraft(t *testing.T) { |
|
|
|
|
session := loginUser(t, "user2") |
|
|
|
|
createNewRelease(t, session, "/user2/repo1", "v0.0.1", "v0.0.1", false, true) |
|
|
|
|
|
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.draft"), 2) |
|
|
|
|
checkLatestReleaseAndCount(t, session, "/user2/repo1", "v0.0.1", i18n.Tr("en", "repo.release.draft"), 3) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func TestCreateReleasePaging(t *testing.T) { |
|
|
|
|