Skip to content

Commit ea33962

Browse files
committed
Add sonicfi_rap750w-311a AP to Sanity workflow
Signed-off-by: bhargavi-ct <bhargavi.mamidipaka@candelatech.com>
1 parent 3c397ef commit ea33962

1 file changed

Lines changed: 92 additions & 3 deletions

File tree

.github/workflows/quali.yml

Lines changed: 92 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,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"
2626
description: "the AP models to test"
2727
ap_version:
2828
required: true
@@ -1653,6 +1653,95 @@ jobs:
16531653
if: failure()
16541654
run: kubectl -n openwifi-qa01 logs deployment/owsec
16551655

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+
16561745
test-edgecore-oap103:
16571746
needs: [ "vars", "build" ]
16581747
runs-on: ubuntu-latest
@@ -1923,7 +2012,7 @@ jobs:
19232012
report:
19242013
if: "!cancelled()"
19252014
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]
19272016
strategy:
19282017
fail-fast: false
19292018
matrix:
@@ -1974,7 +2063,7 @@ jobs:
19742063

19752064
# Cleanup
19762065
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]
19782067
runs-on: ubuntu-latest
19792068
if: always()
19802069
steps:

0 commit comments

Comments
 (0)