Skip to content

Commit

Permalink
update E2E unit tests for porch cli
Browse files Browse the repository at this point in the history
Signed-off-by: Kushal Harish Naidu <kushal.harish.naidu@ericsson.com>
  • Loading branch information
kushnaidu committed Mar 7, 2024
1 parent bbbabef commit 33edb88
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions test/e2e/cli/testdata/rpkg-copy/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ commands:
- propose
- --namespace=rpkg-copy
- git-eb5afe755bedd142f142c6a9363649c667ef77a5
stderr: "git-eb5afe755bedd142f142c6a9363649c667ef77a5 proposed\n"
stdout: "git-eb5afe755bedd142f142c6a9363649c667ef77a5 proposed\n"
- args:
- porchctl
- rpkg
- approve
- --namespace=rpkg-copy
- git-eb5afe755bedd142f142c6a9363649c667ef77a5
stderr: "git-eb5afe755bedd142f142c6a9363649c667ef77a5 approved\n"
stdout: "git-eb5afe755bedd142f142c6a9363649c667ef77a5 approved\n"
- args:
- porchctl
- rpkg
Expand Down
16 changes: 8 additions & 8 deletions test/e2e/cli/testdata/rpkg-lifecycle/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ commands:
- propose
- --namespace=rpkg-lifecycle
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 proposed
- args:
- porchctl
Expand Down Expand Up @@ -50,7 +50,7 @@ commands:
- reject
- --namespace=rpkg-lifecycle
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 rejected
- args:
- porchctl
Expand Down Expand Up @@ -78,7 +78,7 @@ commands:
- propose
- --namespace=rpkg-lifecycle
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 proposed
- args:
- porchctl
Expand All @@ -95,7 +95,7 @@ commands:
- approve
- --namespace=rpkg-lifecycle
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 approved
- args:
- porchctl
Expand Down Expand Up @@ -123,7 +123,7 @@ commands:
- propose-delete
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
- --namespace=rpkg-lifecycle
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 proposed for deletion
- args:
- porchctl
Expand All @@ -148,7 +148,7 @@ commands:
- reject
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
- --namespace=rpkg-lifecycle
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 no longer proposed for deletion
- args:
- porchctl
Expand Down Expand Up @@ -176,7 +176,7 @@ commands:
- propose-delete
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
- --namespace=rpkg-lifecycle
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 proposed for deletion
- args:
- porchctl
Expand All @@ -193,7 +193,7 @@ commands:
- delete
- git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034
- --namespace=rpkg-lifecycle
stderr: |
stdout: |
git-017a8366a5e0d9b35ae6dc489d4d3f68046d6034 deleted
- args:
- porchctl
Expand Down
1 change: 1 addition & 0 deletions test/e2e/cli/testdata/rpkg-push/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ commands:
- --namespace=rpkg-push
- git-efe3d01c68dfdcdd69114c9a7c65cce0d662a46f
- /tmp/porch-e2e/rpkg-push-git-efe3d01c68dfdcdd69114c9a7c65cce0d662a46f
stdout: "git-efe3d01c68dfdcdd69114c9a7c65cce0d662a46f pushed\n"
- args:
- porchctl
- rpkg
Expand Down
5 changes: 3 additions & 2 deletions test/e2e/cli/testdata/rpkg-update/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ commands:
- propose
- --namespace=rpkg-update
- git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60
stderr: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 proposed\n"
stdout: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 proposed\n"
- args:
- porchctl
- rpkg
- approve
- --namespace=rpkg-update
- git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60
stderr: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 approved\n"
stdout: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 approved\n"
- args:
- porchctl
- rpkg
Expand Down Expand Up @@ -139,6 +139,7 @@ commands:
- --namespace=rpkg-update
- git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
- /tmp/porch-e2e/pkg-update-git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
stdout: "git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0 pushed\n"
- args:
- porchctl
- rpkg
Expand Down

0 comments on commit 33edb88

Please sign in to comment.