fuel-qa/fuelweb_test/make_pptests.py
Ivan Kliuk 0168055fe6 System tests movement from fuel-main
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
2015-02-06 11:44:08 +02:00

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()