Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
111 changes: 98 additions & 13 deletions .github/workflows/deploy-onprem-helmfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,9 @@ jobs:
source helmfile-deploy/pre-orch/functions.sh
check_and_download_dkam_certs "cluster.onprem"

# Golden Suite — Core Foundation tests:
# CF-1: Assess Tenancy Management
# CF-2: Verify Tenancy Isolation
# CF-3: Provision EN (VEN onboarding)
- name: Run Golden Suite Robot Framework Tests (VEN)
# EIM Only tests::
# From tenancy confihuration to Node Onboarding
- name: Run EIM Only workflow Tests (VEN)
id: robot-tests
timeout-minutes: 10
working-directory: edge-manage-test-automation
Expand All @@ -127,19 +125,17 @@ jobs:
. "$HOME/.asdf/asdf.sh"
KC_ADMIN_PWD=$(kubectl -n orch-platform get secrets platform-keycloak -o jsonpath='{.data.admin-password}' | base64 -d)
yq eval ".orchestrator.admin_password = \"${KC_ADMIN_PWD}\"" -i orchestrator-configs/on-prem.yaml
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
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
yq eval '.infra.host.edgenode.hw_info.libvirt_pool_name = "default"' -i tests/emf_decomp/data/cf_data_sample.yaml
yq eval '.infra.host.edgenode.hw_info.libvirt_network_name = "default"' -i tests/emf_decomp/data/cf_data_sample.yaml

source venv_edge-manage-test-automation/bin/activate
robot -L DEBUG --pythonpath . \
--name "Golden Suite: Core Foundation" \
-d robot_output/core_foundation \
--name "EIM Only WF" \
-d robot_output/eim_only \
-V orchestrator-configs/on-prem.yaml \
--exitonfailure \
--include cf1 \
--include cf2 \
--include cf3 \
tests/core_foundation/core_foundation.robot
--include vip \
tests/emf_decomp/eim/orch_cli_eim_workflow.robot

- name: Upload test artifacts
if: always()
Expand Down Expand Up @@ -206,6 +202,95 @@ jobs:
- name: Create Clean Ubuntu VM
uses: ./.github/actions/create_clean_vm

- name: Set VM variables
shell: bash
run: |
echo "VM_NAME=vpro-ubuntu-vm" >> $GITHUB_ENV
echo "VM_IP=${VM_IP}" >> $GITHUB_ENV
echo "VM_SERIAL=${VM_SERIAL}" >> $GITHUB_ENV
echo "SSH_USER=user" >> $GITHUB_ENV
echo "SSH_PASSWORD=user" >> $GITHUB_ENV
echo "VM Details:"
echo " Name: vpro-ubuntu-vm"
echo " IP: ${VM_IP}"
echo " Serial: ${VM_SERIAL}"
echo " SSH: ssh user@${VM_IP}"

- name: Read test-automation dependency Version
id: read-test-automation-version
shell: bash
run: |
version=$(yq '.test-automation.version' ${{ github.workspace }}/.test-dependencies.yaml | tr -d '\n' | xargs)
echo "test-automation version: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: Checkout edge-manage-test-automation repository with submodules
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: open-edge-platform/edge-manage-test-automation
path: edge-manage-test-automation
ref: shruti/vip
submodules: 'recursive'
token: ${{ secrets.SYS_EMF_GH_TOKEN }}
persist-credentials: false

- name: Setup test dependencies
working-directory: edge-manage-test-automation
shell: bash
run: |
git submodule update --init --recursive

make orch-cli
make venv_edge-manage-test-automation

# EIM-vPro tests:
# EIM-vPro-01: Assess Tenancy Management
# CLI-EIM-vPRO-02: Configure Orchestrator CLI
# CLI_EIM-vPRO-03: Create Login session to run CLI commands
# CLI-EIM-vPRO-04: Verify Orch deployment for EIM-vPRO profile
# CLI-EIM-vPRO-05: Register Host
# CLI-EIM-vPRO-07-A: Install Agents on Ubuntu VM for VIP via script
- name: Run Tests eim-vpro VIP workflow (01-05, 07-A)
id: robot-tests
timeout-minutes: 20
working-directory: edge-manage-test-automation
env:
REQUESTS_CA_BUNDLE: /usr/local/share/ca-certificates/orch-ca.crt
LIBVIRT_DEFAULT_URI: 'qemu:///system'
shell: bash
run: |
KC_ADMIN_PWD=$(kubectl -n orch-platform get secrets platform-keycloak -o jsonpath='{.data.admin-password}' | base64 -d)
yq eval ".orchestrator.admin_password = \"${KC_ADMIN_PWD}\"" -i orchestrator-configs/on-prem.yaml
yq eval '.infra.host.edgenode.hw_info.libvirt_pool_name = "default"' -i tests/emf_decomp/data/cf_data_sample.yaml
yq eval '.infra.host.edgenode.hw_info.libvirt_network_name = "default"' -i tests/emf_decomp/data/cf_data_sample.yaml
yq eval ".infra.host.edgenode.hw_info.serial = \"${VM_SERIAL}\"" -i tests/emf_decomp/data/cf_data_sample.yaml

source venv_edge-manage-test-automation/bin/activate
robot -L DEBUG --pythonpath . \
--name "EIM-vPro Test Suite" \
-d robot_output/eim_vpro \
-V orchestrator-configs/on-prem.yaml \
-v PXE_IP:${VM_IP} \
-v PXE_HOSTNAME:${VM_NAME} \
-v username:${SSH_USER} \
-v password:${SSH_PASSWORD} \
--exitonfailure \
--include eim-vpro-01 \
--include eim-vpro-02 \
--include eim-vpro-03 \
--include eim-vpro-04 \
--include eim-vpro-05 \
--include eim-vpro-07-a \
tests/emf_decomp/eim_vpro/orch_cli_eim_vpro.robot

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: on-prem-vpro-${{ github.event_name }}-${{ github.event.number }}-robot-report
path: |
edge-manage-test-automation/robot_output/**/*

- name: Collect diagnostics
if: always()
uses: ./.github/actions/collect_diagnostics_helmfile
Expand Down
2 changes: 1 addition & 1 deletion helmfile-deploy/post-orch/helmfile.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ releases:
namespace: orch-infra
chart: edge-orch/infra/charts/infra-onboarding
wait: true
version: 1.35.12
version: 1.36.0
values:
- values/infra-onboarding.yaml.gotmpl
- values/resource-overrides.yaml
Expand Down
Loading