Skip to content

Commit

Permalink
Add a job running e2e tests for network metrics daemon.
Browse files Browse the repository at this point in the history
Now that e2e tests are being added to the daemon, it's nice to run them as part of CI.

Signed-off-by: Federico Paolinelli <fpaoline@redhat.com>
  • Loading branch information
fedepaol committed Jun 23, 2020
1 parent 6a22860 commit fcd82b9
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 0 deletions.
Expand Up @@ -28,6 +28,10 @@ tests:
commands: make unittests
container:
from: src
- as: e2e
commands: make run-test
openshift_installer_src:
cluster_profile: gcp
zz_generated_metadata:
branch: master
org: openshift
Expand Down
@@ -1,5 +1,84 @@
presubmits:
openshift/network-metrics-daemon:
- agent: kubernetes
always_run: true
branches:
- master
cluster: api.ci
context: ci/prow/e2e
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-network-metrics-daemon-master-e2e
rerun_command: /test e2e
spec:
containers:
- args:
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --lease-server-password-file=/etc/boskos/password
- --report-password-file=/etc/report/password.txt
- --report-username=ci
- --secret-dir=/usr/local/e2e-cluster-profile
- --target=e2e
- --template=/usr/local/e2e
command:
- ci-operator
env:
- name: CLUSTER_TYPE
value: gcp
- name: JOB_NAME_SAFE
value: e2e
- name: TEST_COMMAND
value: make run-test
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/boskos
name: boskos
readOnly: true
- mountPath: /usr/local/e2e-cluster-profile
name: cluster-profile
- mountPath: /usr/local/e2e
name: job-definition
subPath: cluster-launch-installer-src.yaml
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: boskos
secret:
items:
- key: password
path: password
secretName: boskos-credentials
- name: cluster-profile
projected:
sources:
- secret:
name: cluster-secrets-gcp
- configMap:
name: cluster-profile-gcp
- configMap:
name: prow-job-cluster-launch-installer-src
name: job-definition
- name: pull-secret
secret:
secretName: regcred
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )e2e,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down

0 comments on commit fcd82b9

Please sign in to comment.