Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-16481: Upgrade Bats to 1.8.0 (#1091)

Kevin Risden4ac368752854
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index d405ad55a2b..265cfeee936 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -85,6 +85,8 @@ Other Changes
* SOLR-16150: Embedded ZK Server used for zkRun should advertise itself on specific bound interfaces instead of
generically on localhost. (Mike Drob)
+* SOLR-16481: Upgrade Bats to 1.8.0 (Kevin Risden)
+
================== 9.1.0 ==================
New Features
diff --git a/solr/packaging/build.gradle b/solr/packaging/build.gradle
index 095c9ccb6ca..7c4157bf6fa 100644
--- a/solr/packaging/build.gradle
+++ b/solr/packaging/build.gradle
@@ -159,15 +159,17 @@ assemble.dependsOn installDist
task downloadBats(type: NpmTask) {
group = 'Build Dependency Download'
- args = ["install", "bats",
- "ztombol/bats-support",
- "ztombol/bats-assert",
+ args = ["install", "[email protected]",
+ "ztombol/bats-support#v0.2.0",
+ "ztombol/bats-assert#v0.3.0",
+ "ztombol/bats-file#v0.2.0",
]
inputs.files("${project.ext.nodeProjectDir}/package.json")
outputs.dir("${project.ext.nodeProjectDir}/node_modules/bats")
outputs.dir("${project.ext.nodeProjectDir}/node_modules/bats-support")
outputs.dir("${project.ext.nodeProjectDir}/node_modules/bats-assert")
+ outputs.dir("${project.ext.nodeProjectDir}/node_modules/bats-file")
}
task integrationTests(type: BatsTask) {
diff --git a/solr/packaging/test/bats_helper.bash b/solr/packaging/test/bats_helper.bash
index d408af72808..9f7b50da900 100644
--- a/solr/packaging/test/bats_helper.bash
+++ b/solr/packaging/test/bats_helper.bash
@@ -20,7 +20,7 @@
# The SOLR_HOME directory will be cleared when the next test file is executed.
# - "setup" should use "common_setup" if a Solr process is NOT being started in that same "setup" function.
common_setup() {
- bats_require_minimum_version 1.5.0
+ bats_require_minimum_version 1.8.0
if [ -z ${BATS_LIB_PREFIX:-} ]; then
# Debugging help, if you want to run bats directly, try to detect where libraries might be
@@ -31,6 +31,7 @@ common_setup() {
load "${BATS_LIB_PREFIX}/bats-support/load.bash"
load "${BATS_LIB_PREFIX}/bats-assert/load.bash"
+ load "${BATS_LIB_PREFIX}/bats-file/load.bash"
PATH="${SOLR_TIP:-.}/bin:$PATH"
export SOLR_ULIMIT_CHECKS=false