test framework: add factory function and default parameters 46/17946/6
authorOle Troan <ot@cisco.com>
Thu, 28 Feb 2019 19:20:47 +0000 (20:20 +0100)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 4 Mar 2019 14:31:08 +0000 (14:31 +0000)
commitf159f58dbfc85f616b029c36196961915d7e52d2
tree979f191da4b816aa7cb1accc4a79bcdf9c563c46
parent84b83776d3843b5eaf50dbd40007987d77ad2490
test framework: add factory function and default parameters

This is the first step to be able to remove all the API message
wrappers in vpp_papi_provider.py. This allows to remove all
functions that do not override parameters (different from zero),
and a separate dictionary for messages requiring different defaults.

The general requirement is that all new tests should use named
arguments directly. Not positional arguments through the wrapper.

Note when removing functions, the calls in vpp_papi_provider
wrappers do not necessarily follow message order.

Change-Id: If64916c07f8622c138db3a9d7c4a98b93a058e68
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp-api/python/vpp_papi/vpp_papi.py
test/test_map.py
test/test_nat.py
test/test_syslog.py
test/vpp_papi_provider.py