Example #1
0
def test_install_redis_in_guest_context_manager(container):
    from fabtools.openvz import guest
    from fabtools.require.redis import VERSION, instance

    with guest(container):
        instance('test')
        assert is_file('/etc/redis/test.conf')
        assert run('echo PING | /opt/redis-%s/redis-cli' % VERSION) == 'PONG'
Example #2
0
def test_install_redis_in_guest_context_manager(container):
    from fabtools.openvz import guest
    from fabtools.require.redis import VERSION, instance

    with guest(container):
        instance('test')
        assert is_file('/etc/redis/test.conf')
        assert run('echo PING | /opt/redis-%s/redis-cli' % VERSION) == 'PONG'
Example #3
0
def instance():
    from fabtools.require.redis import instance
    instance('db1', port='6379')
Example #4
0
def instance():
    from fabtools.require.redis import instance
    instance('db1', port='6379')