hadoop_ssh.bats 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. load hadoop-functions_test_helper
  16. @test "hadoop_actual_ssh" {
  17. skip "Not implemented"
  18. hadoop_actual_ssh
  19. }
  20. @test "hadoop_connect_to_hosts" {
  21. skip "Not implemented"
  22. hadoop_connect_to_hosts
  23. }
  24. @test "hadoop_connect_to_hosts_without_pdsh" {
  25. skip "Not implemented"
  26. hadoop_connect_to_hosts_without_pdsh
  27. }
  28. @test "hadoop_common_slave_mode_execute (--slaves 1)" {
  29. run hadoop_common_slave_mode_execute --slaves command
  30. [ ${output} = command ]
  31. }
  32. @test "hadoop_common_slave_mode_execute (--slaves 2)" {
  33. run hadoop_common_slave_mode_execute --slaves command1 command2
  34. [ ${output} = "command1 command2" ]
  35. }
  36. @test "hadoop_common_slave_mode_execute (--hosts)" {
  37. run hadoop_common_slave_mode_execute --hosts filename command
  38. [ ${output} = command ]
  39. }
  40. @test "hadoop_common_slave_mode_execute (--hostnames 2)" {
  41. run hadoop_common_slave_mode_execute --hostnames "host1,host2" command1 command2
  42. [ ${output} = "command1 command2" ]
  43. }