Example #1
0
def apply_rollbacks(experiment: Experiment,
                    configuration: Configuration,
                    secrets: Secrets,
                    pool: ThreadPoolExecutor,
                    dry: bool = False) -> List[Run]:
    warn_about_moved_function(
        "The 'apply_rollbacks' function has now moved to the "
        "'chaoslib.run' package")
    return apply_roll(experiment, configuration, secrets, pool, dry)
def apply_activities(
    experiment: Experiment,
    configuration: Configuration,
    secrets: Secrets,
    pool: ThreadPoolExecutor,
    journal: Journal,
    dry: Dry,
) -> List[Run]:
    warn_about_moved_function(
        "The 'apply_activities' function has now moved to the " "'chaoslib.run' package"
    )
    return apply_act(experiment, configuration, secrets, pool, journal, dry)
Example #3
0
def initialize_run_journal(experiment: Experiment) -> Journal:
    warn_about_moved_function(
        "The 'initialize_run_journal' function has now moved to the "
        "'chaoslib.run' package")
    return init_journal(experiment)
Example #4
0
def stressEndpoint(endpoint: str = None, vus: int = 1, duration: str = "1s", debug: bool = False):
    warn_about_moved_function(
        "The action `stressEndpoint` is now called `stress_endpoint`."
        "Please consider updating your experiments accordingly.")
    return run_script(endpoint,  vus, duration)
Example #5
0
def runScript(script_path: str = None, vus: int = 1, duration: str = "1s", debug: bool = False):
    warn_about_moved_function(
        "The action `runScript` is now called `run_script`."
        "Please consider updating your experiments accordingly.")
    return run_script(script_path,  vus, duration)