Merge pull request #75302 from liggitt/apps-v1-test

Use apps/v1 APIs in integration tests
This commit is contained in:
Kubernetes Prow Robot 2019-03-22 14:09:49 -07:00 committed by GitHub
commit 290cf142e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,7 +461,7 @@ func TestApplyRemoveContainerPort(t *testing.T) {
defer closeFn()
obj := []byte(`{
"apiVersion": "extensions/v1beta1",
"apiVersion": "apps/v1",
"kind": "Deployment",
"metadata": {
"name": "deployment",
@ -495,7 +495,7 @@ func TestApplyRemoveContainerPort(t *testing.T) {
}`)
_, err := client.CoreV1().RESTClient().Patch(types.ApplyPatchType).
AbsPath("/apis/extensions/v1beta1").
AbsPath("/apis/apps/v1").
Namespace("default").
Resource("deployments").
Name("deployment").