mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 16:45:29 +00:00
align tests with rts-351 error messages
This commit is contained in:
parent
7b3edf47e4
commit
c911d75294
@ -141,7 +141,7 @@ get_invalid_qry(invalid_operator) ->
|
||||
get_invalid_qry(field_comparison) ->
|
||||
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather = family1";
|
||||
get_invalid_qry(type_error) ->
|
||||
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather = true".
|
||||
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather > true".
|
||||
|
||||
get_valid_select_data() ->
|
||||
Family = <<"family1">>,
|
||||
|
@ -17,5 +17,5 @@ confirm() ->
|
||||
DDL = get_ddl(docs),
|
||||
Data = get_valid_select_data(),
|
||||
Qry = get_invalid_qry(borked_syntax),
|
||||
Expected = "some error message, fix me",
|
||||
Expected = {error, <<"Message decoding error: \"Unexpected token 'selectah'\"">>},
|
||||
confirm_select(single, normal, DDL, Data, Qry, Expected).
|
||||
|
@ -17,5 +17,5 @@ confirm() ->
|
||||
DDL = get_ddl(docs),
|
||||
Data = get_valid_select_data(),
|
||||
Qry = get_invalid_qry(key_not_covered),
|
||||
Expected = "some error message, fix me",
|
||||
Expected = {error, <<"missing_param: Missing parameter myfamily in where clause.">>},
|
||||
confirm_select(single, normal, DDL, Data, Qry, Expected).
|
||||
|
@ -17,5 +17,5 @@ confirm() ->
|
||||
DDL = get_ddl(docs),
|
||||
Data = get_valid_select_data(),
|
||||
Qry = get_invalid_qry(invalid_operator),
|
||||
Expected = "some error message, fix me",
|
||||
Expected = {error, <<"invalid_query: \nincompatible_operator: field weather with type binary cannot use operator '>' in where clause.">>},
|
||||
confirm_select(single, normal, DDL, Data, Qry, Expected).
|
||||
|
@ -17,5 +17,5 @@ confirm() ->
|
||||
DDL = get_ddl(docs),
|
||||
Data = get_valid_select_data(),
|
||||
Qry = get_invalid_qry(type_error),
|
||||
Expected = "some error message, fix me",
|
||||
Expected = {error, <<"invalid_query: \nincompatible_operator: field weather with type binary cannot use operator '>' in where clause.">>},
|
||||
confirm_select(single, normal, DDL, Data, Qry, Expected).
|
||||
|
Loading…
Reference in New Issue
Block a user