Repository navigation
Closed
Description
I have the following todos in the ReQL test suite and will be replacing them with tests. If you think something else needs to be tested that the suite is missing, comment here. We'll close this issue once 1.4 ships.
aggregation.yaml: # TODO: check that r.row works
aggregation.yaml: # TODO: check what happens if one of the functions returns undefined
aggregation.yaml: # TODO: proper test for seq.count()
control.yaml: # TODO: add r.js() tests
control.yaml: # TODO: add r.error() tests
control.yaml: # TODO: add positive and negative forEach tests (including
datum/array.yaml: # TODO: errors, etc.
joins.yaml: # TODO: test an actual inner-join condition (where inner-join differs from outer-join)
joins.yaml: # TODO: test an actual outer-join condition (where outer-join differs from inner-join)
joins.yaml: # TODO: test for table where id isn't a primary key
meta/table.yaml: # TODO: test options to table_create (e.g. primary_key,
mutation/delete.yaml: # TODO: test deletion on a non-deletable object
mutation/replace.yaml: # TODO: Between is buggy on the CPP server right now and this doesn't work
mutation/replace.yaml: # TODO: static value syntax
mutation/replace.yaml: # TODO: replace a non-replacable object
mutation/replace.yaml: # TODO: test atomicity constraints
mutation/replace.yaml: # TODO: test trying to change pkey of a document
mutation/replace.yaml: # TODO: test not passing a pkey in the first place. What should happen?
mutation/insert.yaml: # TODO: test upsert option
mutation/insert.yaml: # TODO: test auto pkey generation
mutation/insert.yaml: # TODO: test auto pkey generation when pkey other than id is passed to table_create
mutation/insert.yaml: # TODO: test pkey clash error case
mutation/insert.yaml: # TODO: test what happens if one tries to insert into a non-insertable object
mutation/insert.yaml: # TODO: in all data modification operations (insert, update,
mutation/update.yaml: # TODO: test static value syntax
mutation/update.yaml: # TODO: test what happens if one tries to update a non-updatable object
mutation/update.yaml: # TODO: test atomicity constraints (positive and negative test)
mutation/update.yaml: # TODO: test seq.filter(...).filter(...).update
mutation/update.yaml: # TODO: test trying to change pkey of a document
selection.yaml: # TODO: test missing db
selection.yaml: # TODO: test missing table
selection.yaml: # TODO: test accessing a table from default db
selection.yaml: # TODO: GET a document that exists
selection.yaml: # TODO: GET a document that doesn't exist
selection.yaml: # TODO: does GET still support an attribute specification?
selection.yaml: # TODO: test GET for table where id isn't a primary key
selection.yaml: # TODO: test between without the first argument
selection.yaml: # TODO: test between without the second argument
selection.yaml: # TODO: test between that has a wider range than the one in the db
selection.yaml: # TODO: does between still support attribute specification?
selection.yaml: # TODO: test between on non-selections
selection.yaml: # TODO: test between table where id isn't a primary key
selection.yaml: # TODO: test static value syntax for filter
selection.yaml: # TODO: test seq.filter.filter
selection.yaml: # TODO: test not returning a boolean
transformation.yaml: # TODO: Implicit var support buggy on CPP server
transformation.yaml: # TODO: Implicit var support buggy on CPP server
transformation.yaml: # TODO: add tests for skip (positive, negative numbers, non-numbers)
transformation.yaml: # TODO: add tests for limit (positive, negative numbers, non-numbers)
transformation.yaml: # TODO: add tests for slice (positive, negative numbers, non-numbers)
transformation.yaml: # TODO: add tests for nth (positive, negative numbers, non-numbers)
transformation.yaml: # TODO: pluck
transformation.yaml: # TODO: without
transformation.yaml: # TODO: make sure all is properly polymorphic
Activity
mlucy commentedon Feb 27, 2013
coffeemug commentedon Feb 27, 2013
What are write placement queries and stop queries?
mlucy commentedon Feb 27, 2013
We have three basic queries, START, CONTINUE, and STOP. You can send a STOP query and it should theoretically pulse the interruptor and remove the corresponding token from the stream cache. Now that I'm writing this, I don't remember implementing that logic, so I should probably do that.
By "write placement" I meant testing to make sure that you get back an error if you do a write in e.g. a map.
mlucy commentedon Feb 28, 2013
So I described the behavior of a STOP query incorrectly; its only role (currently) is to remove queries from the stream cache. You need to terminate the connection to pulse the interruptor.
mlucy commentedon Feb 28, 2013
jdoliner commentedon Mar 1, 2013
Test common things that people might expect to work. For example in the current javascript driver:
returns:
The test should make sure that this query never even leaves the driver.
coffeemug commentedon Mar 1, 2013
Ahh. I believe the
[]operator returns undefined here. I'll make sure to test for a good error message. Niiice.mlucy commentedon Mar 4, 2013
We should test this error case, at least in Ruby:
mlucy commentedon Mar 4, 2013
Also, we need to test both ruby 1.8 and 1.9.
coffeemug commentedon Mar 18, 2013
Most of the tests are done, but not all. I'm moving to post_protobuf for now, will make a list of missing tests (there are very few missing out of what's here).
mlucy commentedon Apr 25, 2014
This issue is obsolete.