Conversation
- Added Authorization header in the tavern tests - Added a script, smd-test, to run the tests. - Added an image for the tests. Signed-off-by: Shane Unruh <shane.unruh@hpe.com>
- Changed smd-test to exit when a test fails and not continue on to the next set of tests - Updated the README to show running multiple test sets at once. Signed-off-by: Shane Unruh <shane.unruh@hpe.com>
|
What does the output look like when running these tests? |
|
The output looks like: |
|
The tests use pytest which can probably output in many different text formats. For example, the smd-test script could run pytest with an option like: I'll try that to see what happens. |
|
My objective with this PR is to make SMD's existing tests minimally work. |
|
Here is what a failure looks like when running the smoke tests |
|
Here is a failure in the tavern tests |
|
The tavern test output is hard to read and this has made me not like tavern; however, I'd want to see the output from another framework before switching to it. i.e. all test output may be hard to read. |
|
junitxml works (or could work if I updated the smd-test script). Tell me if there is a specific output you are interested in (text, or gui). Here is the smoke test output in junit xml. <?xml version="1.0" encoding="utf-8"?>
<testsuites>
<testsuite name="pytest" errors="0" failures="0" skipped="0" tests="29" time="2.279" timestamp="2025-10-10T02:58:24.006917" hostname="3d1f8cc512d7">
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/ready]" time="0.011"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/liveness]" time="0.012"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values]" time="0.010"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/arch]" time="0.006"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/class]" time="0.006"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/flag]" time="0.011"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/nettype]" time="0.011"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/role]" time="0.010"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/subrole]" time="0.006"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/state]" time="0.007"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/service/values/type]" time="0.007"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/State/Components]" time="0.020"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Defaults/NodeMaps]" time="0.120"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/DiscoveryStatus]" time="0.114"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/Hardware]" time="0.098"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/HardwareByFRU]" time="0.117"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/Hardware/History]" time="0.121"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/HardwareByFRU/History]" time="0.102"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/RedfishEndpoints]" time="0.146"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/ComponentEndpoints]" time="0.146"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/ServiceEndpoints]" time="0.119"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Inventory/EthernetInterfaces]" time="0.025"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/groups]" time="0.154"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/groups/labels]" time="0.118"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/partitions]" time="0.107"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/partitions/names]" time="0.125"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/memberships]" time="0.112"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/Subscriptions/SCN]" time="0.132"/>
<testcase classname="opt.smd-test.smoke_pytest.test_smoke" name="test_smoke[Verify GET hsm/v2/sysinfo/powermaps]" time="0.102"/>
</testsuite>
</testsuites> |
bmcdonald3
left a comment
There was a problem hiding this comment.
Thanks for addressing my concerns and showing output, looks good to me.
Pull Request Template
Thank you for your contribution! Please ensure the following before submitting:
Checklist
make test(or equivalent) locally and all tests passgit commit -s) with my real name and email<filename>.licensesidecarLICENSES/directoryDescription
Fixed CT tests to run in OpenCHAMI
Type of Change
For more info, see Contributing Guidelines.