mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
Address comments, and fix some bugs in kubectl.
This commit is contained in:
@@ -190,12 +190,10 @@ var _ = Describe("Kubectl client", func() {
|
||||
|
||||
It("should support inline execution and attach", func() {
|
||||
By("executing a command with run and attach")
|
||||
runOutput := runKubectl("run", fmt.Sprintf("--namespace=%v", ns), "run", "run-test", "--image=busybox", "--restart=Never", "--attach", "echo", "running", "in", "container")
|
||||
runOutput := runKubectl(fmt.Sprintf("--namespace=%v", ns), "run", "run-test", "--image=busybox", "--restart=Never", "--attach=true", "echo", "running", "in", "container")
|
||||
expectedRunOutput := "running in container"
|
||||
if runOutput != expectedRunOutput {
|
||||
Failf("Unexpected kubectl exec output. Wanted '%s', got '%s'", runOutput, expectedRunOutput)
|
||||
}
|
||||
runKubectl("delete", "pods", "run-test")
|
||||
Expect(runOutput).To(ContainSubstring(expectedRunOutput))
|
||||
// everything in the ns will be deleted at the end of the test
|
||||
})
|
||||
|
||||
It("should support port-forward", func() {
|
||||
|
||||
Reference in New Issue
Block a user