From f90fd535fff6dee4718fda0c70d8ed264f34a566 Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Thu, 1 Mar 2018 16:15:11 +0000 Subject: Update git submodules * Update docs/submodules/yardstick from branch 'master' - Merge changes from topics 'feat/keep_vnf', 'YARDSTICK-886' * changes: Add _create_new_stack method Update TaskParser to deal with qualified name in Context Add qualified name to Context - Add _create_new_stack method The logic for creating a new stack in contexts/heat.py:HeatContext can added to a method to make the code eassier to read and test. This is in preparation for an update to deploy() that would allow an existing stack to be reused, or a new stack created. By having the create_new_stack logic in a new method, deploy() becomes easier to read and test. JIRA: YARDSTICK-886 Change-Id: I7af01e2209a3460658f8db0249b7c620743cced0 Signed-off-by: Emma Foley - Update TaskParser to deal with qualified name in Context The context name depends on the defined name in the testcase input file, the task ID and the flags of the context. If the context is going to be undeployed at the end of the test, the task ID is suffixed to the name to avoid interferences with previous deployments. If the context needs to be deployed at the end of the test, the name assigned is kept. This patch makes this process transparent to the developer. This patch modifies how TaskParser determines the correct context name, taking into account that the name might change based on context flags. JIRA: YARDSTICK-886 Change-Id: I44da30dac562c1a4166e084645ae91c17798651d Signed-off-by: Rodolfo Alonso Hernandez Signed-off-by: Emma Foley - Add qualified name to Context The context name depends on the defined name in the testcase input file, the task ID and the flags of the context. If the context is going to be undeployed at the end of the test, the task ID is suffixed to the name to avoid interferences with previous deployments. If the context needs to be deployed at the end of the test, the name assigned is kept. This patch makes base.Context use Flags when initialising contexts, this sets the name property based on the no_setup and no_teardown flags. Since base.Context is an abstract class, it cannot be instantiated. However, there are some non-abstract methods that need testing. Since DummyContext does not override any of these methods, it can be used for testing. JIRA: YARDSTICK-886 Change-Id: I1447fb5ed447691eaeb0a97f928c0b3333799d07 Signed-off-by: Rodolfo Alonso Hernandez Signed-off-by: Emma Foley --- docs/submodules/yardstick | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/submodules/yardstick') diff --git a/docs/submodules/yardstick b/docs/submodules/yardstick index 6289ae851..0b340735f 160000 --- a/docs/submodules/yardstick +++ b/docs/submodules/yardstick @@ -1 +1 @@ -Subproject commit 6289ae851034b987bf5b69a4e38a5027d358e9d8 +Subproject commit 0b340735f2a37b9a05d3d86f79aa706b3e43bb5d -- cgit 1.2.3-korg