mkumatag / openbmc-automation

Test OpenBMC Distribution, moved to - https://github.com/openbmc/openbmc-test-automation
Apache License 2.0
5 stars 11 forks source link

PreTag Test Automation Basic Code clean-up needed #68

Closed gkeishin closed 8 years ago

gkeishin commented 8 years ago

1. tests/test_fan.robot

* Settings * Documentation This testsuite is for testing fan interface for openbmc Suite Teardown Delete All Sessions Resource ../lib/rest_client.robot

* Test Cases * ~
~
Shouldn't leave it empty with * Test cases **

[ ERROR ] Suite 'Test Fan' contains no tests.

2. tests/security/test_ssl.robot
Remove : Library RequestsLibrary.RequestsKeywords
The Library RequestsLibrary.RequestsKeywords is already include in the lib/rest_client.robot so no need to add redundant code here

3. tests/test_association.robot Remove : Library BuiltIn The built In doesn't need to be explicitly included

Probably a good idea if we could do this two combo in Test Suite Setup

Clear all logs
Open Connection And Log In

4. tests/test_bootpolicy.robot

Remove : ${SYSTEM_SHUTDOWN_TIME} ${5} ${WAIT_FOR_POWER_OPERATION} 30sec

This variable is not used anywhere in this suite, probably a copy paste left over code.

5. tests/test_eventlog.robot

Remove : Library BuiltIn The built In doesn't need to be explicitly included

Typo : making NOT makeing in test case "makeing new log after obmc-phosphor-event.service restart"

Suggestion : Example, its good to verify the execute command to stop continue and fail latter if the command returns errors ${output}= Execute Command /sbin/reboot To ${output} ${stderr}= Execute Command /sbin/reboot return_stderr=True Should Be Empty ${stderr}

This would save time and error catching more better Do for all the execute command in the code

mkumatag commented 8 years ago

can you please submit a PR for the same if you don't mind!

gkeishin commented 8 years ago

Will push this in changes new repo which is created,, Thanks

gkeishin commented 8 years ago

Closed and move to new Repo https://github.com/openbmc/openbmc-test-automation/issues/9