Comment 2 for bug 1010014

Revision history for this message
David Kranz (david-kranz) wrote :

I am still trying to understand how we are deciding which argument variants for APIs are supposed to have a Tempest test. The nova unit test in nova/nova/tests/api/openstack/compute/test_server_metadata.py has these tests and a zillion more. I thought the point was to test things that unit tests *could not* because the unit tests splice out real vm or db operations in order to be fast, or because multiple components are involved. But all these test cases end up in the same code as the unit tests do, just more slowly.

It seems to me we should have a few cases to make sure the basic code path works, but only be testing lots of multiple argument variants when we expect that they could induce different behavior in parts of the system that the unit tests are stubbing out. What do other people think?

I don't mean to pick on this bug in particular. It applies to all classes of Tempest test cases.