Add tests

This commit is contained in:
M. Rehan
2021-12-09 03:49:58 +05:00
parent 9af540a2dc
commit cfa08e51c7
4 changed files with 30 additions and 2 deletions

View 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 }}']

View 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 }}']

View File

@@ -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