[openstack-dev] [neutron] Question on functional tests
pc at michali.net
Tue Jan 20 21:24:05 UTC 2015
My question is whether the tests proposed should be unit tests or
functional tests. They only test one method, and it's not a complete piece
of functionality - like creating a VPN connection.
If that one system call is mocked, these could all be treated as unit
tests. So I'm wondering if there is an advantage in actually testing the
system call (getaddrinfo), as part of this work?
PCM (Paul Michali)
IRC............ pc_m (irc.freenode.com)
On Tue, Jan 20, 2015 at 3:02 PM, Kevin Benton <blak111 at gmail.com> wrote:
> I don't believe we have any unit tests that create namespaces or veth
> pairs. This sounds like it belongs with functional tests.
> On Tue, Jan 20, 2015 at 10:20 AM, Numan Siddique <
> numan.siddique at enovance.com> wrote:
>> I am working on a bug  on neutron vpnaas and submitted the patch here
>> The test code to test the fix does the following
>> - creates a namespace
>> - creates a veth pair and add one interface into the namespace
>> - configures the interface with an ip address and
>> - adds a default gateway
>> - and of course tests the code.
>> This test code only tests a specific function ( OpenSwanProcess.
>> Reviewers of this patch are not clear if this should be part of
>> functional tests or unit tests.
>> Can unit tests create linux namespaces, interfaces etc or it falls under
>> functional tests?
>> Please let me know your thoughts on this.
>>  - https://bugs.launchpad.net/neutron/+bug/1405413
>>  - https://review.openstack.org/#/c/145005/5
>> OpenStack Development Mailing List (not for usage questions)
>> OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> Kevin Benton
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev