Skip to content

Commit 0f5f315

Browse files
Merge pull request #235 from nsingla/patch_csv_before_running_tests
test: adding capability to deploy custom DSPO before starting tests
2 parents f851ceb + 8ad5484 commit 0f5f315

File tree

7 files changed

+447
-8
lines changed

7 files changed

+447
-8
lines changed

backend/test/end2end/e2e_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,5 @@ func TestAPIs(t *testing.T) {
162162
reporterConfigE2E.SilenceSkips = true
163163
reporterConfigE2E.JUnitReport = filepath.Join(testReportDirectory, junitReportFilename)
164164
reporterConfigE2E.JSONReport = filepath.Join(testReportDirectory, jsonReportFilename)
165-
RunSpecs(t, "E2E Tests Suite", suiteConfigE2E, reporterConfigE2E)
165+
RunSpecs(t, "E2ETestsSuite", suiteConfigE2E, reporterConfigE2E)
166166
}
File renamed without changes.

backend/test/Dockerfile.test renamed to backend/test/images/Dockerfile.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ RUN wget -q https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.2
2828
cp oc-client/oc /usr/local/bin && \
2929
rm -rf oc-client/
3030

31+
# Download latest Kustomize library
32+
RUN wget -q https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize/v5.8.0/kustomize_v5.8.0_linux_amd64.tar.gz -P kustomize && \
33+
tar -xf kustomize/kustomize_v5.8.0_linux_amd64.tar.gz -C kustomize && \
34+
cp kustomize/kustomize /usr/local/bin/kustomize && \
35+
rm -rf kustomize
36+
3137
# Copy all required go files from the project
3238
COPY ./go.mod ./
3339
COPY ./go.sum ./
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[
2+
{
3+
"op": "replace",
4+
"path": "/spec/install/spec/deployments/0/spec/replicas",
5+
"value": 1
6+
},
7+
{
8+
"op": "replace",
9+
"path": "/spec/install/spec/deployments/0/spec/strategy",
10+
"value": {
11+
"type": "Recreate"
12+
}
13+
},
14+
{
15+
"op": "add",
16+
"path": "/spec/install/spec/deployments/0/spec/template/spec/securityContext",
17+
"value": {
18+
"fsGroup": 1001
19+
}
20+
},
21+
{
22+
"op": "add",
23+
"path": "/spec/install/spec/deployments/0/spec/template/spec/containers/0/volumeMounts/-",
24+
"value": {
25+
"mountPath": "/opt/manifests/datasciencepipelines",
26+
"name": "aipipelines-manifests"
27+
}
28+
},
29+
{
30+
"op": "add",
31+
"path": "/spec/install/spec/deployments/0/spec/template/spec/volumes/-",
32+
"value": {
33+
"name": "aipipelines-manifests",
34+
"persistentVolumeClaim": {
35+
"claimName": "aipipelines-component-manifests"
36+
}
37+
}
38+
}
39+
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
kind: PersistentVolumeClaim
2+
apiVersion: v1
3+
metadata:
4+
name: aipipelines-component-manifests
5+
spec:
6+
accessModes:
7+
- ReadWriteOnce
8+
resources:
9+
requests:
10+
storage: 1Gi
11+
volumeMode: Filesystem

0 commit comments

Comments
 (0)