apitest -T -v -f /usr/share/oscar/testing/wizard_tests/before_step_7.apb

is now at its early stages.

it tests so far:
- SE linux disabled (inherited from before_step_0.apb)
- IPV6 test (localhost.localdomain not using ::1) (inherited from 
before_step_0.apb)
- all nodes are up
- ssh as user oscartst works in both directions on all nodes
- /home/oscartst is visible and writable as user oscartst on all nodes

Maybe we could add a test that would check that all configured packages have at 
least one .apb => helpful during development to prevent that some opkg exists 
with no tests able to validate the config.

Best regards,

Olivier.
--
   Olivier LAHAYE
   CEA DRT/LIST/DM2I/DIR
________________________________
De : LAHAYE Olivier
Date d'envoi : vendredi 29 novembre 2013 17:05
À : oscar-devel@lists.sourceforge.net
Objet : [PROVENANCE INTERNET] [Oscar-devel] apitest-1.0.2 is great!

Hi,

I've juste started to write oscar tests using apitest. It seems cool.
It know how to handle root_tests and user_test
It knows about dependancies

You can create groups (named batches).
for example before_step_8.apb is a batch that would regroup all tests to do 
before starting this step.

inside, you can have a ssh.apb
which would regroup
- all_host_up test
- ssh server to node test
- ssh node to server test
with 2 last steps depending from the 1st one (all_nodes_up) as it's useless to 
test sssh itself if all nodes aren't up.

for example testing home would depend on ssh.apb (we need ssh to test mounted 
home).

for the moment I've only written a few test to see how it works, be it's really 
consistent and clean.

I'll commit my 1st steps so you can play with it a give suggestions.

For the moment, the scripts are not yet installed, but they should end up in 
/usr/lib/oscar/testing/wizard_tests/

to test a script:
copy wizard_tests/ to /usr/share/oscar/testing (wrong location for the moment)
then:
apitest -T -v -f /usr/share/oscar/testing/wizard_tests/all_nodes_up.apt
apitest -T -v -f /usr/share/oscar/testing/wizard_tests/home_mounts_ok.apt
apitest -T -v -f /usr/share/oscar/testing/wizard_tests/ssh_user_tests.apb

removing the -T option will leave an output directory in the current directory, 
and a log can be found inside (test outputs and return codes, stderr, and 
parameters like mustpass and such.

.apt file are single tests (unitary tests)
.apb files are "batch files" where a list of tests with dependencies are ran.

it's a LEGO system for tests where .apt are brciks and .apb are objects.

Best Regards,

Olivier.
--
   Olivier LAHAYE
   CEA DRT/LIST
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to