[LOG4J2-1040] Update MongoDB driver from 2.13.3 to 3.0.4. The code will still work with 2.13.3.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/34f7cfad Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/34f7cfad Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/34f7cfad Branch: refs/heads/LOG4J2-1136 Commit: 34f7cfad3a8e9d5ffd1e096dedd7356158224bea Parents: c100f6b Author: ggregory <[email protected]> Authored: Thu Sep 24 01:35:49 2015 -0700 Committer: Ralph Goers <[email protected]> Committed: Sun Sep 27 10:47:29 2015 -0700 ---------------------------------------------------------------------- .../log4j/nosql/appender/MongoDbAuthTest.java | 37 ++++++++++++++++++++ .../log4j/nosql/appender/MongoDbTest.java | 2 +- 2 files changed, 38 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/34f7cfad/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbAuthTest.java ---------------------------------------------------------------------- diff --git a/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbAuthTest.java b/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbAuthTest.java new file mode 100644 index 0000000..f7c128e --- /dev/null +++ b/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbAuthTest.java @@ -0,0 +1,37 @@ +/* + * 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.logging.log4j.nosql.appender; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; +import org.apache.logging.log4j.junit.LoggerContextRule; +import org.junit.ClassRule; +import org.junit.Ignore; +import org.junit.Test; + +@Ignore("Requires a running MongoDB server") +public class MongoDbAuthTest { + + @ClassRule + public static LoggerContextRule context = new LoggerContextRule("log4j2-mongodb-auth.xml"); + + @Test + public void test() { + final Logger logger = LogManager.getLogger(); + logger.info("Hello log"); + } +} http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/34f7cfad/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbTest.java ---------------------------------------------------------------------- diff --git a/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbTest.java b/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbTest.java index 03487e3..2513526 100644 --- a/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbTest.java +++ b/log4j-nosql/src/test/java/org/apache/logging/log4j/nosql/appender/MongoDbTest.java @@ -27,7 +27,7 @@ import org.junit.Test; public class MongoDbTest { @ClassRule - public static LoggerContextRule context = new LoggerContextRule("log4j2-mongodb-auth.xml"); + public static LoggerContextRule context = new LoggerContextRule("log4j2-mongodb.xml"); @Test public void test() {
