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'
def instance(): from fabtools.require.redis import instance instance('db1', port='6379')