mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
25 lines
558 B
Erlang
25 lines
558 B
Erlang
-module(cuttlefish_configuration).
|
|
|
|
-behavior(riak_test).
|
|
-export([confirm/0]).
|
|
|
|
-include_lib("eunit/include/eunit.hrl").
|
|
|
|
confirm() ->
|
|
|
|
CuttlefishConf = [
|
|
{"ring_size", "8"},
|
|
{"leveldb.sync_on_write", "on"}
|
|
],
|
|
|
|
[Node] = rt:deploy_nodes(1, {cuttlefish, CuttlefishConf}),
|
|
{ok, RingSize} = rt:rpc_get_env(Node, [{riak_core, ring_creation_size}]),
|
|
?assertEqual(8, RingSize),
|
|
|
|
%% test leveldb sync typo
|
|
{ok, LevelDBSync} = rt:rpc_get_env(Node, [{eleveldb, sync}]),
|
|
?assertEqual(true, LevelDBSync),
|
|
|
|
|
|
pass.
|