k3s/pkg/kubectl/cmd/testdata/edit/testcase-immutable-name/test.yaml

19 lines
439 B
YAML
Executable File

description: try to mutate a fixed field
mode: edit
args:
- configmap
namespace: "edit-test"
expectedStderr:
- At least one of apiVersion, kind and name was changed
expectedExitCode: 1
steps:
- type: request
expectedMethod: GET
expectedPath: /api/v1/namespaces/edit-test/configmaps
expectedInput: 0.request
resultingStatusCode: 200
resultingOutput: 0.response
- type: edit
expectedInput: 1.original
resultingOutput: 1.edited