Fix third party

This commit is contained in:
Brendan Burns
2016-05-12 15:59:19 -07:00
parent 5a99fcd21b
commit 328a8392b1
5 changed files with 163 additions and 37 deletions

View File

@@ -527,7 +527,6 @@ type FooList struct {
func initThirdParty(t *testing.T, version string) (*Master, *etcdtesting.EtcdTestServer, *httptest.Server, *assert.Assertions) {
master, etcdserver, _, assert := newMaster(t)
api := &extensions.ThirdPartyResource{
ObjectMeta: api.ObjectMeta{
Name: "foo.company.com",
@@ -742,6 +741,8 @@ func testInstallThirdPartyAPIGetVersion(t *testing.T, version string) {
}
func TestInstallThirdPartyAPIPost(t *testing.T) {
registered.AddThirdPartyAPIGroupVersions(unversioned.GroupVersion{Group: "company.com", Version: "v1"}, unversioned.GroupVersion{Group: "company.com", Version: "v3"})
for _, version := range versionsToTest {
testInstallThirdPartyAPIPostForVersion(t, version)
}