janhoy commented on code in PR #2452:
URL: https://github.com/apache/solr/pull/2452#discussion_r4642551646


##########
solr/packaging/test/test_ubi.bats:
##########
@@ -0,0 +1,92 @@
+#!/usr/bin/env bats
+
+# 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.
+
+load bats_helper
+
+setup() {
+  common_clean_setup
+}
+
+teardown() {
+  # save a snapshot of SOLR_HOME for failed tests
+  save_home_on_failure
+
+  delete_all_collections
+  SOLR_STOP_WAIT=1 solr stop --all >/dev/null 2>&1
+}
+
+@test "Track query using UBI with log file." {

Review Comment:
   🤖 This PR adds a new `test_ubi.bats` (*Track query using UBI with log 
file.*). BATS is going away: CATS (SOLR-18642, #5323) has replaced it on 
`main`, and SOLR-18645 (#5369) removes the `.bats` files. Please write it as a 
new `SolrCatsTestCase` suite, e.g. `UbiTest` in 
`solr/packaging/src/test/org/apache/solr/shell/`. The PR also renames 
`test_stream.bats` to `test_streams.bat`, which looks unintended and can be 
dropped. See 
[dev-docs/cats.adoc](https://github.com/apache/solr/blob/main/dev-docs/cats.adoc)
 for porting help.



-- 
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]

Reply via email to