Fix CLI pkg getsrc returns deploy archive instead of source archive (#2941)

* CLI command `pkg getsrc` returns deploy archive

```
Fix CLI command to return source archive instead of deploy archive.
If source archive is not available then return deploy archive.
```

* Add e2e tests for `fission package` CLI commands
* Cleanup environments created for pkg test
* Fix unit test failures


---------

Signed-off-by: Md Soharab Ansari <soharab.ansari@infracloud.io>
This commit is contained in:
soharab-ic
2024-05-16 18:29:58 +05:30
committed by GitHub
parent 9cea0d2b32
commit 8bfe2d0ed1
3 changed files with 86 additions and 10 deletions
+2
View File
@@ -24,6 +24,8 @@ const (
FISSION_AUTH_TOKEN = "FISSION_AUTH_TOKEN"
FISSION_STORAGE_URI = "/v1/archive"
FISSION_DEFAULT_NAMESPACE = "fission"
SOURCE_ARCHIVE = "source"
DEPLOY_ARCHIVE = "deploy"
)
const (