...

Text file src/k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-repeat-error/test.yaml

Documentation: k8s.io/kubectl/pkg/cmd/edit/testdata/testcase-repeat-error

     1description: add a testcase description
     2mode: edit
     3args:
     4- service/kubernetes
     5namespace: default
     6expectedStderr:
     7- "services \"kubernetes\" is invalid"
     8- A copy of your changes has been stored
     9- Edit cancelled, no valid changes were saved
    10expectedExitCode: 1
    11steps:
    12- type: request
    13  expectedMethod: GET
    14  expectedPath: /api/v1/namespaces/default/services/kubernetes
    15  expectedInput: 0.request
    16  resultingStatusCode: 200
    17  resultingOutput: 0.response
    18- type: edit
    19  expectedInput: 1.original
    20  resultingOutput: 1.edited
    21- type: request
    22  expectedMethod: PATCH
    23  expectedPath: /api/v1/namespaces/default/services/kubernetes
    24  expectedContentType: application/strategic-merge-patch+json
    25  expectedInput: 2.request
    26  resultingStatusCode: 422
    27  resultingOutput: 2.response
    28- type: edit
    29  expectedInput: 3.original
    30  resultingOutput: 3.edited

View as plain text