0168055fe6
Apply refactoring patch https://review.openstack.org/#/c/149612/. Move contents of fuel-main/fuelweb_test to the repo. Add run_tests.sh. Change fuel-devops version to 2.9.0 in requirements file. Change-Id: Id321d63d97290f2fb22736abbe1d74315aed2893
22 lines
686 B
Python
22 lines
686 B
Python
"""
|
|
Script for creating Puppet integration tests scripts using template engine.
|
|
"""
|
|
|
|
import argparse
|
|
from puppet_tests.pp_testgenerator import PuppetTestGenerator
|
|
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("tests", type=str, help="Directory to save tests")
|
|
parser.add_argument("modules", type=str, help="Path to Puppet modules")
|
|
parser.add_argument("-k", "--keep_tests",
|
|
action='store_true',
|
|
help="Keep previous test files",
|
|
default=False)
|
|
|
|
args = parser.parse_args()
|
|
generator = PuppetTestGenerator(args.tests, args.modules)
|
|
if not args.keep_tests:
|
|
generator.remove_all_tests()
|
|
|
|
generator.make_all_scripts()
|