Skip to content

Commit

Permalink
Make application path configurable
Browse files Browse the repository at this point in the history
Add "path" config, so test config looks like OpenShift UI:

    repo: https://github.com/RamenDR/ocm-ramen-samples.git
    path: subscription
    branch: main
    name: busybox-sample
    namespace: busybox-sample

With this we can use basic test to test any subscription based
application in ocm-ramen-samples[1] and ocm-kubevirt-samples[2].

[1] https://github.com/RamenDR/ocm-ramen-samples
[2] https://github.com/aglitke/ocm-kubevirt-samples

Signed-off-by: Nir Soffer <[email protected]>
  • Loading branch information
nirs committed Nov 13, 2023
1 parent 719fd43 commit 7f1dae6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions test/basic-test/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

---
repo: https://github.com/ramendr/ocm-ramen-samples.git
path: subscription
branch: main
name: busybox-sample
namespace: busybox-sample
8 changes: 4 additions & 4 deletions test/drenv/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def deploy():
context=env["hub"],
log=debug,
)
info("Deploying subscription based application")
info("Deploying application")
kubectl.apply(
f"--kustomize={config['repo']}/subscription?ref={config['branch']}",
f"--kustomize={config['repo']}/{config['path']}?ref={config['branch']}",
context=env["hub"],
log=debug,
)
Expand All @@ -125,9 +125,9 @@ def undeploy():
context=env["hub"],
log=debug,
)
info("Undeploying subscription based application")
info("Undeploying application")
kubectl.delete(
f"--kustomize={config['repo']}/subscription?ref={config['branch']}",
f"--kustomize={config['repo']}/{config['path']}?ref={config['branch']}",
"--ignore-not-found",
context=env["hub"],
log=debug,
Expand Down

0 comments on commit 7f1dae6

Please sign in to comment.