Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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:
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:
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
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)