remove draft releases from resource check command

[#102513822]

Signed-off-by: Toby Rumans <trumans@pivotal.io>
This commit is contained in:
Evan Short
2015-09-11 17:30:53 -07:00
committed by Toby Rumans
parent b694a6e9c9
commit 118b16110f
3 changed files with 87 additions and 34 deletions

View File

@@ -5,9 +5,26 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/zachgersh/go-github/github"
)
func TestGithubReleaseResource(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Github Release Resource Suite")
}
func newRepositoryRelease(version string) github.RepositoryRelease {
draft := false
return github.RepositoryRelease{
TagName: github.String(version),
Draft: &draft,
}
}
func newDraftRepositoryRelease(version string) github.RepositoryRelease {
draft := true
return github.RepositoryRelease{
TagName: github.String(version),
Draft: &draft,
}
}