Skip to content

Commit

Permalink
append test for REQ_ITF_DEVICE_0010_00
Browse files Browse the repository at this point in the history
  • Loading branch information
XdoctorwhoZ committed Nov 3, 2023
1 parent 4a9da9b commit 4d82228
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/basic-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
container: ubuntu:22.04
steps:
- name: Git checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

# ---
- run: apt-get update
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,3 @@ dmypy.json

# Pyre type checker
.pyre/

# Vscode
.vscode/
6 changes: 6 additions & 0 deletions platform/tests/auto/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"robot.pythonpath": [
"${workspaceFolder}",
"${workspaceFolder}/benches/virtual"
]
}
7 changes: 7 additions & 0 deletions platform/tests/auto/libraries/scan_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ def check_device_interfaces_scan_result_at_platform_boot(result):
# Only 1, the initial platform device
assert_that(result, has_length(1))

# Get the first key
key = next(iter(result.keys()))
# Get the first value
content = result[key]
assert_that(content, has_key("number_of_interfaces"))
assert_that(content["number_of_interfaces"], equal_to(2))

# ---

def extract_device_topic_from_scan_result(result):
Expand Down
2 changes: 1 addition & 1 deletion platform/tests/auto/tests/scan.robot
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Scan all platform interfaces at platform boot
Check platform interfaces scan result at platform boot ${INTERFACES}

Scan all device interfaces at platform boot
[Tags] REQ_SCAN_0003_00
[Tags] REQ_SCAN_0003_00 REQ_ITF_DEVICE_0010_00
${INTERFACES} Panduza Scan All Devices localhost 1883 1
Log ${INTERFACES}
check device interfaces scan result at platform boot ${INTERFACES}
Expand Down

0 comments on commit 4d82228

Please sign in to comment.