Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-3216

Wildcard projection spec fails on latest

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.19.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      When running against the latest server, wildcard projection spec fails:

      1) Mongo::Index::View#create_one when providing a valid wildcard projection on server versions >= 5.0 passes wildcardProjection correctly
           Failure/Error: expect(indexes[:wildcardProjection]).to eq({ '_id' => false, 'rating' => true })
           
             expected: {"_id"=>false, "rating"=>true}
                  got: {"rating"=>1}
           
             (compared using ==)
           
             Diff:
             @@ -1,3 +1,2 @@
             -"_id" => false,
             -"rating" => true,
             +"rating" => 1,
             
           # ./spec/mongo/index/view_spec.rb:964:in `block (5 levels) in <top (required)>'
           # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:124:in `block in run'
           # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `loop'
           # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:110:in `run'
           # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec_ext/rspec_ext.rb:12:in `run_with_retry'
           # /usr/local/bundle/gems/rspec-retry-0.6.2/lib/rspec/retry.rb:37:in `block (2 levels) in setup'
      

      This spec does not fail on previous versions.

            Assignee:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: