Skip to content

Commit

Permalink
Arm3l review part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
valaparthvi committed May 12, 2022
1 parent 4514e6a commit abd914b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/odo/cli/create/namespace/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ const RecommendedCommandName = "namespace"

var (
createExample = ktemplates.Examples(`
# Create a new namespace
# Create a new namespace and set it as the current active namespace
%[1]s my-namespace
`)

createLongDesc = ktemplates.LongDesc(`Create a new namespace.
This command directly performs actions on the cluster and doesn't require a push.
Any new namespace created with this command will also be set as the current active namespace.
`)

createShortDesc = `Create a new namespace`
Expand Down
1 change: 1 addition & 0 deletions tests/integration/cmd_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var _ = Describe("create/delete/list/get/set namespace tests", func() {
})
By("using an invalid namespace name", func() {
helper.Cmd("odo", "create", "namespace", "12345").ShouldFail()
Expect(commonVar.CliRunner.GetActiveNamespace()).To(Equal(commonVar.Project))
})
})
})

0 comments on commit abd914b

Please sign in to comment.