|
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" |
| 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" |
26 | 26 | description: "the AP models to test" |
27 | 27 | ap_version: |
28 | 28 | required: true |
@@ -850,6 +850,95 @@ jobs: |
850 | 850 | if: failure() |
851 | 851 | run: kubectl -n openwifi-qa01 logs deployment/owsec |
852 | 852 |
|
| 853 | + test-cig-wf186w: |
| 854 | + needs: [ "vars", "build" ] |
| 855 | + runs-on: ubuntu-latest |
| 856 | + if: "!cancelled() && contains(fromJSON(needs.vars.outputs.ap_models), 'cig_wf186w')" |
| 857 | + env: |
| 858 | + AP_MODEL: cig_wf186w |
| 859 | + steps: |
| 860 | + - name: Set AP model output |
| 861 | + id: ap_model |
| 862 | + run: | |
| 863 | + echo "model=${AP_MODEL}" >> $GITHUB_OUTPUT |
| 864 | +
|
| 865 | + - uses: actions/checkout@v3 |
| 866 | + - name: Set up Python |
| 867 | + uses: actions/setup-python@v4 |
| 868 | + with: |
| 869 | + python-version: "3.8" |
| 870 | + |
| 871 | + # TODO WIFI-7839 delete when issue is resolved on AWS CLI side |
| 872 | + - name: install kubectl |
| 873 | + run: | |
| 874 | + curl -s -LO "https://dl.k8s.io/release/v1.27.6/bin/linux/amd64/kubectl" |
| 875 | + sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl |
| 876 | +
|
| 877 | + - name: get EKS access credentials |
| 878 | + run: aws eks update-kubeconfig --name ${{ env.AWS_EKS_NAME }} |
| 879 | + |
| 880 | + - name: prepare namespace name |
| 881 | + id: namespace |
| 882 | + run: | |
| 883 | + NAMESPACE="testing-${{ github.run_id }}-$(echo ${{ steps.ap_model.outputs.model }} | tr '[:upper:]' '[:lower:]' | tr '_' '-')" |
| 884 | + echo "name=${NAMESPACE}" >> $GITHUB_OUTPUT |
| 885 | +
|
| 886 | + - name: prepare configuration |
| 887 | + run: | |
| 888 | + cat << EOF > lab_info.json |
| 889 | + ${{ secrets.LAB_INFO_JSON }} |
| 890 | + EOF |
| 891 | +
|
| 892 | +
|
| 893 | + - name: run tests |
| 894 | + uses: ./.github/actions/run-tests |
| 895 | + with: |
| 896 | + namespace: ${{ steps.namespace.outputs.name }} |
| 897 | + testbed: basic-1 |
| 898 | + marker_expression: "${{ needs.vars.outputs.marker_expression }}" |
| 899 | + configuration_file: "./lab_info.json" |
| 900 | + testing_docker_image: tip-tip-wlan-cloud-docker-repo.jfrog.io/cloud-sdk-nightly:${{ github.run_id }} |
| 901 | + additional_args: '-o firmware="${{ needs.vars.outputs.ap_version }}"' |
| 902 | + allure_results_artifact_name: "allure-results-${{ steps.ap_model.outputs.model }}" |
| 903 | + 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" |
| 904 | + |
| 905 | + # necessary because if conditionals in composite actions are currently not respected |
| 906 | + - name: get tests logs |
| 907 | + if: always() |
| 908 | + continue-on-error: true |
| 909 | + run: | |
| 910 | + podname=$(kubectl get pods -n ${{ steps.namespace.outputs.name }} --no-headers -o custom-columns=":metadata.name" -l job-name=testing | sed "s/pod\///") |
| 911 | + kubectl logs --timestamps -n ${{ steps.namespace.outputs.name }} $podname || true |
| 912 | +
|
| 913 | + - name: delete namespace |
| 914 | + if: always() |
| 915 | + continue-on-error: true |
| 916 | + run: kubectl delete ns --ignore-not-found=true --wait ${{ steps.namespace.outputs.name }} |
| 917 | + |
| 918 | + - name: show gw logs |
| 919 | + if: failure() |
| 920 | + run: kubectl -n openwifi-qa01 logs deployment/owgw |
| 921 | + |
| 922 | + - name: show fms logs |
| 923 | + if: failure() |
| 924 | + run: kubectl -n openwifi-qa01 logs deployment/owfms |
| 925 | + |
| 926 | + - name: show prov logs |
| 927 | + if: failure() |
| 928 | + run: kubectl -n openwifi-qa01 logs deployment/owprov |
| 929 | + |
| 930 | + - name: show analytics logs |
| 931 | + if: failure() |
| 932 | + run: kubectl -n openwifi-qa01 logs deployment/owanalytics |
| 933 | + |
| 934 | + - name: show subscription (userportal) logs |
| 935 | + if: failure() |
| 936 | + run: kubectl -n openwifi-qa01 logs deployment/owsub |
| 937 | + |
| 938 | + - name: show sec logs |
| 939 | + if: failure() |
| 940 | + run: kubectl -n openwifi-qa01 logs deployment/owsec |
| 941 | + |
853 | 942 | test-senao-iap4300m: |
854 | 943 | needs: [ "vars", "build" ] |
855 | 944 | runs-on: ubuntu-latest |
@@ -1834,7 +1923,7 @@ jobs: |
1834 | 1923 | report: |
1835 | 1924 | if: "!cancelled()" |
1836 | 1925 | runs-on: ubuntu-latest |
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] |
| 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] |
1838 | 1927 | strategy: |
1839 | 1928 | fail-fast: false |
1840 | 1929 | matrix: |
@@ -1885,7 +1974,7 @@ jobs: |
1885 | 1974 |
|
1886 | 1975 | # Cleanup |
1887 | 1976 | cleanup: |
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] |
| 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] |
1889 | 1978 | runs-on: ubuntu-latest |
1890 | 1979 | if: always() |
1891 | 1980 | steps: |
|
0 commit comments