kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-syntax-error/test.yaml

description: edit with a syntax error, then re-edit and save
mode: edit
args:
- service/kubernetes
namespace: default
expectedStdout:
- "service/kubernetes edited"
expectedExitCode: 0
steps:
- type: request
  expectedMethod: GET
  expectedPath: /api/v1/namespaces/default/services/kubernetes
  expectedInput: 0.request
  resultingStatusCode: 200
  resultingOutput: 0.response
- type: edit
  expectedInput: 1.original
  resultingOutput: 1.edited
- type: edit
  expectedInput: 2.original
  resultingOutput: 2.edited
- type: request
  expectedMethod: PATCH
  expectedPath: /api/v1/namespaces/default/services/kubernetes
  expectedContentType: application/strategic-merge-patch+json
  expectedInput: 3.request
  resultingStatusCode: 200
  resultingOutput: 3.response