diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2016-02-01 18:08:56 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2016-02-01 18:08:56 +0100 |
commit | 47635924e6def36be3c44a047d91018e47a439eb (patch) | |
tree | 2a063002829ef931151ac0313916b7154f0c339e /testcases/VIM/OpenStack/CI/libraries/generate_defaults.py | |
parent | d6d724601858b27bc354ed9684b66b0513ac4d65 (diff) |
Use generate_defaults instead of os_defaults fixed parameters
JIRA: FUNCTEST-131
Running generate_defaults.py in prepare_env.sh (before running any test)
will create a file with the CURRENT OpenStack objects in
the deployment. After each test, the cleanup script will take into
consideration those parameters instead of the specified in
os_defaults.yaml
Keep os_defaults.yaml for the moment
Change-Id: I5f38fef47f0a6d79407d1d582b1e7d3713503e07
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries/generate_defaults.py')
-rw-r--r-- | testcases/VIM/OpenStack/CI/libraries/generate_defaults.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/generate_defaults.py b/testcases/VIM/OpenStack/CI/libraries/generate_defaults.py index 0c88c2fd..0e34d6c7 100644 --- a/testcases/VIM/OpenStack/CI/libraries/generate_defaults.py +++ b/testcases/VIM/OpenStack/CI/libraries/generate_defaults.py @@ -86,7 +86,7 @@ def get_images(nova_client): def get_networks(neutron_client): - logger.info("Getting networks") + logger.debug("Getting networks") dic_networks = {} networks = functest_utils.get_network_list(neutron_client) if networks != None: @@ -95,7 +95,7 @@ def get_networks(neutron_client): return {'networks': dic_networks} def get_routers(neutron_client): - logger.info("Getting routers") + logger.debug("Getting routers") dic_routers = {} routers = functest_utils.get_router_list(neutron_client) if routers != None: @@ -105,7 +105,7 @@ def get_routers(neutron_client): def get_security_groups(neutron_client): - logger.info("Getting Security groups...") + logger.debug("Getting Security groups...") dic_secgroups = {} secgroups = functest_utils.get_security_groups(neutron_client) if not (secgroups is None or len(secgroups) == 0): @@ -167,7 +167,10 @@ def main(): with open(DEFAULTS_FILE, 'w+') as yaml_file: yaml_file.write(yaml.safe_dump(defaults, default_flow_style=False)) yaml_file.seek(0) + logger.info("Openstack Defaults found in the deployment:") print yaml_file.read() + logger.debug("NOTE: These objects will NOT be deleted after "+\ + "running the tests.") exit(0) |