Skip to content

Commit

Permalink
test: update unit tests after resource creation refactor
Browse files Browse the repository at this point in the history
Signed-off-by: Bobbins228 <[email protected]>
  • Loading branch information
Bobbins228 committed Aug 27, 2024
1 parent 6f95ae4 commit 0c87042
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 207 deletions.
9 changes: 1 addition & 8 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 @@ -92,21 +91,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
9 changes: 1 addition & 8 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 @@ -89,21 +88,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
9 changes: 1 addition & 8 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 @@ -92,21 +91,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
9 changes: 1 addition & 8 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 @@ -97,21 +96,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
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 0c87042

Please sign in to comment.