2013-08-20 15:22:35 +00:00
|
|
|
-module(cuttlefish_configuration).
|
|
|
|
|
|
|
|
-behavior(riak_test).
|
|
|
|
-export([confirm/0]).
|
|
|
|
|
|
|
|
-include_lib("eunit/include/eunit.hrl").
|
|
|
|
|
|
|
|
confirm() ->
|
2013-09-04 18:49:52 +00:00
|
|
|
|
|
|
|
CuttlefishConf = [
|
|
|
|
{"ring_size", "8"},
|
2014-01-23 20:15:37 +00:00
|
|
|
{"leveldb.sync_on_write", "on"}
|
2013-09-04 18:49:52 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
[Node] = rt:deploy_nodes(1, {cuttlefish, CuttlefishConf}),
|
2013-08-20 15:22:35 +00:00
|
|
|
{ok, RingSize} = rt:rpc_get_env(Node, [{riak_core, ring_creation_size}]),
|
|
|
|
?assertEqual(8, RingSize),
|
2013-09-04 18:49:52 +00:00
|
|
|
|
|
|
|
%% test leveldb sync typo
|
|
|
|
{ok, LevelDBSync} = rt:rpc_get_env(Node, [{eleveldb, sync}]),
|
|
|
|
?assertEqual(true, LevelDBSync),
|
|
|
|
|
|
|
|
|
2014-01-23 20:15:37 +00:00
|
|
|
pass.
|