Skip to content

Commit d8f1542

Browse files
MGMT-24194: add vmaas E2E presubmit tests to fulfillment-service (#78717)
Add 8 required vmaas E2E presubmit tests that run on every fulfillment-service PR. Tests build the fulfillment-service container image and osac CLI from the PR source, plus a modified osac-installer image with the PR's manifests swapped in.
1 parent 6a1586d commit d8f1542

3 files changed

Lines changed: 911 additions & 3 deletions

File tree

ci-operator/config/osac-project/fulfillment-service/osac-project-fulfillment-service-main.yaml

Lines changed: 234 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
base_images:
2+
assisted-image-service:
3+
name: backplane-5.0
4+
namespace: edge-infrastructure
5+
tag: assisted-image-service
6+
assisted-installer:
7+
name: backplane-5.0
8+
namespace: edge-infrastructure
9+
tag: assisted-installer
10+
assisted-installer-agent:
11+
name: backplane-5.0
12+
namespace: edge-infrastructure
13+
tag: assisted-installer-agent
14+
assisted-installer-controller:
15+
name: backplane-5.0
16+
namespace: edge-infrastructure
17+
tag: assisted-installer-controller
18+
assisted-service:
19+
name: backplane-5.0
20+
namespace: edge-infrastructure
21+
tag: assisted-service
22+
assisted-test-infra:
23+
name: backplane-5.0
24+
namespace: edge-infrastructure
25+
tag: assisted-test-infra
26+
dev-scripts:
27+
name: test
28+
namespace: ocp-kni
29+
tag: dev-scripts
30+
origin-cli:
31+
name: "4.20"
32+
namespace: ocp
33+
tag: cli
34+
osac-installer:
35+
name: latest
36+
namespace: osac-project
37+
tag: osac-installer
38+
osac-test-infra:
39+
name: latest
40+
namespace: osac-project
41+
tag: osac-test-infra
142
binary_build_commands: GOFLAGS="-mod=readonly" go build -o /tmp/osac ./cmd/osac
243
build_root:
344
image_stream_tag:
@@ -17,10 +58,34 @@ images:
1758
- destination_dir: .
1859
source_path: /tmp/osac
1960
to: osac-cli
61+
- dockerfile_path: Containerfile
62+
to: fulfillment-service-pr
63+
- dockerfile_literal: |
64+
FROM osac-installer
65+
COPY manifests/ /installer/base/osac-fulfillment-service/manifests/
66+
COPY osac /usr/local/bin/osac
67+
inputs:
68+
bin:
69+
paths:
70+
- destination_dir: .
71+
source_path: /tmp/osac
72+
osac-installer:
73+
as:
74+
- osac-installer
75+
to: osac-installer-with-pr
2076
promotion:
2177
to:
22-
- name: latest
78+
- excluded_images:
79+
- fulfillment-service-pr
80+
- osac-installer-with-pr
81+
name: latest
2382
namespace: osac-project
83+
releases:
84+
latest:
85+
candidate:
86+
product: ocp
87+
stream: nightly
88+
version: "4.20"
2489
resources:
2590
'*':
2691
limits:
@@ -33,6 +98,174 @@ tests:
3398
commands: echo "Test"
3499
container:
35100
from: src
101+
- as: e2e-metal-vmaas-compute-instance-creation
102+
capabilities:
103+
- intranet
104+
steps:
105+
cluster_profile: packet-assisted
106+
dependencies:
107+
COMPONENT_IMAGE: fulfillment-service-pr
108+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
109+
env:
110+
ASSISTED_CONFIG: |
111+
OLM_OPERATORS=cnv,lvm
112+
NUM_MASTERS=1
113+
NUM_WORKERS=0
114+
MASTER_MEMORY=57344
115+
MASTER_DISK_COUNT=2
116+
MASTER_DISK=200000000000
117+
MASTER_CPU=24
118+
OPENSHIFT_VERSION=4.20
119+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
120+
TEST: test_compute_instance_creation.py
121+
workflow: osac-project-ofcir-baremetal-component
122+
- as: e2e-metal-vmaas-compute-instance-api-fields
123+
capabilities:
124+
- intranet
125+
steps:
126+
cluster_profile: packet-assisted
127+
dependencies:
128+
COMPONENT_IMAGE: fulfillment-service-pr
129+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
130+
env:
131+
ASSISTED_CONFIG: |
132+
OLM_OPERATORS=cnv,lvm
133+
NUM_MASTERS=1
134+
NUM_WORKERS=0
135+
MASTER_MEMORY=57344
136+
MASTER_DISK_COUNT=2
137+
MASTER_DISK=200000000000
138+
MASTER_CPU=24
139+
OPENSHIFT_VERSION=4.20
140+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
141+
TEST: test_compute_instance_api_fields.py
142+
workflow: osac-project-ofcir-baremetal-component
143+
- as: e2e-metal-vmaas-compute-instance-cli-fields
144+
capabilities:
145+
- intranet
146+
steps:
147+
cluster_profile: packet-assisted
148+
dependencies:
149+
COMPONENT_IMAGE: fulfillment-service-pr
150+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
151+
env:
152+
ASSISTED_CONFIG: |
153+
OLM_OPERATORS=cnv,lvm
154+
NUM_MASTERS=1
155+
NUM_WORKERS=0
156+
MASTER_MEMORY=57344
157+
MASTER_DISK_COUNT=2
158+
MASTER_DISK=200000000000
159+
MASTER_CPU=24
160+
OPENSHIFT_VERSION=4.20
161+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
162+
TEST: test_compute_instance_cli_fields.py
163+
workflow: osac-project-ofcir-baremetal-component
164+
- as: e2e-metal-vmaas-compute-instance-delete-during-provision
165+
capabilities:
166+
- intranet
167+
steps:
168+
cluster_profile: packet-assisted
169+
dependencies:
170+
COMPONENT_IMAGE: fulfillment-service-pr
171+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
172+
env:
173+
ASSISTED_CONFIG: |
174+
OLM_OPERATORS=cnv,lvm
175+
NUM_MASTERS=1
176+
NUM_WORKERS=0
177+
MASTER_MEMORY=57344
178+
MASTER_DISK_COUNT=2
179+
MASTER_DISK=200000000000
180+
MASTER_CPU=24
181+
OPENSHIFT_VERSION=4.20
182+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
183+
TEST: test_compute_instance_delete_during_provision.py
184+
workflow: osac-project-ofcir-baremetal-component
185+
- as: e2e-metal-vmaas-compute-instance-restart
186+
capabilities:
187+
- intranet
188+
steps:
189+
cluster_profile: packet-assisted
190+
dependencies:
191+
COMPONENT_IMAGE: fulfillment-service-pr
192+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
193+
env:
194+
ASSISTED_CONFIG: |
195+
OLM_OPERATORS=cnv,lvm
196+
NUM_MASTERS=1
197+
NUM_WORKERS=0
198+
MASTER_MEMORY=57344
199+
MASTER_DISK_COUNT=2
200+
MASTER_DISK=200000000000
201+
MASTER_CPU=24
202+
OPENSHIFT_VERSION=4.20
203+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
204+
TEST: test_compute_instance_restart.py
205+
workflow: osac-project-ofcir-baremetal-component
206+
- as: e2e-metal-vmaas-compute-instance-restart-negative
207+
capabilities:
208+
- intranet
209+
steps:
210+
cluster_profile: packet-assisted
211+
dependencies:
212+
COMPONENT_IMAGE: fulfillment-service-pr
213+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
214+
env:
215+
ASSISTED_CONFIG: |
216+
OLM_OPERATORS=cnv,lvm
217+
NUM_MASTERS=1
218+
NUM_WORKERS=0
219+
MASTER_MEMORY=57344
220+
MASTER_DISK_COUNT=2
221+
MASTER_DISK=200000000000
222+
MASTER_CPU=24
223+
OPENSHIFT_VERSION=4.20
224+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
225+
TEST: test_compute_instance_restart_negative.py
226+
workflow: osac-project-ofcir-baremetal-component
227+
- as: e2e-metal-vmaas-subnet-lifecycle
228+
capabilities:
229+
- intranet
230+
steps:
231+
cluster_profile: packet-assisted
232+
dependencies:
233+
COMPONENT_IMAGE: fulfillment-service-pr
234+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
235+
env:
236+
ASSISTED_CONFIG: |
237+
OLM_OPERATORS=cnv,lvm
238+
NUM_MASTERS=1
239+
NUM_WORKERS=0
240+
MASTER_MEMORY=57344
241+
MASTER_DISK_COUNT=2
242+
MASTER_DISK=200000000000
243+
MASTER_CPU=24
244+
OPENSHIFT_VERSION=4.20
245+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
246+
TEST: test_subnet_lifecycle.py
247+
workflow: osac-project-ofcir-baremetal-component
248+
- as: e2e-metal-vmaas-virtual-network-lifecycle
249+
capabilities:
250+
- intranet
251+
steps:
252+
cluster_profile: packet-assisted
253+
dependencies:
254+
COMPONENT_IMAGE: fulfillment-service-pr
255+
OSAC_INSTALLER_IMAGE: osac-installer-with-pr
256+
env:
257+
ASSISTED_CONFIG: |
258+
OLM_OPERATORS=cnv,lvm
259+
NUM_MASTERS=1
260+
NUM_WORKERS=0
261+
MASTER_MEMORY=57344
262+
MASTER_DISK_COUNT=2
263+
MASTER_DISK=200000000000
264+
MASTER_CPU=24
265+
OPENSHIFT_VERSION=4.20
266+
COMPONENT_IMAGE_NAME: ghcr.io/osac-project/fulfillment-service
267+
TEST: test_virtual_network_lifecycle.py
268+
workflow: osac-project-ofcir-baremetal-component
36269
zz_generated_metadata:
37270
branch: main
38271
org: osac-project

ci-operator/jobs/osac-project/fulfillment-service/osac-project-fulfillment-service-main-postsubmits.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ postsubmits:
1111
labels:
1212
ci-operator.openshift.io/is-promotion: "true"
1313
ci.openshift.io/generator: prowgen
14+
job-release: "4.20"
1415
max_concurrency: 1
1516
name: branch-ci-osac-project-fulfillment-service-main-images
1617
spec:

0 commit comments

Comments
 (0)