riak_test/tests/ts_A_put_non_existent_bucket.erl

24 lines
443 B
Erlang
Raw Normal View History

2015-11-06 23:27:42 +00:00
-module(ts_A_put_non_existent_bucket).
2015-09-22 11:39:37 +00:00
%%
2015-11-06 23:27:42 +00:00
%% this test tries to write to a non-existent bucket
2015-09-22 11:39:37 +00:00
%%
-behavior(riak_test).
-export([
confirm/0
]).
2015-09-22 11:39:37 +00:00
-include_lib("eunit/include/eunit.hrl").
2015-09-22 11:39:37 +00:00
confirm() ->
2015-11-19 20:13:26 +00:00
ClusterType = single,
DDL = ts_util:get_ddl(docs),
Obj = [ts_util:get_invalid_obj()],
Got = ts_util:ts_put(ts_util:cluster_and_connect(ClusterType), no_ddl, DDL, Obj),
2015-11-06 23:27:42 +00:00
?assertMatch({error, _}, Got),
pass.
2015-11-19 20:13:26 +00:00