Skip to content

Relaxing error message comparison so that test passes against MongoDB 2.6 #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

jyemin
Copy link
Contributor

@jyemin jyemin commented Mar 28, 2014

MongoDB 2.6 is returning an error message starting with:

"Insert list failed: insertDocument :: caused by :: "

which was making this test fail.

Note also that to test against MongoDB 2.6.0-rc2 I had to in the setup method first strip the "-rc2" from the version before passing it to Spring's Version class, which doesn't handle anything but integer versions.

…es against the message returned by MongoDB 2.6.
christophstrobl pushed a commit that referenced this pull request Apr 3, 2014
Upgrade driver in profile to rc3.
Relaxing error message comparison in assertion so that it still matches against the message returned by MongoDB 2.6.

Original Pull Request: #160 (Jeff Yemin)
odrotbohm pushed a commit that referenced this pull request Apr 10, 2014
…DB Java driver.

Upgrade next MongoDB driver version to 2.12.0. Strong upgrade coming in a subsequent commit to make sure we can backport the compatibility checks to the bugfix branch without forcing users into a driver upgrade.

Relaxing error message comparison in assertion so that it still matches against the message returned by MongoDB 2.6. When comparing the value of the version field, compare against a Long rather than an Integer, since the version field generated is a Long. This allows the test to pass against the upcoming 2.12.0 release of the Java driver, which has a stricter implementation of BasisDBObject.equals(…).

Original pull requests: #159, #160.
odrotbohm pushed a commit that referenced this pull request Apr 15, 2014
…DB Java driver.

Upgrade next MongoDB driver version to 2.12.0. Strong upgrade coming in a subsequent commit to make sure we can backport the compatibility checks to the bugfix branch without forcing users into a driver upgrade.

Relaxing error message comparison in assertion so that it still matches against the message returned by MongoDB 2.6. When comparing the value of the version field, compare against a Long rather than an Integer, since the version field generated is a Long. This allows the test to pass against the upcoming 2.12.0 release of the Java driver, which has a stricter implementation of BasisDBObject.equals(…).

Original pull requests: #159, #160.
@christophstrobl
Copy link
Member

thank you @jyemin. merged with 14360f2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants