test_name "legacy sub-commands" do
  step "check to make sure the legacy commands still work" do
    ["puppetdb-ssl-setup","puppetdb-import","puppetdb-export","puppetdb-anonymize"].each do |k|
      result = on database, "/usr/sbin/#{k} -h"

      assert_match(/WARNING: #{k} style of executing puppetdb commands is deprecated/, result.stdout, "Legacy sub-command did not returning a deprecation WARNING line")
    end
  end
end

test_name "legacy sub-commands" do
  step "check to make sure the legacy commands still work" do
    ["puppetdb-ssl-setup","puppetdb-import","puppetdb-export","puppetdb-anonymize"].each do |k|
      result = on database, "/usr/sbin/#{k} -h"

      assert_match(/WARNING: #{k} style of executing puppetdb subcommands is deprecated/, result.stdout, "Legacy sub-command did not returning a deprecation WARNING line")
    end
  end
end

Change regex for legacy subcommand warning test
Change regex for legacy subcommand warning test

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