andytill
59ba138e7e
Return an error when deleting a key that does not exist.
2016-02-04 17:30:24 +00:00
Brett Hazen
77f6e03ea4
Merge pull request #988 from basho/bugfix/bch/rts-875
...
RTS-875: Fix ts_degraded_aggregation
2016-02-03 16:47:06 -07:00
Brett Hazen
3ce40631a5
Merge remote branch 'origin/riak_ts-develop-1.2' into bugfix/bch/fn-type-error
2016-02-03 19:17:45 +00:00
Brett Hazen
d6a30c9f2f
RTS-890: Change expected error message for
...
ts_simple_select_unexpected_token_not_allowed
2016-02-03 16:43:08 +00:00
Brett Hazen
623be573a8
Fix ts_degraded_aggregation
2016-02-02 22:51:44 +00:00
Brett Hazen
dc8668ca17
Remove arity from SQL aggregate window functions
2016-02-02 21:20:56 +00:00
Brett Hazen
6ed6f17b1f
Clean up ts_simple_aggregation_fail test failures
2016-02-02 18:25:10 +00:00
Brett Hazen
0bb97de95d
Adjust the error message for
...
ts_simple_select_compare_two_fields_not_allowed
2016-02-01 18:15:24 +00:00
andytill
a4f5196711
Fix de-indentation derp.
2016-02-01 14:30:22 +00:00
andytill
73698d2224
Divison by zero returns a sensible error message.
2016-02-01 13:51:55 +00:00
Brett Hazen
39558d5415
Add tests for STDDEV and STDDEV_SAMP, too
2016-01-25 22:03:48 +00:00
andytill
801d56099d
Rename STDDEV to STDDEV_POP.
2016-01-25 10:02:55 +00:00
andytill
b61d4604be
Naming, constants, white space spotted in code review.
2016-01-21 13:31:54 +00:00
andytill
f516bd8270
Test division by zero.
2016-01-20 14:59:49 +00:00
andytill
bc2f5d9b7d
Aggregations and arithmetic tests changed to account for NULL values.
2016-01-20 12:42:58 +00:00
Brett Hazen
f2f15c8e85
Add newline
2016-01-11 17:44:27 +00:00
Brett Hazen
dbad1b3c86
Switch from ts_A, B, C to ts_simple, cluster, degraded
2016-01-11 17:40:38 +00:00
Brett Hazen
8d95ead68a
Merge pull request #971 from basho/at/count_fn_ignores_null_cols
...
Test that the COUNT function ignores NULL
2016-01-08 13:28:23 -07:00
Gordon Guthrie
8623a7cfa8
Rename STDEV to STDDEV
2016-01-08 17:23:11 +00:00
andytill
5cc61c8b1f
Deleted obsolete functions.
2016-01-08 16:49:38 +00:00
andytill
5ecb7dd8d5
Merge branch 'riak_ts' of https://github.com/basho/riak_test into at/count_fn_ignores_null_cols
...
Conflicts:
tests/ts_aggregation_simple.erl
2016-01-08 16:41:10 +00:00
andytill
ac18818901
Test for the COUNT aggregation function ignoring NULL values when a single column is specified.
2016-01-08 16:26:39 +00:00
Andrei Zavada
e0b2cfdfe0
Merge pull request #969 from basho/feature/jrd/ts-spark-coverage
...
Coverage query test for TimeSeries
2016-01-07 13:48:38 +02:00
Andrei Zavada
9536577d06
rename ts_coverage to conform to ts_* naming pattern
2016-01-07 12:46:16 +02:00
Andrei Zavada
f774332b00
simplify overlapping range check
2016-01-07 12:45:15 +02:00
Brett Hazen
237e9a19a9
Fix ts_aggregation_cluster, ts_A_select_not_found and refactor
...
ts_aggregation_simple
2016-01-07 03:11:11 +00:00
Andrei Zavada
5d5da7d64a
if no. of vnodes < no. of quantas, vnodes will be reused
...
Deal with this by asserting ranges of TS data retrieved with different
coverage plans are disjoint. Previously, it was assumed 'wrong' vnode
would always return no data, which is not the case when vnodes are reused.
2016-01-07 02:17:11 +00:00
Brett Hazen
5e06f64c04
Merge remote branch 'origin/riak_ts' into feature/gg/ts1_1_tests_fix
2016-01-06 23:18:31 +00:00
Gordon Guthrie
e67bc7d18c
more test changes
2016-01-06 15:16:21 +00:00
Andy Till
0d166b9f22
Merge pull request #967 from basho/feature/bch/more-bad-data-tests
...
Row validation test.
2016-01-06 13:39:18 +00:00
Gordon Guthrie
0c6306a192
small fix up
2016-01-05 16:54:33 +00:00
Gordon Guthrie
428fdd6e48
basic fail tests now pass
2016-01-05 16:48:53 +00:00
Gordon Guthrie
8eb43acb38
remove excess io:formats
2016-01-05 15:47:01 +00:00
Gordon Guthrie
1c98365097
fix for tests
2016-01-05 15:29:56 +00:00
Gordon Guthrie
01f5969057
fixing tests
2016-01-03 12:02:51 +00:00
John R. Daily
1c2c7f0200
Add tertiary test: make certain we get no results from a wrong node with each coverage chunk. Also remove debug statements
2015-12-31 15:50:17 -05:00
John R. Daily
72d573dc63
Close each pid in the fold
2015-12-31 15:43:23 -05:00
John R. Daily
479c249b44
Add secondary check that all data located with each quantum matches that quantum
2015-12-31 15:41:07 -05:00
John R. Daily
2b4fdaceb5
Add new test for coverage plan query/use
2015-12-31 15:31:03 -05:00
Gordon Guthrie
247def566f
fix to make test handle new improved error msgs
2015-12-30 15:38:16 +00:00
andytill
ea35e1361b
Do not assert on the error message which is prone to change, just verify that it does fail.
2015-12-30 11:55:47 +00:00
Andrei Zavada
993fdf7e3b
check for failure to create the same table
2015-12-30 01:59:21 +00:00
Andrei Zavada
5965953a0f
query("CREATE TABLE") already activates Table
...
also, make it multi-node cluster to better check activation
2015-12-30 01:42:16 +00:00
Andrei Zavada
832170cd51
add a read/write test
2015-12-26 17:58:22 +00:00
Andrei Zavada
4a5e95dd6c
add a module to test riakc_ts:query("CREATE TABLE ...")
2015-12-26 03:31:18 +00:00
Brett Hazen
0ccd2b0e34
Add more tests around invalid input; esp. after the first row
2015-12-23 20:00:03 +00:00
Brett Hazen
f0065b2262
Merge pull request #962 from basho/feature/bch/add-ts-aggregation-tests
...
Add new Time Series 1.1 Tests
2015-12-22 12:36:33 -07:00
Brett Hazen
976c8c246b
Merge pull request #959 from basho/feature/az/check-overwrite-data
...
check data overwrite
2015-12-21 20:08:58 -07:00
Brett Hazen
bd0055465a
Skip the step of writing data to the table before determining the schema
2015-12-22 02:54:54 +00:00
Brett Hazen
4b8cb12ad7
Update expected results for ts_describe_table
2015-12-21 16:53:49 +00:00
Brett Hazen
7e2938878d
Adjust expected results and add in describe table
2015-12-17 20:44:58 -07:00
Brett Hazen
bebf57dcea
Fix expected results from ts_query
2015-12-17 19:25:02 -07:00
Brett Hazen
43b38202ce
Initial addition of aggregation tests
2015-12-18 01:07:46 +00:00
Brett Hazen
f8e94b070a
Merge remote branch 'origin/riak/2.1' into merge/bch/2.1.3-to-ts
2015-12-16 16:46:18 +00:00
Andrei Zavada
0448a0af61
check data overwrite
2015-12-12 00:11:35 +00:00
Brett Hazen
19e9b65062
Change 5 tests to pattern match on the error strings returned
2015-12-11 17:21:02 +00:00
Brett Hazen
4009a59d33
Merge pull request #957 from basho/at/symbols_in_table_names
...
Symbols in table names
2015-12-10 15:41:56 -07:00
andytill
a7aee4d20a
Separate assert for symbols.
2015-12-10 14:44:01 +00:00
andytill
4e62a7839f
Test more symbols.
2015-12-10 14:15:50 +00:00
andytill
0ca63e8808
Test putting some symbols in field names and make sure they fail.
2015-12-10 10:52:41 +00:00
andytill
643e4a319d
Test symbols in table names.
2015-12-10 10:22:49 +00:00
Brett Hazen
383a9b2193
Merge remote branch 'origin/riak_ts' into fix/az/stream-list-keys
2015-12-09 23:17:31 +00:00
Ted Burghart
2c2e57d898
Move wait_for_vnode_change inside the -ifdef(EQC) clause.
2015-12-09 14:45:41 -05:00
Doug Rohrer
becc72b3f9
Merge pull request #955 from basho/bugfix/jrd/delete-list
...
Pause to allow delete_mode delay to function
2015-12-07 21:23:26 -05:00
Brett Hazen
860965cd46
Merge pull request #954 from basho/feature/jrd/toggle-pb-t2b
...
Test term_to_binary
2015-12-07 18:18:15 -07:00
John R. Daily
60a56a380c
Need another sleep for the bulk delete
2015-12-07 20:14:06 -05:00
John R. Daily
8d91b1dda8
Pause to allow delete_mode delay to function
2015-12-07 20:00:07 -05:00
John R. Daily
0d2a6855aa
Move term_to_binary testing directly into ts_basic
2015-12-07 18:10:13 -05:00
John R. Daily
14b7707c1b
Add a toggle back to pb for further testing
2015-12-07 12:05:56 -05:00
John R. Daily
d3e526aa38
Run through ts_basic, but with term_to_binary
2015-12-07 10:25:34 -05:00
Andrei Zavada
ae7cc9fef2
deal in ts_basic with stream_list_keys that's always late
2015-12-06 15:26:32 +02:00
Andrei Zavada
b74a29608a
test TS stream_list_keys
2015-12-06 05:53:46 +02:00
Andrei Zavada
404b8a37be
use stream_list_keys in ts_basic
2015-12-04 04:38:05 +02:00
John R. Daily
f313841a9e
New error message
2015-12-03 15:10:56 -05:00
John Daily
97b9d83ccc
Merge pull request #951 from basho/bugfix/bch/rts-531
...
RTS-531: Use some ts_util functions in ts_basic to avoid code duplication
2015-12-02 18:26:53 -05:00
Brett Hazen
004f74cdde
Use some ts_util functions in ts_basic to avoid code duplication
2015-12-02 23:02:00 +00:00
Brett Hazen
c33f847b3d
Add a test for all datatypes which support null values
2015-12-02 04:01:48 +00:00
Brett Hazen
0cce08bda7
Merge pull request #943 from basho/feature/az/new-ts_A_create_table-modules-for-comprehensive-ddl-validation
...
new ts_A_create_table_* modules for more comprehensive ddl validation
2015-12-01 14:40:33 -07:00
Andrei Zavada
af8591ecb0
fix a format char
2015-12-01 20:00:33 +02:00
Andrei Zavada
f234e16de2
only use shared get_ddl(), drop get_ddl(bad); tidy up code
2015-12-01 19:59:55 +02:00
Doug Rohrer
57659d3c1d
Forward port changes to proxy_overload_recovery to make it pass in the
...
face of indeterminate behavior.
2015-12-01 12:24:41 -05:00
Brett Hazen
78fde60f35
Try to activate the bucket type 4 times
2015-11-30 21:04:10 +00:00
Andrei Zavada
2519da7300
tweak expected error message for ts_A_create_table_not_null_pk_fields
2015-11-29 02:29:36 +02:00
Andrei Zavada
6e158e6ee5
add a dup_primary_key_fail test for ts_A_create_table battery
2015-11-29 02:23:57 +02:00
Brett Hazen
9058ac621d
Result from test is not always a string
2015-11-25 21:54:09 +00:00
Andrei Zavada
da2b3cecd8
remove emacs mode first-line comment
...
emacs can correctly determine the mode from the .erl extension.
2015-11-25 22:09:49 +02:00
Andrei Zavada
99d99a814d
new ts_A_create_table_* modules w/ fixes to match changes error messages
2015-11-25 22:07:33 +02:00
Nick Marino
8e5b9a892e
Fix misplaced character in ensemble_util config
2015-11-24 15:17:01 -05:00
andytill
2c9ec39de6
Fixed moduel tags.
2015-11-24 19:27:10 +00:00
Doug Rohrer
619b24e7d3
Updated tests to explicitly set allow_mult and dvv_enabled, as
...
overriding default_bucket_props in advanced_config without
explicitly setting these returns different values with the fix for
allow_mult turning to true with an app.config file present.
2015-11-24 13:41:36 -05:00
Andy Till
f8795caac7
Merge pull request #936 from basho/at/ts_encoding_tests
...
Add tests for utf8 and latin1 in the table definition
2015-11-24 17:59:01 +00:00
andytill
8c2d122623
Renamed tests.
2015-11-24 17:26:49 +00:00
Nick Marino
d855c1f6ba
Log the start of each test in repl_aae_fullsync
...
This makes it much easier to tell which code is being executed at a
given point in the log, since many of the tests print identical log
messages.
2015-11-24 11:52:21 -05:00
Brett Hazen
d9c474f1d8
Update the error message for ts_A_select_compare_two_fields_not_allowed
2015-11-23 21:03:15 +00:00
Nick Marino
2be9c2f83b
Fix race in repl_rt_heartbeat due to short timeout
...
One particular timeout in the repl_rt_heartbeat test was slightly too
short, which could cause us to occasionally hit a false positive on this
test if various timings lined up just right. This PR bumps up the
timeout, which should prevent this from happening again.
I would really like to do a proper fix for this, which would use
intercepts or something to confirm that the actual timeout is being hit
in the code...but we don't really have time for that, and a half fix is
better than no fix I suppose.
2015-11-23 11:09:21 -05:00
andytill
81982b7d4e
Merge branch 'riak_ts' of https://github.com/basho/riak_test into at/ts_encoding_tests
2015-11-23 15:55:01 +00:00
andytill
f8c25a33c1
Add tests for utf8 and latin1 in the table definition, neither are supported at the moment because of the way JSON is encoded.
2015-11-23 15:53:45 +00:00
Brett Hazen
6de6c0fc25
Add boilerplate license to all test files
2015-11-20 22:09:48 +00:00
Brett Hazen
9f825c2440
Fix changed output
2015-11-20 10:41:31 -07:00
Brett Hazen
8a90c5cb5a
Merge branch 'riak_ts' into bugfix/bch/fix_ts_B_put_pass_1
2015-11-20 08:25:23 -07:00
Brett Hazen
3b0398c636
Add better support for EQC tests
2015-11-19 20:54:16 -07:00
Brett Hazen
d4c29b22c0
Further optimization of TS tests
2015-11-19 20:13:26 +00:00
Brett Hazen
7cdf8ac807
Merge pull request #929 from basho/feature/az/ts-list_keys
...
test riakc_ts:list_keys/4 in ts_basic
2015-11-19 13:00:03 -07:00
Andrei Zavada
01965fb47b
single quotes are better than double quotes
2015-11-19 21:37:41 +02:00
Andrei Zavada
38e65cf225
don't try to put Key, do put Data
2015-11-19 20:57:29 +02:00
Zeeshan Lakhani
753940a8e3
sure up possible race between upgrade and first check
...
(cherry picked from commit 867dc1a036
)
2015-11-18 16:24:58 -05:00
Zeeshan Lakhani
867dc1a036
sure up possible race between upgrade and first check
2015-11-18 12:51:15 -05:00
Brett Hazen
feb4364cec
Merge branch 'bugfix/bch/fix_ts_B_put_pass_1' of github.com:basho/riak_test into bugfix/bch/fix_ts_B_put_pass_1
2015-11-17 22:57:08 +00:00
Brett Hazen
b7c268119d
Refactor all TS tests to put asserts inside of test instead of
...
timeseries_utils.erl
2015-11-17 22:54:20 +00:00
Brett Hazen
31bd58a0de
Update timeseries_util:confirm_put/5 for ts_B_put_pass_1
2015-11-17 17:05:04 +00:00
Brett Hazen
2f2256583f
Merge pull request #928 from basho/bugfix/bch/update-verify-stats-4-ts
...
Add <<"riak_ql_version">> to verify_riak_stats for timeseries
2015-11-17 08:55:42 -07:00
Andrei Zavada
a265ad5972
test for the case of non-existent Table
2015-11-17 13:43:14 +02:00
Doug Rohrer
ce8ef794cb
Updated to attempt to make sure we get the "right" vnode PID.
2015-11-16 18:28:55 -05:00
Andrei Zavada
379d7ba215
add a check for list_keys (from different nodes)
...
now building a cluster of 3 nodes. Also, unreverse order of test data.
2015-11-12 07:03:22 +02:00
Andrei Zavada
071165ebed
refactor to reflect type renames in riak_ts; split checks into smaller funs
...
also export run_test/2 as proposed in 052295a431
.
2015-11-12 07:03:22 +02:00
Brett Hazen
c70c19295c
Add _not_allowed suffix to many tests
2015-11-11 22:10:28 +00:00
Brett Hazen
119ffd239c
Rename to ts_A_select_compare_two_fields_not_allowed
2015-11-11 21:44:37 +00:00
Brett Hazen
3d3c9aa806
Add <<"riak_ql_version">> to verify_riak_stats for timeseries
2015-11-11 20:55:06 +00:00
Brett Hazen
f76d8c53ca
Rename all of the ts_A_select_fail_* tests
2015-11-11 20:33:12 +00:00
Brett Hazen
8f8b3d9b4d
Update all of the expected messages for the failing select tests
2015-11-11 19:53:42 +00:00
Brett Hazen
1de93e1da7
Update timeseries_util:confirm_put/5 for ts_B_put_pass_1
2015-11-08 23:14:53 +00:00
Brett Hazen
f04a6a8bd4
Update all get/put TS tests
2015-11-06 23:27:42 +00:00
Brett Hazen
a2078bbd31
Fix missed type rename in ts_A_put_pass_2
2015-11-06 19:09:23 +00:00
Brett Hazen
052295a431
Fix ts_basic and ts_unicode to use new datatypes and PK layout
2015-11-06 02:02:33 +00:00
erikleitch
ea54a7559d
Modified ts_api_util to match new SQL API, so that ts_api test will pass
2015-11-05 12:10:54 -08:00
erikleitch
1c7ddaa8ac
Fixed ts_A_put_pass_2 to pass. Primary key was backwards, type 'any' no longer suppored, booleans need to be booleans (ie, 'true') and not binaries (<<"true">>), and test must return 'pass' atom after assertions have succeeded
2015-11-05 01:33:22 +00:00
erikleitch
cfe334644d
Fixed ts_api test to pass once the badarith bugfix is checked in
2015-11-05 01:33:22 +00:00
erikleitch
837e366965
Added additional tests for binary + boolean
2015-11-05 01:30:45 +00:00
Brett Hazen
0028c021bf
Fix table creation tests
2015-11-05 01:30:45 +00:00
Andrei Zavada
f43cce248d
riakc_ts:get now returns a tuple
2015-11-05 01:27:44 +00:00
Gordon Guthrie
5233eb54c8
rejig of DDL to use double/sint64 and conform to key order
2015-10-30 18:38:38 +00:00
Brett Hazen
c15a51572d
Merge pull request #910 from basho/feature/gg/match_tests_to_error_msgs
...
Error message for ts_A_put_fail_3_bad_date has been added; ts_A_select_fail_1 deleted
2015-10-27 15:39:52 -06:00
Gordon Guthrie
2cd8edd193
Another 2 tests fixes
...
The test ts_A_select_fail_1 was shadowing ts_A_put_fail_1 as you
can't get to the select if the put fails
The error message for ts_A_put_fail_3_bad_date has been added
2015-10-27 19:22:28 +00:00
Gordon Guthrie
a322dcfacf
remove unnecessary tests
2015-10-27 18:06:38 +00:00
Brett Hazen
5dde9d12b1
Merge branch 'riak/2.1' into merge/bch/2.1-with-ts
2015-10-23 16:00:23 -06:00
John Daily
4ff159f268
Merge pull request #906 from basho/feature/add_api_tests
...
Added preliminary test for filtering API (full test will have to wait…
2015-10-23 17:27:56 -04:00
erikleitch
edca6ba829
Added preliminary test for filtering API (full test will have to wait until riak_ql is fixed for boolean/any data types)
2015-10-23 13:51:47 -07:00
John Daily
155a1884cb
Merge pull request #903 from basho/bugfix/jrd/select-fail-3
...
Typo made test fail
2015-10-23 15:34:35 -04:00
John R. Daily
3250232700
Typo made test fail
2015-10-23 15:26:10 -04:00
John R. Daily
f065b6c3fe
Make eleveldb backend explicit for TS
2015-10-23 15:24:39 -04:00
John Daily
edfeead364
Merge pull request #902 from basho/ts-unicode-test
...
Add test with utf8 values
2015-10-23 15:14:18 -04:00
Andrei Zavada
56e129a56e
Merge pull request #896 from basho/feature/az/single-key-get-in-ts_basic
...
include a riakc_ts:get check in ts_basic
2015-10-23 22:06:33 +03:00
John R. Daily
6259d191f0
Add test with utf8 values
2015-10-23 13:55:13 -04:00
Doug Rohrer
2d7ac6ab4f
Merge of several YZ changes and overload fix from riak/2.0 to riak/2.1
2015-10-23 12:56:06 -04:00
Doug Rohrer
818645ec83
Make tests pass regardless of order run by always writing default values for configuration settings, rather than trying to only change certain values.
...
- Always set values to keys that have no defaults in schema, as setting a value to `undefined` does not return the "default" value when application:get_env/3 is called
- Provide an easier way to get the configuration by creating the config record, with appropriate defaults
- Code cleanup on BKV1/2/3 - make them easier to read/understand and for future work in refactoring the tests and removing some of the complexity.
- Now that test is running more consistently, tighten tests to actually test something in test_vnode_protection.
- Bump vnode protection to ?THRESHOLD+1 as 2.0 seems to have one extra message.
- Convert lager:info to lager:debug in successful get cases to reduce noise.
- Remove use of ConsistentType (use macros & pass BKV down to validate).
2015-10-22 16:43:42 -04:00
Doug Rohrer
b863efcd76
Get FSM overload to be predictable by suspending vnodes and inspecting the sidejob configuration to calculate limits.
...
- Actually test FSM protection - previous limits didn't actually test overload at all. Now stop vnode and do an exact count of how many FSMs should have spun up.
- Make sure to wait for riak_kv before suspending any vnodes.
- Found sidejob race condition and updated test to compensate.
2015-10-22 16:43:32 -04:00
Doug Rohrer
68f40aa5a1
Get vnode protection test working:
...
Added send of junk message through proxy to force vnode proxies into
overload state - without it, the first messgage would be forwarded to
the vnode and time out, which caused the test to fail.
2015-10-22 16:43:24 -04:00
Brett Hazen
d360f28075
Add back EQC macros to allow ts_B_random_query_pass_eqc to compile w/o
...
EQC
2015-10-22 20:21:23 +00:00
Andrei Zavada
02ec602f0d
include a riakc_ts:get check
2015-10-22 21:14:18 +03:00
Andrei Zavada
2a831c6240
Merge pull request #893 from basho/feature/az/single-key-delete-in-ts_basic
...
add a simple riakc_ts:delete check
2015-10-22 02:39:29 +03:00