-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create release branch + udpate app version to 0.1.37 * fail template when runtime.name not provided (#117) * fail template when runtime.name not provided * add test on runtimename * ArgoCD 2.9.3 + ArgoRollouts 1.6.1 (#115) * change argo-cd chart to release version * bump minor version * fix readme (#118) * Hosted runtimes registration flow (#116) * bump app-proxy --------- Co-authored-by: ilia-medvedev-codefresh <ilia.medvedev@codefresh.io> Co-authored-by: danielm-codefresh <daniel.maizel@codefresh.io>
- Loading branch information
1 parent
800404d
commit d1d76b1
Showing
8 changed files
with
177 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
suite: Test hosted runtime flow in app-proxy | ||
templates: | ||
- app-proxy/deployment.yaml | ||
- app-proxy/config.yaml | ||
tests: | ||
- it: accountId appears in app-proxy env if provided - used in hosted | ||
template: 'app-proxy/deployment.yaml' | ||
values: | ||
- ./values/mandatory-values.yaml | ||
set: | ||
global.runtime.codefreshHosted: true | ||
global.codefresh.accountId: "asd123" | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: TARGET_RUNTIME_ACCOUNT_ID | ||
value: "asd123" | ||
|
||
- it: Fail template accountId missing for hosted runtime | ||
template: 'app-proxy/deployment.yaml' | ||
values: | ||
- ./values/mandatory-values.yaml | ||
set: | ||
global.runtime.codefreshHosted: true | ||
global.codefresh.accountId: "" | ||
asserts: | ||
- failedTemplate: | ||
errorMessage: 'global.codefresh.accountId must be provided for hosted runtimes' | ||
|
||
- it: accountId appears in app-proxy env and runtime type is HELM_HOSTED | ||
template: 'app-proxy/deployment.yaml' | ||
values: | ||
- ./values/mandatory-values.yaml | ||
set: | ||
global.runtime.codefreshHosted: true | ||
global.codefresh.accountId: "asd123" | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: TARGET_RUNTIME_ACCOUNT_ID | ||
value: "asd123" | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: INSTALLATION_TYPE | ||
value: "HELM_HOSTED" | ||
- notContains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: INSTALLATION_TYPE | ||
value: "HELM" | ||
|
||
- it: Installation type shpuld be Helm by default | ||
template: 'app-proxy/deployment.yaml' | ||
values: | ||
- ./values/mandatory-values.yaml | ||
asserts: | ||
- contains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: INSTALLATION_TYPE | ||
value: "HELM" | ||
- notContains: | ||
path: spec.template.spec.containers[0].env | ||
content: | ||
name: INSTALLATION_TYPE | ||
value: "HELM_HOSTED" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters