mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
wifi 13063 (#857)
* added test-edgecore-eap104 and test-hfcl-ion4xe to the sanity workflow
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* added test-edgecore-eap104 and test-hfcl-ion4xe to the sanity workflow
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* updated edgecore_eap101 testbed info
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* added test-edgecore-eap102 to the sanity workflow
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* Modify default job execution timeout in sanity workflow
* Revert "Modify default job execution timeout in sanity workflow"
This reverts commit 089fed503b.
* added tests for ap models in basic testbeds
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
* removed limits for resources
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
---------
Signed-off-by: anil-tegala <anil.tegala@candelatech.com>
Co-authored-by: Gopi Raga <117985788+GopiRaga7@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
daa805f2a7
commit
6e19def192
7
.github/actions/run-tests/action.yml
vendored
7
.github/actions/run-tests/action.yml
vendored
@@ -76,13 +76,6 @@ runs:
|
|||||||
containers:
|
containers:
|
||||||
- name: tests
|
- name: tests
|
||||||
image: ${{ inputs.testing_docker_image }}
|
image: ${{ inputs.testing_docker_image }}
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
|
|||||||
789
.github/workflows/quali.yml
vendored
789
.github/workflows/quali.yml
vendored
@@ -22,7 +22,7 @@ on:
|
|||||||
description: "revision of the Open Wifi Helm chart"
|
description: "revision of the Open Wifi Helm chart"
|
||||||
ap_models:
|
ap_models:
|
||||||
required: true
|
required: true
|
||||||
default: "edgecore_oap101_6e,edgecore_eap101"
|
default: "cig_wf188n,cig_wf196,udaya_a5-id2,edgecore_ecw5211,indio_um-305ac,hfcl_ion4xe,edgecore_eap101"
|
||||||
description: "the AP models to test"
|
description: "the AP models to test"
|
||||||
ap_version:
|
ap_version:
|
||||||
required: true
|
required: true
|
||||||
@@ -76,10 +76,10 @@ jobs:
|
|||||||
echo "Current slot is $SLOT"
|
echo "Current slot is $SLOT"
|
||||||
if [[ "$SLOT" -eq "0" ]]; then
|
if [[ "$SLOT" -eq "0" ]]; then
|
||||||
echo "Choosing first slot since $SLOT == 0"
|
echo "Choosing first slot since $SLOT == 0"
|
||||||
AP_MODELS="${{ github.event.inputs.ap_models || 'edgecore_oap101_6e' }}"
|
AP_MODELS="${{ github.event.inputs.ap_models || 'cig_wf188n, cig_wf196, udaya_a5-id2, edgecore_eap104, edgecore_eap101' }}"
|
||||||
else
|
else
|
||||||
echo "Choosing second slot since $SLOT != 0"
|
echo "Choosing second slot since $SLOT != 0"
|
||||||
AP_MODELS="${{ github.event.inputs.ap_models || 'edgecore_eap101' }}"
|
AP_MODELS="${{ github.event.inputs.ap_models || 'edgecore_ecw5211, indio_um-305ac, edgecore_oap101_6e, edgecore_eap102' }}"
|
||||||
fi
|
fi
|
||||||
echo "List of AP models to test - $AP_MODELS"
|
echo "List of AP models to test - $AP_MODELS"
|
||||||
AP_MODELS=$(echo $AP_MODELS | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g')
|
AP_MODELS=$(echo $AP_MODELS | sed "s/,/\",\"/g" | sed 's/^/[\"/g' | sed 's/$/\"]/g')
|
||||||
@@ -113,6 +113,588 @@ jobs:
|
|||||||
|
|
||||||
# Run tests on APs
|
# Run tests on APs
|
||||||
|
|
||||||
|
test-cig-wf188n:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'cig_wf188n')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: cig_wf188n
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: basic-1
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-cig-wf196:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'cig_wf196')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: cig_wf196
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: basic-2
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-udaya-a5-id2:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'udaya_a5-id2')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: udaya_a5-id2
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: basic-3
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-edgecore-ecw5211:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'edgecore_ecw5211')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: edgecore_ecw5211
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: basic-4
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-indio-um-305ac:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'indio_um-305ac')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: indio_um-305ac
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: basic-5
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-edgecore-eap104:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'edgecore_eap104')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: edgecore_eap104
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: advanced-1a
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
test-edgecore-oap101-6e:
|
test-edgecore-oap101-6e:
|
||||||
needs: ["vars", "build"]
|
needs: ["vars", "build"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -165,7 +747,104 @@ jobs:
|
|||||||
uses: ./.github/actions/run-tests
|
uses: ./.github/actions/run-tests
|
||||||
with:
|
with:
|
||||||
namespace: ${{ steps.namespace.outputs.name }}
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
testbed: advanced-1a
|
testbed: advanced-1b
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-hfcl-ion4xe:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'hfcl_ion4xe')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: hfcl_ion4xe
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: advanced-1c
|
||||||
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
configuration_file: "./lab_info.json"
|
configuration_file: "./lab_info.json"
|
||||||
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
@@ -309,13 +988,111 @@ jobs:
|
|||||||
if: failure()
|
if: failure()
|
||||||
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
test-edgecore-eap102:
|
||||||
|
needs: [ "vars", "build" ]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'edgecore_eap102')"
|
||||||
|
env:
|
||||||
|
AP_MODEL: edgecore_eap102
|
||||||
|
steps:
|
||||||
|
- name: Set AP model output
|
||||||
|
id: ap_model
|
||||||
|
run: |
|
||||||
|
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: "3.8"
|
||||||
|
|
||||||
|
|
||||||
|
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
|
||||||
|
- name: install kubectl
|
||||||
|
run: |
|
||||||
|
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
- name: get EKS access credentials
|
||||||
|
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
|
||||||
|
|
||||||
|
- name: prepare namespace name
|
||||||
|
id: namespace
|
||||||
|
run: |
|
||||||
|
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
|
||||||
|
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: prepare configuration
|
||||||
|
run: |
|
||||||
|
cat << EOF > lab_info.json
|
||||||
|
${{ secrets.LAB_INFO_JSON }}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# DYN_CONFIG="$(python .quali/get_configuration.py --json ${{ steps.reservation.outputs.identifier }})"
|
||||||
|
# jq ".CONFIGURATION.basic=$DYN_CONFIG" lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
#
|
||||||
|
# # overwrite configuration value from Quali
|
||||||
|
# if [ ${{ needs.vars.outputs.existing_controller }} != '' ]
|
||||||
|
# then
|
||||||
|
# jq '.CONFIGURATION.basic.controller.url="https://sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build:16001"' lab_info.json > lab_info.json.tmp && mv lab_info.json.tmp lab_info.json
|
||||||
|
# fi
|
||||||
|
|
||||||
|
- name: run tests
|
||||||
|
uses: ./.github/actions/run-tests
|
||||||
|
with:
|
||||||
|
namespace: ${{ steps.namespace.outputs.name }}
|
||||||
|
testbed: advanced-2c
|
||||||
|
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
|
||||||
|
configuration_file: "./lab_info.json"
|
||||||
|
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
|
||||||
|
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
|
||||||
|
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
|
||||||
|
dns_records_to_resolve: "sec-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build gw-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build fms-${{ needs.vars.outputs.existing_controller }}.cicd.lab.wlan.tip.build"
|
||||||
|
|
||||||
|
# necessary because if conditionals in composite actions are currently not respected
|
||||||
|
- name: get tests logs
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
|
||||||
|
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
|
||||||
|
|
||||||
|
- name: delete namespace
|
||||||
|
if: always()
|
||||||
|
continue-on-error: true
|
||||||
|
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
|
||||||
|
|
||||||
|
- name: show gw logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owgw
|
||||||
|
|
||||||
|
- name: show fms logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owfms
|
||||||
|
|
||||||
|
- name: show prov logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owprov
|
||||||
|
|
||||||
|
- name: show analytics logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
|
||||||
|
|
||||||
|
- name: show subscription (userportal) logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsub
|
||||||
|
|
||||||
|
- name: show sec logs
|
||||||
|
if: failure()
|
||||||
|
run: kubectl -n openwifi-qa01 logs deployment/owsec
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Save reports
|
# Save reports
|
||||||
report:
|
report:
|
||||||
if: "!cancelled()"
|
if: "!cancelled()"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [vars, test-edgecore-oap101-6e, test-edgecore-eap101]
|
needs: [vars, test-cig-wf188n, test-cig-wf196, test-udaya-a5-id2, test-edgecore-ecw5211, test-indio-um-305ac, test-edgecore-eap104, test-edgecore-oap101-6e, test-hfcl-ion4xe, test-edgecore-eap101, test-edgecore-eap102]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -366,7 +1143,7 @@ jobs:
|
|||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
cleanup:
|
cleanup:
|
||||||
needs: [test-edgecore-oap101-6e, test-edgecore-eap101]
|
needs: [test-cig-wf188n, test-cig-wf196, test-udaya-a5-id2, test-edgecore-ecw5211, test-indio-um-305ac, test-edgecore-eap104, test-edgecore-oap101-6e, test-hfcl-ion4xe, test-edgecore-eap101, test-edgecore-eap102]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
Reference in New Issue
Block a user