mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Remove Factory from more Run commands
This commit is contained in:
@@ -1121,7 +1121,7 @@ func TestRunApplySetLastApplied(t *testing.T) {
|
||||
name: "set with exist object",
|
||||
filePath: filenameRC,
|
||||
expectedErr: "",
|
||||
expectedOut: "replicationcontroller/test-rc\n",
|
||||
expectedOut: "replicationcontroller/test-rc configured\n",
|
||||
output: "name",
|
||||
},
|
||||
{
|
||||
@@ -1134,7 +1134,7 @@ func TestRunApplySetLastApplied(t *testing.T) {
|
||||
{
|
||||
name: "set for the annotation does not exist on the live object",
|
||||
filePath: filenameRCNoAnnotation,
|
||||
expectedErr: "error: no last-applied-configuration annotation found on resource: no-annotation, to create the annotation, run the command with --create-annotation\nSee 'set-last-applied -h' for help and examples.",
|
||||
expectedErr: "error: no last-applied-configuration annotation found on resource: no-annotation, to create the annotation, run the command with --create-annotation",
|
||||
expectedOut: "",
|
||||
output: "name",
|
||||
},
|
||||
@@ -1142,14 +1142,14 @@ func TestRunApplySetLastApplied(t *testing.T) {
|
||||
name: "set with exist object output json",
|
||||
filePath: filenameRCJSON,
|
||||
expectedErr: "",
|
||||
expectedOut: "replicationcontroller/test-rc\n",
|
||||
expectedOut: "replicationcontroller/test-rc configured\n",
|
||||
output: "name",
|
||||
},
|
||||
{
|
||||
name: "set test for a directory of files",
|
||||
filePath: dirName,
|
||||
expectedErr: "",
|
||||
expectedOut: "replicationcontroller/test-rc\nreplicationcontroller/test-rc\n",
|
||||
expectedOut: "replicationcontroller/test-rc configured\nreplicationcontroller/test-rc configured\n",
|
||||
output: "name",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user