mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
Check for props on non-existent bucket type. See basho/riak_api#62
This commit is contained in:
parent
20868297c1
commit
6cfdf26a4b
@ -191,6 +191,18 @@ confirm() ->
|
||||
|
||||
?assertEqual(3, proplists:get_value(n_val, UBProps2)),
|
||||
|
||||
{error, NTGR} = riakc_pb_socket:get_bucket(PB, {<<"nonexistent">>, <<"mybucket">>}),
|
||||
|
||||
lager:info("GOT ERROR ~s", [NTGR]),
|
||||
|
||||
?assertMatch(<<"No bucket-type named 'nonexistent'", _/binary>>, NTGR),
|
||||
|
||||
{error, NTSR} = riakc_pb_socket:set_bucket(PB, {<<"nonexistent">>, <<"mybucket">>}, [{n_val, 3}]),
|
||||
|
||||
lager:info("GOT ERROR ~s", [NTSR]),
|
||||
|
||||
?assertMatch(<<"No bucket-type named 'nonexistent'", _/binary>>, NTSR),
|
||||
|
||||
lager:info("bucket type properties test"),
|
||||
|
||||
riakc_pb_socket:set_bucket_type(PB, Type,
|
||||
|
Loading…
Reference in New Issue
Block a user