mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
ts_cluster_comprehensive: don't test overwriting TS data (because w1c)
This commit is contained in:
parent
cb62fb60dc
commit
ff0aad23f9
@ -68,8 +68,7 @@ confirm_all_from_node(Node, Data, PvalP1, PvalP2) ->
|
||||
C = rt:pbc(Node),
|
||||
|
||||
%% 1. put some data
|
||||
ok = confirm_put(C, doctor_data(Data)),
|
||||
ok = confirm_overwrite(C, Data),
|
||||
ok = confirm_put(C, Data),
|
||||
|
||||
%% 2. get a single key
|
||||
ok = confirm_get(C, lists:nth(12, Data)),
|
||||
@ -120,9 +119,6 @@ make_data(PvalP1, PvalP2) ->
|
||||
end,
|
||||
[], lists:seq(?LIFESPAN, 1, -1))).
|
||||
|
||||
doctor_data(Data) ->
|
||||
[[A, B, C, D + 0.42] || [A, B, C, D] <- Data].
|
||||
|
||||
confirm_put(C, Data) ->
|
||||
ResFail = riakc_ts:put(C, <<"no-bucket-like-this">>, Data),
|
||||
io:format("Nothing put in a non-existent bucket: ~p\n", [ResFail]),
|
||||
@ -135,12 +131,6 @@ confirm_put(C, Data) ->
|
||||
?assertEqual(ok, Res),
|
||||
ok.
|
||||
|
||||
confirm_overwrite(C, Data) ->
|
||||
Res = riakc_ts:put(C, ?BUCKET, Data),
|
||||
io:format("Overwrote ~b records: ~p\n", [length(Data), Res]),
|
||||
?assertEqual(ok, Res),
|
||||
ok.
|
||||
|
||||
confirm_delete(C, {Pooter1, Pooter2, Timepoint, _} = Record) ->
|
||||
ResFail = riakc_ts:delete(C, <<"no-bucket-like-this">>, ?BADKEY, []),
|
||||
io:format("Nothing deleted from a non-existent bucket: ~p\n", [ResFail]),
|
||||
|
Loading…
Reference in New Issue
Block a user