puzzle / jenkins-pipeline-shared-libraries

Shared functionality for Jenkins Pipeline Groovy scripts.
GNU General Public License v3.0
10 stars 13 forks source link

openshiftApply step unit test #18

Open dtschan opened 3 years ago

dtschan commented 3 years ago

Implement unit test for openshiftApply step which tests:

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
...
chrira commented 2 years ago

OC Install check und Rollout abgdeckt durch #42

Andere Testfälle ev. durch einen System Test abdecken