"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "log4j-cassandra/src/test/java/org/apache/logging/log4j/cassandra/CassandraAppenderIT.java" between
apache-log4j-2.12.3-src.tar.gz and apache-log4j-2.12.4-src.tar.gz

About: Apache Log4j 2 is a logging library for Java. Source distribution (Java).
Caution: Release 2.12.3 is the last 2.x release to support Java 7 (Java 8 users should use 2.17.0 or greater) and have fixed a critical remote code execution vulnerability (CVE-2021-44228).

CassandraAppenderIT.java  (apache-log4j-2.12.3-src):CassandraAppenderIT.java  (apache-log4j-2.12.4-src)
skipping to change at line 19 skipping to change at line 19
* http://www.apache.org/licenses/LICENSE-2.0 * http://www.apache.org/licenses/LICENSE-2.0
* *
* Unless required by applicable law or agreed to in writing, software * Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, * distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the license for the specific language governing permissions and * See the license for the specific language governing permissions and
* limitations under the license. * limitations under the license.
*/ */
package org.apache.logging.log4j.cassandra; package org.apache.logging.log4j.cassandra;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.UUID; import java.util.UUID;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
import com.datastax.driver.core.Row; import org.apache.commons.lang3.SystemUtils;
import com.datastax.driver.core.Session;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.MarkerManager; import org.apache.logging.log4j.MarkerManager;
import org.apache.logging.log4j.ThreadContext; import org.apache.logging.log4j.ThreadContext;
import org.apache.logging.log4j.categories.Appenders; import org.apache.logging.log4j.categories.Appenders;
import org.apache.logging.log4j.junit.LoggerContextRule; import org.apache.logging.log4j.junit.LoggerContextRule;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.ClassRule; import org.junit.ClassRule;
import org.junit.Test; import org.junit.Test;
import org.junit.experimental.categories.Category; import org.junit.experimental.categories.Category;
import org.junit.rules.RuleChain; import org.junit.rules.RuleChain;
import static org.junit.Assert.*; import com.datastax.driver.core.Row;
import com.datastax.driver.core.Session;
/** /**
* Integration test for CassandraAppender. * Integration test for CassandraAppender.
*/ */
@Category(Appenders.Cassandra.class) @Category(Appenders.Cassandra.class)
public class CassandraAppenderIT { public class CassandraAppenderIT {
@BeforeClass
public static void disbaleOnAarch64() {
Assume.assumeFalse(SystemUtils.OS_ARCH.equalsIgnoreCase("aarch64"));
}
private static final String DDL = "CREATE TABLE logs (" + private static final String DDL = "CREATE TABLE logs (" +
"id timeuuid PRIMARY KEY," + "id timeuuid PRIMARY KEY," +
"timeid timeuuid," + "timeid timeuuid," +
"message text," + "message text," +
"level text," + "level text," +
"marker text," + "marker text," +
"logger text," + "logger text," +
"timestamp timestamp," + "timestamp timestamp," +
"mdc map<text,text>," + "mdc map<text,text>," +
"ndc list<text>" + "ndc list<text>" +
 End of changes. 5 change blocks. 
3 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)