Skip to content

Commit

Permalink
Support --name-prefix in drenv.test
Browse files Browse the repository at this point in the history
With this we can create and test an environment using --name-prefix.
This is likely to needed in CI when we run multiple environments
concurrently on the same host (.e.g one per pr).

Example usage:

    (cd test && drenv start --nane-prefix pr123- envs/regional-dr.yaml)
    ramenctl deploy --nane-prefix pr123- test/envs/regional-dr.yaml
    ramenctl config --nane-prefix pr123- test/envs/regional-dr.yaml
    test/basic-test/run  --nane-prefix pr123- test/envs/regional-dr.yaml

Part-of: RamenDR#959
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
  • Loading branch information
nirs committed Jul 6, 2023
1 parent 4c457f4 commit 4a54cb2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/drenv/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def start(name, file, config_file="config.yaml"):
action="store_true",
help="Be more verbose.",
)
parser.add_argument(
"--name-prefix",
help="Prefix profile names",
)
parser.add_argument(
"filename",
help="Environment filename",
Expand Down

0 comments on commit 4a54cb2

Please sign in to comment.