module AutomationExampleGroup
  extend ActiveSupport::Concern

  included do
    metadata[:type] = :automation

    before(:all) do
      MiqAeDatastore.reset
      MiqAeDatastore.reset_manageiq_domain
    end

    after(:all) do
      MiqAeDatastore.reset
    end
  end
end

module AutomationExampleGroup
  extend ActiveSupport::Concern

  class << self
    attr_accessor :fixtures_loaded
  end

  included do
    metadata[:type] = :automation

    unless AutomationExampleGroup.fixtures_loaded
      RSpec.configure do |config|
        config.before(:suite) do
          puts "** Resetting ManageIQ domain"
          MiqAeDatastore.reset
          MiqAeDatastore.reset_manageiq_domain
        end

        config.after(:suite) do
          MiqAeDatastore.reset
        end
      end

      AutomationExampleGroup.fixtures_loaded = true
    end
  end
end

Change automation examples to use before(:suite) instead of before(:all)
Change automation examples to use before(:suite) instead of before(:all)

The usage of :all was a bug as :suite was the intention all along.
This drops the test:automation suite from 32 seconds to 14 seconds.
