Commit 46dd8c91 authored by GuessWhoSamFoo's avatar GuessWhoSamFoo
Browse files

Add e2e test


Signed-off-by: default avatarGuessWhoSamFoo <sfoohei@gmail.com>
parent de4921ad
......@@ -110,6 +110,16 @@ var _ = Describe("ks env", func() {
})
})
Describe("rm", func() {
It("attempt to remove an invalid environment", func() {
o := a.envAdd("default", false)
o = a.runKs("env", "rm", "invalid")
assertExitStatus(o, 1)
assertOutput("env/rm/invalid-output.txt", o.stdout)
})
})
Describe("set", func() {
Context("updating env name", func() {
It("updates the name of an environment", func() {
......
level=error "environment \"invalid\" does not exist"
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment