Exemplo n.º 1
0
def _test_runbook_json(Runbook, json_file):
    """
    Test the generated json for a runbook agains known output
    """

    print("JSON compilation test for {}".format(Runbook.action_name))
    dir_path = os.path.dirname(os.path.realpath(__file__))
    file_path = os.path.join(dir_path, json_file)

    generated_json = runbook_json(Runbook)
    known_json = open(file_path).read()

    assert generated_json == known_json
    print("JSON compilation successful for {}".format(Runbook.action_name))
Exemplo n.º 2
0
def main():
    print(runbook_json(DslWhileLoopRunbook))
Exemplo n.º 3
0
def main():
    print(runbook_json(DslSetVariableTask))
Exemplo n.º 4
0
def main():
    print(runbook_json(DslDefaultEndpoint))
Exemplo n.º 5
0
def main():
    print(runbook_json(DslSimpleRunbook))
Exemplo n.º 6
0
def main():
    print(runbook_json(DslInputRunbook))
Exemplo n.º 7
0
def main():
    print(runbook_json(DslParallelRunbook))
Exemplo n.º 8
0
def main():
    print(runbook_json(DslHTTPTask))
Exemplo n.º 9
0
def main():
    print(runbook_json(DslConfirmRunbook))
Exemplo n.º 10
0
def main():
    print(runbook_json(DslLogsCleanupRunbook))
Exemplo n.º 11
0
def main():
    print(runbook_json(DslVMOperationsRunbook))
Exemplo n.º 12
0
def main():
    print(runbook_json(DslEntityStatsRunbook))
Exemplo n.º 13
0
def main():
    print(runbook_json(DslRunbookWithVariables))
Exemplo n.º 14
0
def main():
    print(runbook_json(DslDecisionRunbook))
Exemplo n.º 15
0
def main():
    print(runbook_json(DslExistingEndpoint))