Skip to content

Commit

Permalink
e2e: Add e2e- prefix to test namespaces
Browse files Browse the repository at this point in the history
It it hard to manage the namespaces created for every test when they
don't have a common prefix. Add "e2e-" prefix so all of them sort
together when listing namespaces.

Example namespaces during test:

    XXX

Fixes: RamenDR#1611
Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Dec 9, 2024
1 parent c52b8cd commit 246c33c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/test/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import (
"go.uber.org/zap"
)

// Make it eaisr to manage namespaces created by the tests.
const namespacePrefix = "e2e-"

type Context struct {
workload types.Workload
deployer types.Deployer
Expand Down Expand Up @@ -53,7 +56,7 @@ func (c *Context) ManagementNamespace() string {
}

func (c *Context) AppNamespace() string {
return c.name
return namespacePrefix + c.name
}

func (c *Context) Logger() *zap.SugaredLogger {
Expand Down

0 comments on commit 246c33c

Please sign in to comment.