Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions run_l2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ echo "Status|Download In Progress" >> /opt/fwdnldstatus.txt
echo "DnldFile|TESTIMAGE_DEV.bin" >> /opt/fwdnldstatus.txt
echo "DnldURL|https://mockserver.tv/Images" >> /opt/fwdnldstatus.txt
echo "FwUpdateState|Download complete" >> /opt/fwdnldstatus.txt
echo "uploaded" > /opt/loguploadstatus.txt

cp ./src/integrationtest/conf/mgrlist.conf /etc/

Expand Down Expand Up @@ -95,6 +96,12 @@ pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/custom
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/dhcpv4.json test/functional-tests/tests/tr69hostif_dhcpv4.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/moca.json test/functional-tests/tests/tr69hostif_moca.py

pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/device_info.json test/functional-tests/tests/tr69hostif_device_info.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/interfacestack.json test/functional-tests/tests/tr69hostif_interfacestack.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/opsdevicemgmt_logging.json test/functional-tests/tests/tr69hostif_opsdevicemgmt_logging.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/opsdevicemgmt_rpc.json test/functional-tests/tests/tr69hostif_opsdevicemgmt_rpc.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/storageservice.json test/functional-tests/tests/tr69hostif_storageservice.py
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/bluetooth.json test/functional-tests/tests/tr69hostif_bluetooth.py
pkill -f thunder-mock-server.js
pytest --json-report --json-report-summary --json-report-file $RESULT_DIR/thunder_negative_edge.json test/functional-tests/tests/tr69hostif_thunder_negative_edge_cases.py

107 changes: 107 additions & 0 deletions test/functional-tests/features/tr69hostif_bluetooth.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
####################################################################################
# If not stated otherwise in this file or this component's Licenses.txt file the
# following copyright and licenses apply:
#
# Copyright 2026 RDK Management
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
####################################################################################

# Source: ../tests/tr69hostif_bluetooth.py
# Source implementation: src/hostif/profiles/DeviceInfo/XrdkBlueTooth.cpp
# Feature: tr69hostif_bluetooth.feature

Feature: Bluetooth xBlueTooth Parameter Handler Validation

Background:
Given the tr69hostif daemon is running and initialized
And rbuscli is available on the system

Scenario Outline: GET xBlueTooth top-level parameters returns error
When I GET "<parameter>" via rbus
Then the rbus response should contain an error

Examples:
| parameter |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.enable |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveryEnabled |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDeviceCnt|
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDeviceCnt |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDeviceCnt |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.GetDeviceInfo |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.LimitBeaconDetection |

Scenario Outline: GET xBlueTooth DeviceInfo parameters returns error
When I GET "<parameter>" via rbus
Then the rbus response should contain an error

Examples:
| parameter |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.DeviceID |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.Manufacturer |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.Profile |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.MAC |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.SignalStrength |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DeviceInfo.RSSI |

Scenario Outline: GET xBlueTooth discovered and paired list parameters returns error
When I GET "<parameter>" via rbus
Then the rbus response should contain an error

Examples:
| parameter |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice.1.Name |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice.1.DeviceID |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice.1.DeviceType |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice.1.Paired |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.DiscoveredDevice.1.Connected |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDevice.1.Name |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDevice.1.DeviceID |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDevice.1.Connected |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.PairedDevice.1.DeviceType |

Scenario Outline: GET xBlueTooth connected device list parameters returns error
When I GET "<parameter>" via rbus
Then the rbus response should contain an error

Examples:
| parameter |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDevice.1.Name |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDevice.1.DeviceID |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDevice.1.DeviceType |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.ConnectedDevice.1.Active |

Scenario Outline: SET xBlueTooth writable parameters returns set failure
When I SET "<parameter>" to "<value>" as <type> via rbus
Then the rbus set response should contain "setvalues failed"

Examples:
| parameter | type | value |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.GetDeviceInfo | int | 1 |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.LimitBeaconDetection | boolean | true |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.Id | string | TILE-TEST-001 |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.SessionId | string | SESSION-TEST-001 |
| Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Cmd.Request | string | test-cmd |

Scenario: GET xBlueTooth BLE Tile Ring parameters returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.Id" via rbus
Then the rbus response should contain an error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.SessionId" via rbus
Then the rbus response should contain an error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.Trigger" via rbus
Then the rbus response should contain an error

Scenario: SET xBlueTooth BLE Tile Ring Trigger returns set failure
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.Id" to "TILE-TEST-001" as string via rbus
And I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_xBlueTooth.BLE.Tile.Ring.Trigger" to "false" as boolean via rbus
Then the rbus set response should contain "setvalues failed"
51 changes: 47 additions & 4 deletions test/functional-tests/features/tr69hostif_custom.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ Feature: Comcast/RDK Custom Parameter GET and SET via rbus
| Device.DeviceInfo.X_RDKCENTRAL-COM.CPUTemp |
| Device.DeviceInfo.X_RDKCENTRAL-COM_Experience |
| Device.DeviceInfo.X_RDK_FirmwareName |
| Device.DeviceInfo.X_RDKCENTRAL-COM_MigrationPreparer.MigrationReady |
| Device.DeviceInfo.X_RDKCENTRAL-COM_Migration.MigrationStatus |

Scenario Outline: SET then GET writable custom parameter
When I SET "<parameter>" to "<value>" as <type> via rbus
Expand All @@ -52,15 +50,60 @@ Feature: Comcast/RDK Custom Parameter GET and SET via rbus
Examples:
| parameter | type | value |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareToDownload | string | fw_image.bin |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus| string | IDLE |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol | string | https |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL | string | https://example.com/fw.bin |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadUseCodebig | boolean | true |
| Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadDeferReboot | boolean | true |
| Device.DeviceInfo.X_RDKCENTRAL-COM_PreferredGatewayType | string | DOCSIS |
| Device.DeviceInfo.X_RDKCENTRAL-COM.IUI.Version | string | 1.0.0 |
| Device.DeviceInfo.X_RDKCENTRAL-COM.IUI.AppsVersion | string | 1.0.0 |

Scenario: GET Device.DeviceInfo.X_COMCAST-COM_STB_MAC returns error
When I GET "Device.DeviceInfo.X_COMCAST-COM_STB_MAC" via rbus
Then the rbus response should contain an error

Scenario: SET Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus returns error
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus" to "IDLE" as string via rbus
Then the rbus response should contain an error

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadStatus" via rbus
Then the rbus response should not contain an error

Scenario: SET Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadUseCodebig
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadUseCodebig" to "true" as boolean via rbus
Then the rbus response should indicate success

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadUseCodebig returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadUseCodebig" via rbus
Then the rbus response should contain an error

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadPercent returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadPercent" via rbus
Then the rbus response should contain an error

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_LastRebootReason returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_LastRebootReason" via rbus
Then the rbus response should contain an error

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_MigrationPreparer.MigrationReady returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_MigrationPreparer.MigrationReady" via rbus
Then the rbus response should contain an error

Scenario: GET Device.DeviceInfo.X_RDKCENTRAL-COM_Migration.MigrationStatus returns error
When I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_Migration.MigrationStatus" via rbus
Then the rbus response should contain an error

Scenario: SET and GET FirmwareDownloadProtocol COMCAST alias value
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol" to "http" as string via rbus
And I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadProtocol" via rbus
Then the rbus response should not contain an error
And the rbus response should contain "http"

Scenario: SET and GET FirmwareDownloadURL COMCAST alias value
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL" to "https://example.com/fw-comcast.bin" as string via rbus
And I GET "Device.DeviceInfo.X_RDKCENTRAL-COM_FirmwareDownloadURL" via rbus
Then the rbus response should not contain an error

Scenario: SET Device.DeviceInfo.X_RDKCENTRAL-COM_Reset
When I SET "Device.DeviceInfo.X_RDKCENTRAL-COM_Reset" to "Factory" as string via rbus
Then the rbus response should indicate success
Expand Down
Loading
Loading