|
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" |
| 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" |
26 | 26 | description: "the AP models to test" |
27 | 27 | ap_version: |
28 | 28 | required: true |
@@ -445,6 +445,95 @@ jobs: |
445 | 445 | EOF |
446 | 446 | |
447 | 447 |
|
| 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 | +
|
448 | 537 | - name: run tests |
449 | 538 | uses: ./.github/actions/run-tests |
450 | 539 | with: |
@@ -1208,6 +1297,95 @@ jobs: |
1208 | 1297 | if: failure() |
1209 | 1298 | run: kubectl -n openwifi-qa01 logs deployment/owsec |
1210 | 1299 |
|
| 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 | + |
1211 | 1389 | test-udaya-a6-id2: |
1212 | 1390 | needs: [ "vars", "build" ] |
1213 | 1391 | runs-on: ubuntu-latest |
@@ -1656,7 +1834,7 @@ jobs: |
1656 | 1834 | report: |
1657 | 1835 | if: "!cancelled()" |
1658 | 1836 | 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] |
1660 | 1838 | strategy: |
1661 | 1839 | fail-fast: false |
1662 | 1840 | matrix: |
@@ -1707,7 +1885,7 @@ jobs: |
1707 | 1885 |
|
1708 | 1886 | # Cleanup |
1709 | 1887 | 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] |
1711 | 1889 | runs-on: ubuntu-latest |
1712 | 1890 | if: always() |
1713 | 1891 | steps: |
|
0 commit comments