Ejemplo n.º 1
0
def secgroup_command(argv=None, aws_config=None):
    from acli.commands import secgroup as command_secgroup
    secgroup_res = docopt(command_secgroup.__doc__, argv=argv)
    if secgroup_res.get('list'):
        secgroup.secgroup_list(aws_config)
    elif secgroup_res.get('info'):
        secgroup.secgroup_info(aws_config, secgroup_id=secgroup_res.get('<secgroup_id>'))
Ejemplo n.º 2
0
def test_sec_group_list_service(sec_groups):
    with pytest.raises(SystemExit):
        secgroup_list(aws_config=config)
Ejemplo n.º 3
0
def test_sec_group_list_service(sec_groups):
    with pytest.raises(SystemExit):
        secgroup_list(aws_config=config)