Skip to content

Commit 6aa7606

Browse files
MTV-4058 - part 2 - clone rp-uploader on runtime (kubev2v#2192)
* Make test compatible with provider creation form changes - Update CreateProviderPage selectors for new form structure - Add provider-specific field methods (vSphere, OVA, OVirt) - Parametrize provider creation tests using test scenarios - Update StorageMapStep to correctly parse source storage column - Update test data for current environment Resolves: MTV-3741 Signed-off-by: Pedro Abreu <pabreu@redhat.com> * Update Playwright dependencies and remove obsolete upload script - Bump Playwright and @playwright/test versions to 1.57.0 in package.json - Update PlaywrightContainerFile to use the new Playwright image version - Remove the deprecated upload-to-rp.sh script - Expect rp-upload on runtime Resolves: MTV-4058 Signed-off-by: Pedro Abreu <pabreu@redhat.com> * Add .dockerignore Resolves: None Signed-off-by: Pedro Abreu <pabreu@redhat.com> * Revert create-provider.spec.ts to upstream/main Resolves: None Signed-off-by: Pedro Abreu <pabreu@redhat.com> --------- Signed-off-by: Pedro Abreu <pabreu@redhat.com>
1 parent 2666043 commit 6aa7606

File tree

4 files changed

+15
-87
lines changed

4 files changed

+15
-87
lines changed

testing/.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.providers.json
2+
3+
# Test artifacts
4+
playwright-report/
5+
test-results/
6+
7+
# IDE and local config
8+
.cursor/

testing/PlaywrightContainerFile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/playwright:v1.55.0-noble
1+
FROM mcr.microsoft.com/playwright:v1.57.0-noble
22

33
ARG GIT_COMMIT=unknown
44
ARG BUILD_DATE=unknown
@@ -30,24 +30,19 @@ RUN curl -sL https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/op
3030
| tar -xz -C /usr/local/bin oc kubectl \
3131
&& chmod +x /usr/local/bin/oc /usr/local/bin/kubectl
3232

33-
# Install Python dependencies for Report Portal
33+
# Install Python dependencies for Report Portal (rp-uploader cloned at runtime)
3434
RUN pip3 install --no-cache-dir --break-system-packages \
3535
PyYAML requests lxml 'reportportal-client~=5.0.0' \
3636
xmltodict jinja2 packaging setuptools suds-py3
3737

38-
# Clone Report Portal uploader
39-
RUN GIT_SSL_NO_VERIFY=1 git clone \
40-
https://gitlab.cee.redhat.com/migrationqe/rp-uploader.git \
41-
/opt/rp-uploader
42-
4338
COPY package.json yarn.lock ./
4439
RUN corepack enable && yarn install --frozen-lockfile --ignore-scripts
4540

4641
COPY . .
4742

48-
RUN chmod +x run-tests.sh upload-to-rp.sh && \
49-
chown -R 1001:0 /test-runner /opt/rp-uploader && \
50-
chmod -R g+w /test-runner /opt/rp-uploader
43+
RUN chmod +x run-tests.sh && \
44+
chown -R 1001:0 /test-runner && \
45+
chmod -R g+w /test-runner
5146

5247
USER 1001
5348

testing/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"license": "ISC",
1414
"description": "",
1515
"devDependencies": {
16-
"playwright": "1.55.0",
17-
"@playwright/test": "1.55.0",
16+
"playwright": "1.57.0",
17+
"@playwright/test": "1.57.0",
1818
"@types/node": "^20.0.0",
1919
"typescript": "^5.8.2"
2020
},

testing/upload-to-rp.sh

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)