|
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" |
| 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" |
26 | 26 | description: "the AP models to test" |
27 | 27 | ap_version: |
28 | 28 | required: true |
@@ -1653,6 +1653,95 @@ jobs: |
1653 | 1653 | if: failure() |
1654 | 1654 | run: kubectl -n openwifi-qa01 logs deployment/owsec |
1655 | 1655 |
|
| 1656 | + test-sonicfi-rap750w-311a: |
| 1657 | + needs: [ "vars", "build" ] |
| 1658 | + runs-on: ubuntu-latest |
| 1659 | + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'sonicfi_rap750w-311a')" |
| 1660 | + env: |
| 1661 | + AP_MODEL: sonicfi_rap750w-311a |
| 1662 | + steps: |
| 1663 | + - name: Set AP model output |
| 1664 | + id: ap_model |
| 1665 | + run: | |
| 1666 | + echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT |
| 1667 | +
|
| 1668 | + - uses: actions/checkout@v3 |
| 1669 | + - name: Set up Python |
| 1670 | + uses: actions/setup-python@v4 |
| 1671 | + with: |
| 1672 | + python-version: "3.8" |
| 1673 | + |
| 1674 | + # TODO WIFI-7839 delete when issue is resolved on AWS CLI side |
| 1675 | + - name: install kubectl |
| 1676 | + run: | |
| 1677 | + curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl" |
| 1678 | + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
| 1679 | +
|
| 1680 | + - name: get EKS access credentials |
| 1681 | + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} |
| 1682 | + |
| 1683 | + - name: prepare namespace name |
| 1684 | + id: namespace |
| 1685 | + run: | |
| 1686 | + NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')" |
| 1687 | + echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT |
| 1688 | +
|
| 1689 | + - name: prepare configuration |
| 1690 | + run: | |
| 1691 | + cat << EOF > lab_info.json |
| 1692 | + ${{ secrets.LAB_INFO_JSON }} |
| 1693 | + EOF |
| 1694 | +
|
| 1695 | +
|
| 1696 | + - name: run tests |
| 1697 | + uses: ./.github/actions/run-tests |
| 1698 | + with: |
| 1699 | + namespace: ${{ steps.namespace.outputs.name }} |
| 1700 | + testbed: basic-1a |
| 1701 | + marker_expression: "${{ needs.vars.outputs.marker_expression }}" |
| 1702 | + configuration_file: "./lab_info.json" |
| 1703 | + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} |
| 1704 | + additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"' |
| 1705 | + allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" |
| 1706 | + 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" |
| 1707 | + |
| 1708 | + # necessary because if conditionals in composite actions are currently not respected |
| 1709 | + - name: get tests logs |
| 1710 | + if: always() |
| 1711 | + continue-on-error: true |
| 1712 | + run: | |
| 1713 | + podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") |
| 1714 | + kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true |
| 1715 | +
|
| 1716 | + - name: delete namespace |
| 1717 | + if: always() |
| 1718 | + continue-on-error: true |
| 1719 | + run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }} |
| 1720 | + |
| 1721 | + - name: show gw logs |
| 1722 | + if: failure() |
| 1723 | + run: kubectl -n openwifi-qa01 logs deployment/owgw |
| 1724 | + |
| 1725 | + - name: show fms logs |
| 1726 | + if: failure() |
| 1727 | + run: kubectl -n openwifi-qa01 logs deployment/owfms |
| 1728 | + |
| 1729 | + - name: show prov logs |
| 1730 | + if: failure() |
| 1731 | + run: kubectl -n openwifi-qa01 logs deployment/owprov |
| 1732 | + |
| 1733 | + - name: show analytics logs |
| 1734 | + if: failure() |
| 1735 | + run: kubectl -n openwifi-qa01 logs deployment/owanalytics |
| 1736 | + |
| 1737 | + - name: show subscription (userportal) logs |
| 1738 | + if: failure() |
| 1739 | + run: kubectl -n openwifi-qa01 logs deployment/owsub |
| 1740 | + |
| 1741 | + - name: show sec logs |
| 1742 | + if: failure() |
| 1743 | + run: kubectl -n openwifi-qa01 logs deployment/owsec |
| 1744 | + |
1656 | 1745 | test-edgecore-oap103: |
1657 | 1746 | needs: [ "vars", "build" ] |
1658 | 1747 | runs-on: ubuntu-latest |
@@ -1923,7 +2012,7 @@ jobs: |
1923 | 2012 | report: |
1924 | 2013 | if: "!cancelled()" |
1925 | 2014 | runs-on: ubuntu-latest |
1926 | | - 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] |
| 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] |
1927 | 2016 | strategy: |
1928 | 2017 | fail-fast: false |
1929 | 2018 | matrix: |
@@ -1974,7 +2063,7 @@ jobs: |
1974 | 2063 |
|
1975 | 2064 | # Cleanup |
1976 | 2065 | cleanup: |
1977 | | - 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] |
| 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] |
1978 | 2067 | runs-on: ubuntu-latest |
1979 | 2068 | if: always() |
1980 | 2069 | steps: |
|
0 commit comments