def test_parse_haproxy_stats(self):
        with open('tests/haproxy_stats.csv') as f:
            results = bluegreen_deploy.parse_haproxy_stats(f.read())

            assert results[1].pxname == 'http-in'
            assert results[1].svname == 'IPv4-direct'

            assert results[2].pxname == 'http-out'
            assert results[2].svname == 'IPv4-cached'
示例#2
0
    def test_parse_haproxy_stats(self):
        with open('tests/haproxy_stats.csv') as f:
            results = bluegreen_deploy.parse_haproxy_stats(f.read())

            assert results[1].pxname == 'http-in'
            assert results[1].svname == 'IPv4-direct'

            assert results[2].pxname == 'http-out'
            assert results[2].svname == 'IPv4-cached'
def _load_listeners():
    with open('tests/haproxy_stats.csv') as f:
        return bluegreen_deploy.parse_haproxy_stats(f.read())
示例#4
0
def _load_listeners():
    with open('tests/haproxy_stats.csv') as f:
        return bluegreen_deploy.parse_haproxy_stats(f.read())