Skip to content

Commit

Permalink
Tests for component creation in default app
Browse files Browse the repository at this point in the history
  • Loading branch information
ashetty1 committed Apr 19, 2018
1 parent 3631e4a commit 7131aaf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,25 @@ var _ = Describe("odo", func() {
})
})

Context("creating component without an application", func() {
It("should create the component in default application", func() {
runCmd("odo create php testcmp")

getCmp := runCmd("odo component get --short")
Expect(getCmp).To(Equal("testcmp"))

getApp := runCmd("odo app get --short")
Expect(getApp).To(Equal("app"))
})

It("should be able to delete the component", func() {
runCmd("odo delete testcmp -f")

getCmp := runCmd("odo component list")
Expect(getCmp).NotTo(ContainSubstring("testcmp"))
})
})

Describe("creating an application", func() {
Context("when application by the same name doesn't exist", func() {
It("should create an application", func() {
Expand Down

0 comments on commit 7131aaf

Please sign in to comment.