How to use the taskcat.TaskCat function in taskcat

To help you get started, we’ve selected a few taskcat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-quickstart / taskcat / taskcat.py View on Github external
def main():
    tcat_instance = taskcat.TaskCat()
    tcat_instance.welcome('taskcat')
    # Initialize cli interface
    # :TODO Add RestFull Interface
    args = tcat_instance.interface

    # Get configuration from command line arg (-c)
    tcat_instance.set_config(args.config_yml)
    # tcat_instance.set_config('ci/config.yml')
    # Get API Handle - Try all know auth
    tcat_instance.aws_api_init(args)
    # Optional: Enables verbose output by default (DEBUG ON)
    tcat_instance.verbose = True
# --Begin
# Check for valid ymal and required keys in config
    if args.config_yml is not None:
github aws-quickstart / taskcat / taskcat_taas.py View on Github external
def main():
    tcat_instance = taskcat.TaskCat()
    tcat_instance.welcome('taskcat')
    # Initalize cli interface
    # @TODO Add RestFull Interface
    args = tcat_instance.interface

    # Get configuration from command line arg (-c)
    tcat_instance.set_config(args.config_yml)
    # tcat_instance.set_config('ci/config.yml')
    # Get API Handle - Try all know auth
    tcat_instance.aws_api_init(args)
    # Optional: Enables verbose output by default (DEBUG ON)
    tcat_instance.verbose = True
# --Begin
# Check for valid ymal and required keys in config
    if args.config_yml is not None:
github aws-quickstart / taskcat / tcat.py View on Github external
def main():
    tcat_obj = TaskCat()
    tcat_obj.welcome('taskcat')
    # Initalize cli interface
    # @TODO Add RestFull Interface
    args = tcat_obj.interface
    # Init aws api and set default auth method
    tcat_obj.set_config(args.config_yml)
    # tcat_obj.set_config('ci/config.yml')
    # Get API Handle - Try all know auth
    tcat_obj.aws_api_init(args)

# Run in ymal mode (Batch Test execution)
# --Begin
# Check for valid ymal and required keys in config
    if args.config_yml is not None:
        print "[TSKCAT] : Read configuration: \t [ymal-mode]"
        print "[TSKCAT] : Configuration yml: \t [%s]" % args.config_yml
github aws-quickstart / taskcat / taskcat / legacy_cli.py View on Github external
def main():
    args = _parse_args()
    log = init_taskcat_cli_logger(loglevel=args.verbosity)
    signal.signal(signal.SIGINT, sigint_handler)
    try:
        welcome("taskcat")
        tcat_instance = taskcat.TaskCat(args)
        # Get configuration from command line arg (-c)
        tcat_instance.set_config(args.config_yml)
        # tcat_instance.set_config('ci/config.yml')
        # Get API Handle - Try all know auth
        tcat_instance.aws_api_init(args)
        # --Begin
        # Check for valid ymal and required keys in config
        if args.config_yml is not None:

            test_list = tcat_instance.validate_yaml(args.config_yml)

            # Load yaml into local taskcat config
            with open(tcat_instance.get_config(), "r") as cfg:
                taskcat_cfg = yaml.safe_load(cfg.read())
            project_path = os.path.abspath(args.config_yml).rsplit("ci/", 1)[0][:-1]
            tcat_instance.set_config(args.config_yml)