test_name "list sub-commands" do
  step "running puppetdb on its own should list all sub-commands" do
    result = on database, "/usr/sbin/puppetdb"
    ["ssl-setup", "import", "export", "anonymize"].each do |k|
      assert_match(/#{k}/, result.stdout, "puppetdb command should list #{k} as a sub-command")
    end
  end
end

Test to ensure the puppetdb command list all existing sub-commands
Test to ensure the puppetdb command list all existing sub-commands

When running `puppetdb` on its own, it should list all available sub-commands
in its libexecdir. This test ensures that happens.

Signed-off-by: Ken Barber <470bc578162732ac7f9d387d34c4af4ca6e1b6f7@bob.sh>
