@@ -210,6 +210,94 @@ jobs:
210210 - name : Create Clean Ubuntu VM
211211 uses : ./.github/actions/create_clean_vm
212212
213+ - name : Read test-automation dependency Version
214+ id : read-test-automation-version
215+ shell : bash
216+ run : |
217+ version=$(yq '.test-automation.version' ${{ github.workspace }}/.test-dependencies.yaml | tr -d '\n' | xargs)
218+ echo "test-automation version: $version"
219+ echo "version=$version" >> "$GITHUB_OUTPUT"
220+
221+ - name : Checkout edge-manage-test-automation repository with submodules
222+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
223+ with :
224+ repository : open-edge-platform/edge-manage-test-automation
225+ path : edge-manage-test-automation
226+ ref : ${{ steps.read-test-automation-version.outputs.version }}
227+ submodules : ' recursive'
228+ token : ${{ secrets.SYS_EMF_GH_TOKEN }}
229+ persist-credentials : false
230+
231+ - name : Setup test dependencies
232+ working-directory : edge-manage-test-automation
233+ shell : bash
234+ run : |
235+ git submodule update --init --recursive
236+
237+ # Install asdf
238+ git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1
239+ . "$HOME/.asdf/asdf.sh"
240+ echo ". $HOME/.asdf/asdf.sh" >> "$HOME/.bashrc"
241+
242+ # Install tools and Python venv
243+ make asdf-install
244+ make venv_edge-manage-test-automation
245+
246+ # Install terraform for Pico VEN provisioning (skip tflint)
247+ pushd repos/ven/pico
248+ asdf plugin add terraform || true
249+ asdf install terraform
250+ popd
251+
252+ # xsltproc needed by libvirt terraform provider for domain XML customization
253+ sudo apt-get install -y xsltproc
254+
255+ - name : Wait for DKAM Full_server.crt and signed_ipxe.efi readiness
256+ shell : bash
257+ run : |
258+ source helmfile-deploy/pre-orch/functions.sh
259+ check_and_download_dkam_certs "cluster.onprem"
260+
261+ # EIM-vPro tests:
262+ # CLI-EIM-vPRO-01 to CLI-EIM-vPRO-07
263+ - name : Run Tests eim-vpro-01 to eim-vpro-07
264+ id : robot-tests
265+ timeout-minutes : 20
266+ working-directory : edge-manage-test-automation
267+ env :
268+ REQUESTS_CA_BUNDLE : /usr/local/share/ca-certificates/orch-ca.crt
269+ LIBVIRT_DEFAULT_URI : ' qemu:///system'
270+ shell : bash
271+ run : |
272+ . "$HOME/.asdf/asdf.sh"
273+ KC_ADMIN_PWD=$(kubectl -n orch-platform get secrets platform-keycloak -o jsonpath='{.data.admin-password}' | base64 -d)
274+ yq eval ".orchestrator.admin_password = \"${KC_ADMIN_PWD}\"" -i orchestrator-configs/on-prem.yaml
275+ yq eval '.infra.host.edgenode.hw_info.libvirt_pool_name = "default"' -i tests/core_foundation/data/cf_data_1_ven_VEN-libvirt_microvisor-nonrt.yaml
276+ yq eval '.infra.host.edgenode.hw_info.libvirt_network_name = "default"' -i tests/core_foundation/data/cf_data_1_ven_VEN-libvirt_microvisor-nonrt.yaml
277+
278+ source venv_edge-manage-test-automation/bin/activate
279+ robot -L DEBUG --pythonpath . \
280+ --name "EIM-vPro Test Suite" \
281+ -d robot_output/eim_vpro \
282+ -V orchestrator-configs/on-prem.yaml \
283+ --exitonfailure \
284+ --include eim-vpro-01 \
285+ --include eim-vpro-02 \
286+ --include eim-vpro-03 \
287+ --include eim-vpro-04 \
288+ --include eim-vpro-05 \
289+ --include eim-vpro-06 \
290+ --include eim-vpro-07 \
291+ tests/emf_decomp/eim_vpro/orch_cli_eim_vpro.robot
292+
293+ - name : Upload test artifacts
294+ if : always()
295+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
296+ with :
297+ name : on-prem-vpro-${{ github.event_name }}-${{ github.event.number }}-robot-report
298+ path : |
299+ edge-manage-test-automation/robot_output/**/*
300+
213301 - name : Collect diagnostics
214302 if : always()
215303 uses : ./.github/actions/collect_diagnostics_helmfile
0 commit comments