You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by ho...@apache.org on 2023/05/12 16:45:27 UTC

[solr] branch main updated: Remove new-ish curl option in integration test

This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr.git


The following commit(s) were added to refs/heads/main by this push:
     new 6ac032dc665 Remove new-ish curl option in integration test
6ac032dc665 is described below

commit 6ac032dc665e1ec083942f63386ad02461e24eec
Author: Houston Putman <ho...@apache.org>
AuthorDate: Fri May 12 12:45:18 2023 -0400

    Remove new-ish curl option in integration test
---
 solr/packaging/test/test_ssl.bats | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/solr/packaging/test/test_ssl.bats b/solr/packaging/test/test_ssl.bats
index 3f9065956d9..3e53a7c6b29 100644
--- a/solr/packaging/test/test_ssl.bats
+++ b/solr/packaging/test/test_ssl.bats
@@ -93,6 +93,7 @@ teardown() {
   run curl -u name:password --basic --http2 --cacert "$ssl_dir/solr-ssl.pem" 'https://localhost:8983/solr/test/select?q=*:*'
   assert_output --partial '"numFound":0'
 
-  run ! curl --http2 --fail-with-body --cacert "$ssl_dir/solr-ssl.pem" 'https://localhost:8983/solr/test/select?q=*:*'
+  # When the Jenkins box "curl" supports --fail-with-body, add "--fail-with-body" and change "run" to "run !", to expect a failure
+  run curl --http2 --cacert "$ssl_dir/solr-ssl.pem" 'https://localhost:8983/solr/test/select?q=*:*'
   assert_output --partial '401 require authentication'
 }