Esempio n. 1
0
def route53_command(argv=None, aws_config=None):
    from acli.commands import route53 as command_route53
    route53_res = docopt(command_route53.__doc__, argv=argv)
    if any((route53_res.get('ls'), route53_res.get('list'))):
        route53.route53_list(aws_config)
    elif route53_res.get('info'):
        route53.route53_info(aws_config, zone_id=route53_res.get('<zone_id>'))
Esempio n. 2
0
def test_elb_info_service(route53_zone):
    with pytest.raises(SystemExit):
        print(route53_zone)
        assert route53_info(aws_config=config, zone_id=route53_zone.get('HostedZones')[0].get('Id'))