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([
|
2015-09-30 14:25:12 +00:00
|
|
|
confirm/0
|
|
|
|
]).
|
2015-09-22 11:39:37 +00:00
|
|
|
|
2015-09-30 14:15:00 +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),
|
2015-09-30 14:25:12 +00:00
|
|
|
pass.
|
2015-09-30 14:15:00 +00:00
|
|
|
|
2015-11-19 20:13:26 +00:00
|
|
|
|