Open dtschan opened 3 years ago
Implement unit test for openshiftApply step which tests:
oc convert -f ${tmpfile}
apiVersion: extensions/v1beta1 kind: Deployment spec: template: spec: containers: - name: mycontainer resources: limits: cpu: 1 # Wrong type, must be a string ...
or:
apiVersion: v1 # Unknown type, API group is missing kind: DeploymentConfig ...
oc apply -f ${tmpfile} -l "app=${appLabel}" --prune
oc rollout status ${rolloutKind}/${appLabel}
oc rollout status ${rolloutKind}/${object}
OC Install check und Rollout abgdeckt durch #42
Andere Testfälle ev. durch einen System Test abdecken
Implement unit test for openshiftApply step which tests:
oc convert -f ${tmpfile}
to validate configuration argumentor:
oc apply -f ${tmpfile} -l "app=${appLabel}" --prune
oc rollout status ${rolloutKind}/${appLabel}
oc rollout status ${rolloutKind}/${object}
for every rolloutKind object matched by rolloutSelector