Skip to content

Commit 4ec3371

Browse files
committed
Update sanity and regression workflows with emplus_wap588m and sonicfi_rap630w-211g APs
Signed-off-by: bhargavi-ct <bhargavi.mamidipaka@candelatech.com>
1 parent 19d0dcc commit 4ec3371

2 files changed

Lines changed: 964 additions & 18 deletions

File tree

.github/workflows/quali.yml

Lines changed: 181 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
description: "revision of the Open Wifi Helm chart"
2323
ap_models:
2424
required: true
25-
default: "cig_wf186h,edgecore_eap104,sonicfi_rap630c-311g,hfcl_ion4xe,edgecore_eap105,sonicfi_rap7110c-341x,edgecore_eap101,edgecore_eap111,edgecore_oap103,cig_wf189h,senao_iap4300m,udaya_a6-id2,cig_wf672"
25+
default: "cig_wf186h,edgecore_eap104,sonicfi_rap630c-311g,hfcl_ion4xe,edgecore_eap105,sonicfi_rap7110c-341x,edgecore_eap101,edgecore_eap111,edgecore_oap103,cig_wf189h,senao_iap4300m,udaya_a6-id2,cig_wf672,emplus_wap588m,sonicfi_rap630w-211g"
2626
description: "the AP models to test"
2727
ap_version:
2828
required: true
@@ -445,6 +445,95 @@ jobs:
445445
EOF
446446
447447

448+
- name: run tests
449+
uses: ./.github/actions/run-tests
450+
with:
451+
namespace: ${{ steps.namespace.outputs.name }}
452+
testbed: basic-1a
453+
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
454+
configuration_file: "./lab_info.json"
455+
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
456+
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
457+
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
458+
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"
459+
460+
# necessary because if conditionals in composite actions are currently not respected
461+
- name: get tests logs
462+
if: always()
463+
continue-on-error: true
464+
run: |
465+
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
466+
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
467+
468+
- name: delete namespace
469+
if: always()
470+
continue-on-error: true
471+
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
472+
473+
- name: show gw logs
474+
if: failure()
475+
run: kubectl -n openwifi-qa01 logs deployment/owgw
476+
477+
- name: show fms logs
478+
if: failure()
479+
run: kubectl -n openwifi-qa01 logs deployment/owfms
480+
481+
- name: show prov logs
482+
if: failure()
483+
run: kubectl -n openwifi-qa01 logs deployment/owprov
484+
485+
- name: show analytics logs
486+
if: failure()
487+
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
488+
489+
- name: show subscription (userportal) logs
490+
if: failure()
491+
run: kubectl -n openwifi-qa01 logs deployment/owsub
492+
493+
- name: show sec logs
494+
if: failure()
495+
run: kubectl -n openwifi-qa01 logs deployment/owsec
496+
497+
test-sonicfi-rap630w-211g:
498+
needs: [ "vars", "build" ]
499+
runs-on: ubuntu-latest
500+
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'sonicfi_rap630w-211g')"
501+
env:
502+
AP_MODEL: sonicfi_rap630w-211g
503+
steps:
504+
- name: Set AP model output
505+
id: ap_model
506+
run: |
507+
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
508+
509+
- uses: actions/checkout@v3
510+
- name: Set up Python
511+
uses: actions/setup-python@v4
512+
with:
513+
python-version: "3.8"
514+
515+
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
516+
- name: install kubectl
517+
run: |
518+
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
519+
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
520+
521+
- name: get EKS access credentials
522+
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
523+
524+
- name: prepare namespace name
525+
id: namespace
526+
run: |
527+
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
528+
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
529+
530+
- name: prepare configuration
531+
run: |
532+
cat << EOF > lab_info.json
533+
${{ secrets.LAB_INFO_JSON }}
534+
EOF
535+
536+
448537
- name: run tests
449538
uses: ./.github/actions/run-tests
450539
with:
@@ -1208,6 +1297,95 @@ jobs:
12081297
if: failure()
12091298
run: kubectl -n openwifi-qa01 logs deployment/owsec
12101299

1300+
test-emplus-wap588m:
1301+
needs: [ "vars", "build" ]
1302+
runs-on: ubuntu-latest
1303+
if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'emplus_wap588m')"
1304+
env:
1305+
AP_MODEL: emplus_wap588m
1306+
steps:
1307+
- name: Set AP model output
1308+
id: ap_model
1309+
run: |
1310+
echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT
1311+
1312+
- uses: actions/checkout@v3
1313+
- name: Set up Python
1314+
uses: actions/setup-python@v4
1315+
with:
1316+
python-version: "3.8"
1317+
1318+
# TODO WIFI-7839 delete when issue is resolved on AWS CLI side
1319+
- name: install kubectl
1320+
run: |
1321+
curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl"
1322+
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
1323+
1324+
- name: get EKS access credentials
1325+
run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }}
1326+
1327+
- name: prepare namespace name
1328+
id: namespace
1329+
run: |
1330+
NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')"
1331+
echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT
1332+
1333+
- name: prepare configuration
1334+
run: |
1335+
cat << EOF > lab_info.json
1336+
${{ secrets.LAB_INFO_JSON }}
1337+
EOF
1338+
1339+
1340+
- name: run tests
1341+
uses: ./.github/actions/run-tests
1342+
with:
1343+
namespace: ${{ steps.namespace.outputs.name }}
1344+
testbed: basic-1
1345+
marker_expression: "${{ needs.vars.outputs.marker_expression }}"
1346+
configuration_file: "./lab_info.json"
1347+
testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }}
1348+
additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"'
1349+
allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}"
1350+
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"
1351+
1352+
# necessary because if conditionals in composite actions are currently not respected
1353+
- name: get tests logs
1354+
if: always()
1355+
continue-on-error: true
1356+
run: |
1357+
podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///")
1358+
kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true
1359+
1360+
- name: delete namespace
1361+
if: always()
1362+
continue-on-error: true
1363+
run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }}
1364+
1365+
- name: show gw logs
1366+
if: failure()
1367+
run: kubectl -n openwifi-qa01 logs deployment/owgw
1368+
1369+
- name: show fms logs
1370+
if: failure()
1371+
run: kubectl -n openwifi-qa01 logs deployment/owfms
1372+
1373+
- name: show prov logs
1374+
if: failure()
1375+
run: kubectl -n openwifi-qa01 logs deployment/owprov
1376+
1377+
- name: show analytics logs
1378+
if: failure()
1379+
run: kubectl -n openwifi-qa01 logs deployment/owanalytics
1380+
1381+
- name: show subscription (userportal) logs
1382+
if: failure()
1383+
run: kubectl -n openwifi-qa01 logs deployment/owsub
1384+
1385+
- name: show sec logs
1386+
if: failure()
1387+
run: kubectl -n openwifi-qa01 logs deployment/owsec
1388+
12111389
test-udaya-a6-id2:
12121390
needs: [ "vars", "build" ]
12131391
runs-on: ubuntu-latest
@@ -1656,7 +1834,7 @@ jobs:
16561834
report:
16571835
if: "!cancelled()"
16581836
runs-on: ubuntu-latest
1659-
needs: [vars, test-cig-wf186h, test-edgecore-eap104, test-cig-wf196, test-udaya-a6-id2, test-sonicfi-rap630c-311g, test-hfcl-ion4xe, test-yuncore-fap655, test-cig-wf189, test-edgecore-eap105, test-sonicfi-rap7110c-341x, test-edgecore-eap101, test-edgecore-eap111,test-edgecore-oap103,test-edgecore-eap112,test-cig-wf189h,test-senao-iap4300m,test-cig-wf672]
1837+
needs: [vars, test-cig-wf186h, test-edgecore-eap104, test-cig-wf196, test-udaya-a6-id2, test-sonicfi-rap630c-311g, test-hfcl-ion4xe, test-yuncore-fap655, test-cig-wf189, test-edgecore-eap105, test-sonicfi-rap7110c-341x, test-edgecore-eap101, test-edgecore-eap111,test-edgecore-oap103,test-edgecore-eap112,test-cig-wf189h,test-senao-iap4300m,test-cig-wf672,test-emplus-wap588m,test-sonicfi-rap630w-211g]
16601838
strategy:
16611839
fail-fast: false
16621840
matrix:
@@ -1707,7 +1885,7 @@ jobs:
17071885

17081886
# Cleanup
17091887
cleanup:
1710-
needs: [test-cig-wf186h, test-edgecore-eap104, test-cig-wf196, test-udaya-a6-id2, test-sonicfi-rap630c-311g, test-hfcl-ion4xe, test-yuncore-fap655, test-cig-wf189, test-edgecore-eap105, test-sonicfi-rap7110c-341x, test-edgecore-eap101, test-edgecore-eap111,test-edgecore-oap103,test-edgecore-eap112,test-cig-wf189h,test-senao-iap4300m,test-cig-wf672]
1888+
needs: [test-cig-wf186h, test-edgecore-eap104, test-cig-wf196, test-udaya-a6-id2, test-sonicfi-rap630c-311g, test-hfcl-ion4xe, test-yuncore-fap655, test-cig-wf189, test-edgecore-eap105, test-sonicfi-rap7110c-341x, test-edgecore-eap101, test-edgecore-eap111,test-edgecore-oap103,test-edgecore-eap112,test-cig-wf189h,test-senao-iap4300m,test-cig-wf672,test-emplus-wap588m,test-sonicfi-rap630w-211g]
17111889
runs-on: ubuntu-latest
17121890
if: always()
17131891
steps:

0 commit comments

Comments
 (0)