Add Flags class to base.Context 53/52653/3
authorEmma Foley <emma.l.foley@intel.com>
Mon, 26 Feb 2018 11:25:34 +0000 (11:25 +0000)
committerEmma Foley <emma.l.foley@intel.com>
Wed, 28 Feb 2018 10:20:46 +0000 (10:20 +0000)
commit793569e2ce7ebf5b4d549db94423b851f13950fc
tree5a71b8b4c20838dbd7a0ca2d5a9a7142da3c518c
parentdfd9ce0c3b0f8bcb265d0889ad2f27bf039ae2a2
Add Flags class to base.Context

This patch adds a Flags class to represent the flags passed to
the context.

Flags will contain a set of attributes (for example no_setup and no_teardown).
Those attributes will modify the behaviour of the context.

The attributes added initially are:
* 'no_setup' (default: False)
* 'no_teardown' (default: False)

In future patches, they will be used by the context to:
* Change the name of the context.
* Skip the deploy() and undeploy() methods to keep the VNFs active after the
  testcases are run.

JIRA: YARDSTICK-886
Change-Id: I734b082aa101649eea8991304a8b753ae96aa9de
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Signed-off-by: Emma Foley <emma.l.foley@intel.com>
yardstick/benchmark/contexts/base.py
yardstick/tests/unit/benchmark/contexts/test_base.py [new file with mode: 0644]