Merge pull request #25894 from brendandburns/thirdparty-watch
Automatic merge from submit-queue Fix third party Fixes https://github.com/kubernetes/kubernetes/issues/25421 Fixes https://github.com/kubernetes/kubernetes/issues/25422 @AdoHe @sjenning @caesarxuchao @lavalamp @kubernetes/sig-api-machinery []()
This commit is contained in:
@@ -531,7 +531,6 @@ type FooList struct {
|
||||
|
||||
func initThirdParty(t *testing.T, version, name string) (*Master, *etcdtesting.EtcdTestServer, *httptest.Server, *assert.Assertions) {
|
||||
master, etcdserver, _, assert := newMaster(t)
|
||||
|
||||
api := &extensions.ThirdPartyResource{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
Name: name,
|
||||
@@ -773,6 +772,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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user