|
22 | 22 | description: "revision of the Open Wifi Helm chart" |
23 | 23 | ap_models: |
24 | 24 | 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,emplus_wap588m,sonicfi_rap630w-211g,cig_wf189,cig_wf186w,sonicfi_rap750w-311a" |
| 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,cig_wf189,cig_wf186w,sonicfi_rap750w-311a,edgecore_eap102" |
26 | 26 | description: "the AP models to test" |
27 | 27 | ap_version: |
28 | 28 | required: true |
@@ -1386,6 +1386,95 @@ jobs: |
1386 | 1386 | if: failure() |
1387 | 1387 | run: kubectl -n openwifi-qa01 logs deployment/owsec |
1388 | 1388 |
|
| 1389 | + test-edgecore-eap102: |
| 1390 | + needs: [ "vars", "build" ] |
| 1391 | + runs-on: ubuntu-latest |
| 1392 | + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'edgecore_eap102')" |
| 1393 | + env: |
| 1394 | + AP_MODEL: edgecore_eap102 |
| 1395 | + steps: |
| 1396 | + - name: Set AP model output |
| 1397 | + id: ap_model |
| 1398 | + run: | |
| 1399 | + echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT |
| 1400 | +
|
| 1401 | + - uses: actions/checkout@v3 |
| 1402 | + - name: Set up Python |
| 1403 | + uses: actions/setup-python@v4 |
| 1404 | + with: |
| 1405 | + python-version: "3.8" |
| 1406 | + |
| 1407 | + # TODO WIFI-7839 delete when issue is resolved on AWS CLI side |
| 1408 | + - name: install kubectl |
| 1409 | + run: | |
| 1410 | + curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl" |
| 1411 | + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
| 1412 | +
|
| 1413 | + - name: get EKS access credentials |
| 1414 | + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} |
| 1415 | + |
| 1416 | + - name: prepare namespace name |
| 1417 | + id: namespace |
| 1418 | + run: | |
| 1419 | + NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')" |
| 1420 | + echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT |
| 1421 | +
|
| 1422 | + - name: prepare configuration |
| 1423 | + run: | |
| 1424 | + cat << EOF > lab_info.json |
| 1425 | + ${{ secrets.LAB_INFO_JSON }} |
| 1426 | + EOF |
| 1427 | +
|
| 1428 | +
|
| 1429 | + - name: run tests |
| 1430 | + uses: ./.github/actions/run-tests |
| 1431 | + with: |
| 1432 | + namespace: ${{ steps.namespace.outputs.name }} |
| 1433 | + testbed: basic-1a |
| 1434 | + marker_expression: "${{ needs.vars.outputs.marker_expression }}" |
| 1435 | + configuration_file: "./lab_info.json" |
| 1436 | + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} |
| 1437 | + additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"' |
| 1438 | + allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" |
| 1439 | + 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" |
| 1440 | + |
| 1441 | + # necessary because if conditionals in composite actions are currently not respected |
| 1442 | + - name: get tests logs |
| 1443 | + if: always() |
| 1444 | + continue-on-error: true |
| 1445 | + run: | |
| 1446 | + podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") |
| 1447 | + kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true |
| 1448 | +
|
| 1449 | + - name: delete namespace |
| 1450 | + if: always() |
| 1451 | + continue-on-error: true |
| 1452 | + run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }} |
| 1453 | + |
| 1454 | + - name: show gw logs |
| 1455 | + if: failure() |
| 1456 | + run: kubectl -n openwifi-qa01 logs deployment/owgw |
| 1457 | + |
| 1458 | + - name: show fms logs |
| 1459 | + if: failure() |
| 1460 | + run: kubectl -n openwifi-qa01 logs deployment/owfms |
| 1461 | + |
| 1462 | + - name: show prov logs |
| 1463 | + if: failure() |
| 1464 | + run: kubectl -n openwifi-qa01 logs deployment/owprov |
| 1465 | + |
| 1466 | + - name: show analytics logs |
| 1467 | + if: failure() |
| 1468 | + run: kubectl -n openwifi-qa01 logs deployment/owanalytics |
| 1469 | + |
| 1470 | + - name: show subscription (userportal) logs |
| 1471 | + if: failure() |
| 1472 | + run: kubectl -n openwifi-qa01 logs deployment/owsub |
| 1473 | + |
| 1474 | + - name: show sec logs |
| 1475 | + if: failure() |
| 1476 | + run: kubectl -n openwifi-qa01 logs deployment/owsec |
| 1477 | + |
1389 | 1478 | test-emplus-wap588m: |
1390 | 1479 | needs: [ "vars", "build" ] |
1391 | 1480 | runs-on: ubuntu-latest |
@@ -1697,7 +1786,7 @@ jobs: |
1697 | 1786 | uses: ./.github/actions/run-tests |
1698 | 1787 | with: |
1699 | 1788 | namespace: ${{ steps.namespace.outputs.name }} |
1700 | | - testbed: basic-1a |
| 1789 | + testbed: basic-3 |
1701 | 1790 | marker_expression: "${{ needs.vars.outputs.marker_expression }}" |
1702 | 1791 | configuration_file: "./lab_info.json" |
1703 | 1792 | testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} |
@@ -2012,7 +2101,7 @@ jobs: |
2012 | 2101 | report: |
2013 | 2102 | if: "!cancelled()" |
2014 | 2103 | runs-on: ubuntu-latest |
2015 | | - 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,test-cig-wf186w,test-sonicfi-rap750w-311a] |
| 2104 | + 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,test-cig-wf186w,test-sonicfi-rap750w-311a,test-edgecore-eap102] |
2016 | 2105 | strategy: |
2017 | 2106 | fail-fast: false |
2018 | 2107 | matrix: |
@@ -2063,7 +2152,7 @@ jobs: |
2063 | 2152 |
|
2064 | 2153 | # Cleanup |
2065 | 2154 | cleanup: |
2066 | | - 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,test-cig-wf186w,test-sonicfi-rap750w-311a] |
| 2155 | + 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,test-cig-wf186w,test-sonicfi-rap750w-311a,test-edgecore-eap102] |
2067 | 2156 | runs-on: ubuntu-latest |
2068 | 2157 | if: always() |
2069 | 2158 | steps: |
|
0 commit comments