Skip to content

Commit

Permalink
test: update unit tests after resource creation refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobbins228 committed Aug 27, 2024
1 parent f8238b2 commit 2f81c45
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 223 deletions.
13 changes: 1 addition & 12 deletions tests/test-case-custom-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
block: 'true'
dashboard-host: 0.0.0.0
num-gpus: '0'
resources: '"{}"'
serviceType: ClusterIP
template:
spec:
Expand Down Expand Up @@ -71,8 +70,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand All @@ -92,21 +89,15 @@ spec:
workerGroupSpecs:
- groupName: small-group-unit-test-cluster-custom-image
maxReplicas: 2
minReplicas: 2
rayStartParams:
block: 'true'
num-gpus: '7'
resources: '"{}"'
replicas: 2
template:
metadata:
annotations:
key: value
labels:
key: value
spec:
containers:
- image: quay.io/project-codeflare/ray:2.20.0-py39-cu118
imagePullPolicy: Always
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -137,8 +128,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand Down
13 changes: 1 addition & 12 deletions tests/test-case-no-kueue-no-aw.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ spec:
block: 'true'
dashboard-host: 0.0.0.0
num-gpus: '0'
resources: '"{}"'
serviceType: ClusterIP
template:
spec:
Expand Down Expand Up @@ -68,8 +67,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand All @@ -89,21 +86,15 @@ spec:
workerGroupSpecs:
- groupName: small-group-unit-test-no-kueue
maxReplicas: 2
minReplicas: 2
rayStartParams:
block: 'true'
num-gpus: '7'
resources: '"{}"'
replicas: 2
template:
metadata:
annotations:
key: value
labels:
key: value
spec:
containers:
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
imagePullPolicy: Always
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -134,8 +125,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand Down
13 changes: 1 addition & 12 deletions tests/test-case-no-mcad.yamls
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ spec:
block: 'true'
dashboard-host: 0.0.0.0
num-gpus: '0'
resources: '"{}"'
serviceType: ClusterIP
template:
spec:
Expand Down Expand Up @@ -71,8 +70,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand All @@ -92,21 +89,15 @@ spec:
workerGroupSpecs:
- groupName: small-group-unit-test-cluster-ray
maxReplicas: 2
minReplicas: 2
rayStartParams:
block: 'true'
num-gpus: '7'
resources: '"{}"'
replicas: 2
template:
metadata:
annotations:
key: value
labels:
key: value
spec:
containers:
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
imagePullPolicy: Always
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -137,8 +128,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand Down
13 changes: 1 addition & 12 deletions tests/test-case.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ spec:
block: 'true'
dashboard-host: 0.0.0.0
num-gpus: '0'
resources: '"{}"'
serviceType: ClusterIP
template:
spec:
Expand Down Expand Up @@ -76,8 +75,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand All @@ -97,21 +94,15 @@ spec:
workerGroupSpecs:
- groupName: small-group-unit-test-cluster
maxReplicas: 2
minReplicas: 2
rayStartParams:
block: 'true'
num-gpus: '7'
resources: '"{}"'
replicas: 2
template:
metadata:
annotations:
key: value
labels:
key: value
spec:
containers:
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
imagePullPolicy: Always
lifecycle:
preStop:
exec:
Expand Down Expand Up @@ -142,8 +133,6 @@ spec:
- mountPath: /etc/ssl/certs/odh-ca-bundle.crt
name: odh-ca-cert
subPath: odh-ca-bundle.crt
imagePullSecrets:
- name: unit-test-pull-secret
volumes:
- configMap:
items:
Expand Down
11 changes: 1 addition & 10 deletions tests/test-default-appwrapper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ spec:
block: 'true'
dashboard-host: 0.0.0.0
num-gpus: '0'
resources: '"{}"'
serviceType: ClusterIP
template:
spec:
imagePullSecrets: []
containers:
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
imagePullPolicy: Always
Expand Down Expand Up @@ -96,22 +94,15 @@ spec:
workerGroupSpecs:
- groupName: small-group-unit-test-default-cluster
maxReplicas: 1
minReplicas: 1
rayStartParams:
block: 'true'
num-gpus: '0'
resources: '"{}"'
replicas: 1
template:
metadata:
annotations:
key: value
labels:
key: value
spec:
imagePullSecrets: []
containers:
- image: quay.io/rhoai/ray:2.23.0-py39-cu121
imagePullPolicy: Always
lifecycle:
preStop:
exec:
Expand Down
Loading

0 comments on commit 2f81c45

Please sign in to comment.