epugh commented on code in PR #1601: URL: https://github.com/apache/solr/pull/1601#discussion_r1181871105
########## solr/packaging/test/test_zk.bats: ########## @@ -0,0 +1,77 @@ +#!/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_file() { + common_clean_setup + solr start -c +} + +teardown_file() { + common_setup + solr stop -all +} + +setup() { + common_setup +} + +teardown() { + # save a snapshot of SOLR_HOME for failed tests + save_home_on_failure +} + +@test "listing out files" { + sleep 1 + run solr zk ls / -z localhost:9983 + assert_output --partial "aliases.json" +} + +@test "copying files around" { + touch myfile.txt + # Umm, what is solr cp? It's like bin/solr zk cp but not? + run solr cp -src myfile.txt -dst zk:/myfile.txt -z localhost:9983 Review Comment: I have added https://issues.apache.org/jira/browse/SOLR-16780 to track this. -- 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]
