Repository: gora Updated Branches: refs/heads/master 3f3232112 -> d1347a5fd
Upgrading MongoDB Java driver to 3.4.2 release Add integration tests for 3.4.x server Project: http://git-wip-us.apache.org/repos/asf/gora/repo Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/d1347a5f Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/d1347a5f Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/d1347a5f Branch: refs/heads/master Commit: d1347a5fdb48018050cf25d0e203019521ac8b77 Parents: 3f32321 Author: Damien Raude-Morvan <[email protected]> Authored: Tue Mar 14 23:32:26 2017 +0100 Committer: Damien Raude-Morvan <[email protected]> Committed: Tue Mar 14 23:32:26 2017 +0100 ---------------------------------------------------------------------- gora-mongodb/pom.xml | 4 +-- .../PLAIN_AuthenticationTest.java | 2 +- .../SCRAM_SHA_1_AuthenticationTest.java | 2 +- .../gora/mongodb/store/TestMongoStore34.java | 31 ++++++++++++++++++++ 4 files changed, 35 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/gora/blob/d1347a5f/gora-mongodb/pom.xml ---------------------------------------------------------------------- diff --git a/gora-mongodb/pom.xml b/gora-mongodb/pom.xml index b3c348e..3ea1738 100644 --- a/gora-mongodb/pom.xml +++ b/gora-mongodb/pom.xml @@ -52,8 +52,8 @@ <properties> <osgi.import>*</osgi.import> <osgi.export>org.apache.gora.mongodb*;version="${project.version}";-noimport:=true</osgi.export> - <mongo.driver.version>3.4.0</mongo.driver.version> - <mongo.embed.version>1.50.2</mongo.embed.version> + <mongo.driver.version>3.4.2</mongo.driver.version> + <mongo.embed.version>2.0.0</mongo.embed.version> </properties> <build> http://git-wip-us.apache.org/repos/asf/gora/blob/d1347a5f/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/PLAIN_AuthenticationTest.java ---------------------------------------------------------------------- diff --git a/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/PLAIN_AuthenticationTest.java b/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/PLAIN_AuthenticationTest.java index 9b25dac..efd14fc 100644 --- a/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/PLAIN_AuthenticationTest.java +++ b/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/PLAIN_AuthenticationTest.java @@ -31,7 +31,7 @@ public class PLAIN_AuthenticationTest extends TestMongoStore { .getLogger(PLAIN_AuthenticationTest.class); static { try { - setTestDriver(new GoraMongodbAuthenticationTestDriver("PLAIN", Version.Main.V3_2)); + setTestDriver(new GoraMongodbAuthenticationTestDriver("PLAIN", Version.Main.V3_4)); } catch (Exception e) { log.error("MongoDb Test Driver initialization failed. "+ e.getMessage()); } http://git-wip-us.apache.org/repos/asf/gora/blob/d1347a5f/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/SCRAM_SHA_1_AuthenticationTest.java ---------------------------------------------------------------------- diff --git a/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/SCRAM_SHA_1_AuthenticationTest.java b/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/SCRAM_SHA_1_AuthenticationTest.java index ebbf11e..c7fd045 100644 --- a/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/SCRAM_SHA_1_AuthenticationTest.java +++ b/gora-mongodb/src/test/java/org/apache/gora/mongodb/authentications/SCRAM_SHA_1_AuthenticationTest.java @@ -30,7 +30,7 @@ import java.nio.file.StandardOpenOption; public class SCRAM_SHA_1_AuthenticationTest extends TestMongoStore { static { try { - setTestDriver(new GoraMongodbAuthenticationTestDriver("SCRAM-SHA-1", Version.Main.V3_2)); + setTestDriver(new GoraMongodbAuthenticationTestDriver("SCRAM-SHA-1", Version.Main.V3_4)); } catch (Exception e) { log.error("MongoDb Test Driver initialization failed. "+ e.getMessage()); } http://git-wip-us.apache.org/repos/asf/gora/blob/d1347a5f/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore34.java ---------------------------------------------------------------------- diff --git a/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore34.java b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore34.java new file mode 100644 index 0000000..90c0359 --- /dev/null +++ b/gora-mongodb/src/test/java/org/apache/gora/mongodb/store/TestMongoStore34.java @@ -0,0 +1,31 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.gora.mongodb.store; + +import de.flapdoodle.embed.mongo.distribution.Version; +import org.apache.gora.mongodb.GoraMongodbTestDriver; + +/** + * Perform {@link TestMongoStore} tests on MongoDB 3.4.x server. + */ +public class TestMongoStore34 extends TestMongoStore { + + static { + setTestDriver(new GoraMongodbTestDriver(Version.Main.V3_4)); + } +}
