浏览代码

Add tests

M. Rehan 4 年之前
父节点
当前提交
cfa08e51c7

二进制
test/machinaris/1.0.11/charts/common-2105.0.0.tgz


+ 15 - 0
test/machinaris/1.1.0/templates/tests/cactus-check.yaml

@@ -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 - 0
test/machinaris/1.1.0/templates/tests/machinaris-check.yaml

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

+ 2 - 2
test/machinaris/1.1.0/test_values.yaml

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