Skip to content

ReQL testing todo #384

Closed
Closed

Description

@coffeemug

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

  1. mlucy commented on Feb 27, 2013

    @mlucy
    Member
    • deeply nested queries (enough to blow the stack off)
    • determinism
    • write placement
    • coerce / typeof
    • some queries large enough to test the batched stream logic
    • stop queries
  2. coffeemug commented on Feb 27, 2013

    @coffeemug
    ContributorAuthor

    What are write placement queries and stop queries?

  3. mlucy commented on Feb 27, 2013

    @mlucy
    Member

    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.

  4. mlucy commented on Feb 28, 2013

    @mlucy
    Member

    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.

  5. mlucy commented on Feb 28, 2013

    @mlucy
    Member
    • Test inserting an object greater than 10mb
  6. jdoliner commented on Mar 1, 2013

    @jdoliner
    Contributor

    Test common things that people might expect to work. For example in the current javascript driver:

    r.db('books').table('koti')
    .groupBy('year', 'product', r.sum('amount'))
    .map({'year': r.row('group')[0],
          'product': r.row('group')[1],
          'amount': r.row('reduction')
         })
    .run()

    returns:

    [{"name":"Broken Client","message":"bad protocol buffer; client is buggy"}]

    The test should make sure that this query never even leaves the driver.

  7. coffeemug commented on Mar 1, 2013

    @coffeemug
    ContributorAuthor

    Ahh. I believe the [] operator returns undefined here. I'll make sure to test for a good error message. Niiice.

  8. mlucy commented on Mar 4, 2013

    @mlucy
    Member

    We should test this error case, at least in Ruby:

    irb(main):749:0> r(1) < r(2) | r(3) < r(4)                    
    ArgumentError: Calling < on result of infix bitwise operator: 
    r(2).any(3).                                                  
    This is almost always a precedence error.                     
    Note that `a < b | b < c` <==> `a < (b | b) < c`.             
    If you really want this behavior, use `.or` or `.and` instead.
    
  9. mlucy commented on Mar 4, 2013

    @mlucy
    Member

    Also, we need to test both ruby 1.8 and 1.9.

  10. coffeemug commented on Mar 18, 2013

    @coffeemug
    ContributorAuthor

    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).

  11. mlucy commented on Apr 25, 2014

    @mlucy
    Member

    This issue is obsolete.

  12. modified the milestones: outdated, backlog on Apr 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions