janhoy commented on code in PR #5323: URL: https://github.com/apache/solr/pull/5323#discussion_r4551168888
########## solr/packaging/src/test/org/apache/solr/shell/CompressionTest.java: ########## @@ -0,0 +1,88 @@ +/* + * 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.solr.shell; + +import java.util.Map; +import org.junit.BeforeClass; +import org.junit.Test; + +/** + * Port of {@code test_compression.bats}. + * + * <p>Kept close to the original, including the order of the tests and the text each asserts on. + * Where it differs: + * + * <ul> + * <li>{@code curl -D -} becomes {@link #http}, so the header dump the original asserted on as + * part of the body is asserted on as the response headers instead. + * <li>{@code curl --compressed} becomes a request that asks for {@code Accept-Encoding}; the + * harness decompresses the body the same way curl does. + * <li>The original's {@code solr start -e films} is deliberately not used: on Windows {@code + * RunExampleTool#startSolr} drops every {@code SOLR_*} variable from the spawned node's Review Comment: This may be temporary, and we could flip it back to `-e` once the win-side bug is fixed? We have a few other CATS tests that do use `-e` so it CAN work, just not for any test I guess. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
