-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
containerPortYaml to allow exotic port setups
- Loading branch information
Showing
3 changed files
with
49 additions
and
1 deletion.
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
44 changes: 44 additions & 0 deletions
44
charts/onechart/tests/deployment_contianer_port_yaml_test.yaml
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,44 @@ | ||
suite: test deployment | ||
templates: | ||
- deployment.yaml | ||
- configmap.yaml | ||
tests: | ||
- it: Should set custom ports | ||
set: | ||
containerPortYaml: | ||
- port: 21 | ||
targetPort: ftp | ||
protocol: TCP | ||
name: ftp | ||
- port: 3001 | ||
targetPort: passive-1 | ||
protocol: TCP | ||
name: passive-1 | ||
- port: 3002 | ||
targetPort: passive-2 | ||
protocol: TCP | ||
name: passive-2 | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].ports | ||
value: | ||
- port: 21 | ||
targetPort: ftp | ||
protocol: TCP | ||
name: ftp | ||
- port: 3001 | ||
targetPort: passive-1 | ||
protocol: TCP | ||
name: passive-1 | ||
- port: 3002 | ||
targetPort: passive-2 | ||
protocol: TCP | ||
name: passive-2 | ||
- it: Should set default port | ||
asserts: | ||
- equal: | ||
path: spec.template.spec.containers[0].ports | ||
value: | ||
- name: http | ||
containerPort: 80 | ||
protocol: TCP |