Skip to content

updates to support dynamic testdata - #10

Merged
ssmails merged 6 commits into
mainfrom
conformance_tests_updates
Oct 12, 2026
Merged

ssmails merged 6 commits into
mainfrom
conformance_tests_updates

Conversation

@ssmails

@ssmails ssmails commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor
  • updates to have testdata that can be updated dynamically via configurable json instead of hardcoded in the test cases.
  • this provides flexibility to allow the testcases to be run against different third party adapters as welll as cisco supported adapters. adapter caller can modify the testdata/*.json based on any validations on their adapter.
(.venv) sushroff@localhost:53000 conformance % python -m pytest switch/test_switch.py -v
============ test session starts =============
platform darwin -- Python 3.13.7, pytest-9.1.1, pluggy-1.6.0 -- /Users/sushroff/Documents/quantum/quantum-hal/test/conformance/.venv/bin/python
cachedir: .pytest_cache
rootdir: /Users/sushroff/Documents/quantum/quantum-hal/test/conformance
collected 49 items                           

switch/test_switch.py::test_health_check PASSED [  2%]
switch/test_switch.py::TestSwitch::test_resource_health_check[POLATIS] PASSED [  4%]
switch/test_switch.py::TestSwitch::test_auto_recover[POLATIS] PASSED [  6%]
switch/test_switch.py::TestSwitch::test_tune[POLATIS] PASSED [  8%]
switch/test_switch.py::TestSwitch::test_get_product_info[POLATIS] PASSED [ 10%]
switch/test_switch.py::TestSwitch::test_initialize[POLATIS] PASSED [ 12%]
switch/test_switch.py::TestSwitch::test_deinitialize[POLATIS] PASSED [ 14%]
switch/test_switch.py::TestSwitch::test_get_status[POLATIS] PASSED [ 16%]
switch/test_switch.py::TestSwitch::test_set_config[POLATIS] PASSED [ 18%]
switch/test_switch.py::TestSwitch::test_commit_connection[POLATIS] PASSED [ 20%]
switch/test_switch.py::TestSwitch::test_clear_connections[POLATIS] PASSED [ 22%]
switch/test_switch.py::TestSwitch::test_execute_command[POLATIS] PASSED [ 24%]
switch/test_switch.py::TestSwitch::test_trigger_event[POLATIS] PASSED [ 26%]
switch/test_switch.py::TestSwitch::test_resource_health_check[JW] PASSED [ 28%]
switch/test_switch.py::TestSwitch::test_auto_recover[JW] PASSED [ 30%]
switch/test_switch.py::TestSwitch::test_tune[JW] PASSED [ 32%]
switch/test_switch.py::TestSwitch::test_get_product_info[JW] PASSED [ 34%]
switch/test_switch.py::TestSwitch::test_initialize[JW] PASSED [ 36%]
switch/test_switch.py::TestSwitch::test_deinitialize[JW] PASSED [ 38%]
switch/test_switch.py::TestSwitch::test_get_status[JW] PASSED [ 40%]
switch/test_switch.py::TestSwitch::test_set_config[JW] PASSED [ 42%]
switch/test_switch.py::TestSwitch::test_commit_connection[JW] PASSED [ 44%]
switch/test_switch.py::TestSwitch::test_clear_connections[JW] PASSED [ 46%]
switch/test_switch.py::TestSwitch::test_execute_command[JW] PASSED [ 48%]
switch/test_switch.py::TestSwitch::test_trigger_event[JW] PASSED [ 51%]
switch/test_switch.py::TestSwitch::test_resource_health_check[OSW] PASSED [ 53%]
switch/test_switch.py::TestSwitch::test_auto_recover[OSW] PASSED [ 55%]
switch/test_switch.py::TestSwitch::test_tune[OSW] PASSED [ 57%]
switch/test_switch.py::TestSwitch::test_get_product_info[OSW] PASSED [ 59%]
switch/test_switch.py::TestSwitch::test_initialize[OSW] PASSED [ 61%]
switch/test_switch.py::TestSwitch::test_deinitialize[OSW] PASSED [ 63%]
switch/test_switch.py::TestSwitch::test_get_status[OSW] PASSED [ 65%]
switch/test_switch.py::TestSwitch::test_set_config[OSW] PASSED [ 67%]
switch/test_switch.py::TestSwitch::test_commit_connection[OSW] PASSED [ 69%]
switch/test_switch.py::TestSwitch::test_clear_connections[OSW] PASSED [ 71%]
switch/test_switch.py::TestSwitch::test_execute_command[OSW] PASSED [ 73%]
switch/test_switch.py::TestSwitch::test_trigger_event[OSW] PASSED [ 75%]
switch/test_switch.py::TestSwitch::test_resource_health_check[QSWITCH] PASSED [ 77%]
switch/test_switch.py::TestSwitch::test_auto_recover[QSWITCH] PASSED [ 79%]
switch/test_switch.py::TestSwitch::test_tune[QSWITCH] PASSED [ 81%]
switch/test_switch.py::TestSwitch::test_get_product_info[QSWITCH] PASSED [ 83%]
switch/test_switch.py::TestSwitch::test_initialize[QSWITCH] PASSED [ 85%]
switch/test_switch.py::TestSwitch::test_deinitialize[QSWITCH] PASSED [ 87%]
switch/test_switch.py::TestSwitch::test_get_status[QSWITCH] PASSED [ 89%]
switch/test_switch.py::TestSwitch::test_set_config[QSWITCH] PASSED [ 91%]
switch/test_switch.py::TestSwitch::test_commit_connection[QSWITCH] PASSED [ 93%]
switch/test_switch.py::TestSwitch::test_clear_connections[QSWITCH] PASSED [ 95%]
switch/test_switch.py::TestSwitch::test_execute_command[QSWITCH] PASSED [ 97%]
switch/test_switch.py::TestSwitch::test_trigger_event[QSWITCH] PASSED [100%]

============= 49 passed in 0.22s =============

@ssmails
ssmails marked this pull request as draft October 10, 2026 00:48
@ssmails
ssmails marked this pull request as ready for review October 12, 2026 16:31
@ssmails
ssmails merged commit aa7efed into main Oct 12, 2026
6 checks passed
@ssmails
ssmails deleted the conformance_tests_updates branch October 12, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants