def test(context): """Run all tests""" for scenario in test_utils.get_molecule_scenarios(context): for driver in ["docker", "lxd"]: header_text = f"Molecule test {scenario} ({driver})" test_utils.print_header(header_text) test_utils.run_molecule(context, "test", scenario, driver) test_utils.print_success_message(header_text)
def show_help(context): """This help message""" context.run('invoke --list') print("Scenarios: {}".format(", ".join( test_utils.get_molecule_scenarios(context)))) print("\nExamples:") print("inv test") print("inv molecule list --driver lxd")
def test(context): """Run all tests""" scenarios = test_utils.get_molecule_scenarios(context) filtered = ["backuppc", "backuppc-xs", "rsync-bpc", "apache"] scenarios = [scenario for scenario in scenarios if scenario not in filtered] for scenario in scenarios: for driver in ["docker", "lxd"]: platform = "linux" if scenario == "failing" else "ubuntu" header_text = f"Molecule test {scenario} ({driver})" test_utils.print_header(header_text) test_utils.run_molecule(context, "test", scenario, driver, platform) test_utils.print_success_message(header_text)
def test(context): """Run all tests""" for scenario in test_utils.get_molecule_scenarios(context): for driver in ["docker", "lxd"]: platform = "ubuntu" if scenario == "apt_origins" else "linux" header_text = f"Molecule test {scenario} ({driver})" test_utils.print_header(header_text) test_utils.run_molecule(context, "test", scenario, driver, platform=platform) test_utils.print_success_message(header_text)
def show_help(context): """This help message""" context.run('invoke --list') print( "Scenarios: {}".format( ", ".join(test_utils.get_molecule_scenarios(context)) ) ) print("\nExamples:") print("inv test") print("inv molecule list --driver lxd") print("inv molecule converge --scenario=backuppc-xs") print( "inv upgrade --backuppc-from=4.3.2 --backuppc-xs-from=0.59 --rsync-bpc-from=3.0.9.15" ) print( "inv upgrade --backuppc-from=4.3.2 --backuppc-xs-from=0.59 --rsync-bpc-from=3.0.9.15 " "--backuppc-to=4.4.0 --backuppc-xs-to=0.62 --rsync-bpc-to=3.1.3.0" )