How to use the bless.request.bless_request.validate_ips function in bless

To help you get started, we’ve selected a few bless 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 Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips():
    validate_ips('127.0.0.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0')
    validate_ips('127.0.0.1,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0,172.1.1.1')
github Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips():
    validate_ips('127.0.0.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0')
    validate_ips('127.0.0.1,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0,172.1.1.1')
github Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips_cidr():
    validate_ips('10.0.0.0/8,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('10.10.10.10/8')
github Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips():
    validate_ips('127.0.0.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0')
    validate_ips('127.0.0.1,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0,172.1.1.1')
github Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips_cidr():
    validate_ips('10.0.0.0/8,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('10.10.10.10/8')
github Netflix / bless / tests / request / test_bless_request.py View on Github external
def test_validate_ips():
    validate_ips('127.0.0.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0')
    validate_ips('127.0.0.1,172.1.1.1')
    with pytest.raises(ValidationError):
        validate_ips('256.0.0.0,172.1.1.1')