mirror of
https://github.com/truenas/charts.git
synced 2026-04-09 21:59:10 +08:00
Add tests
This commit is contained in:
Binary file not shown.
15
test/machinaris/1.1.0/templates/tests/cactus-check.yaml
Normal file
15
test/machinaris/1.1.0/templates/tests/cactus-check.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-cactus-deployment-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
hostNetwork: true
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: {{ .Release.Name }}-cactus-deployment-test
|
||||
image: busybox
|
||||
# Note: Adding sleep 15, as even when cactus pod status is ready, I've seen API
|
||||
# taking a few seconds to be live and running.
|
||||
command: ['sh', '-c', 'sleep 15 && nc -vz {{ .Values.nodeIP }} {{ .Values.cactus.apiPort }}']
|
||||
13
test/machinaris/1.1.0/templates/tests/machinaris-check.yaml
Normal file
13
test/machinaris/1.1.0/templates/tests/machinaris-check.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: "{{ .Release.Name }}-machinaris-deployment-test"
|
||||
annotations:
|
||||
"helm.sh/hook": test
|
||||
spec:
|
||||
hostNetwork: true
|
||||
restartPolicy: Never
|
||||
containers:
|
||||
- name: {{ .Release.Name }}-machinaris-deployment-test
|
||||
image: busybox
|
||||
command: ['sh', '-c', 'nc -vz {{ .Values.nodeIP }} {{ .Values.machinarisApiPort }}']
|
||||
@@ -39,7 +39,7 @@ appVolumeMounts:
|
||||
|
||||
environmentVariables:
|
||||
- name: mode
|
||||
value: farming
|
||||
value: fullnode
|
||||
|
||||
coins:
|
||||
- cactus
|
||||
@@ -71,7 +71,7 @@ cactus:
|
||||
subPath: mnemonic.txt
|
||||
environmentVariables:
|
||||
- name: mode
|
||||
value: farming
|
||||
value: plotter
|
||||
|
||||
enableResourceLimits: true
|
||||
cpuLimit: 0.5
|
||||
|
||||
Reference in New Issue
Block a user