Skip to content

Commit

Permalink
check if namespace without sercice is created
Browse files Browse the repository at this point in the history
Signed-off-by: anandrkskd <anandrkskd@gmail.com>
  • Loading branch information
anandrkskd committed Aug 28, 2022
1 parent d2ac360 commit 5294919
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/integration/interactive_add_binding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,13 @@ var _ = Describe("odo add binding interactive command tests", func() {
var nsWithNoService string

BeforeEach(func() {
nsWithNoService = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
otherNS = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
addBindableKindInOtherNs := commonVar.CliRunner.Run("-n", otherNS, "apply", "-f",
helper.GetExamplePath("manifests", "bindablekind-instance.yaml"))
Expect(addBindableKindInOtherNs.ExitCode()).To(BeEquivalentTo(0))
commonVar.CliRunner.HasNamespaceProject(nsWithNoService)
nsWithNoService = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
Expect(commonVar.CliRunner.HasNamespaceProject(nsWithNoService)).Should(Equal(true))
Expect(commonVar.CliRunner.HasNamespaceProject(otherNS)).Should(Equal(true))

commonVar.CliRunner.SetProject(commonVar.Project)
})
Expand Down Expand Up @@ -555,12 +556,13 @@ var _ = Describe("odo add binding interactive command tests", func() {
var nsWithNoService string

BeforeEach(func() {
nsWithNoService = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
otherNS = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
addBindableKindInOtherNs := commonVar.CliRunner.Run("-n", otherNS, "apply", "-f",
helper.GetExamplePath("manifests", "bindablekind-instance.yaml"))
Expect(addBindableKindInOtherNs.ExitCode()).To(BeEquivalentTo(0))
commonVar.CliRunner.HasNamespaceProject(nsWithNoService)
nsWithNoService = commonVar.CliRunner.CreateAndSetRandNamespaceProject()
Expect(commonVar.CliRunner.HasNamespaceProject(nsWithNoService)).Should(Equal(true))
Expect(commonVar.CliRunner.HasNamespaceProject(otherNS)).Should(Equal(true))

commonVar.CliRunner.SetProject(commonVar.Project)
})
Expand Down

0 comments on commit 5294919

Please sign in to comment.