def request(key, method)
      instance = ::Puppet::Indirector::Indirection.instance(:resource_type)
      indirection_name = 'test'
      @request = ::Puppet::Indirector::Request.new(indirection_name, method, key, instance)
      @request.environment = puppet_environment
      @request
    end
def request(key, method)
      instance = ::Puppet::Indirector::Indirection.instance(:resource_type)
      indirection_name = 'test'
      @request = ::Puppet::Indirector::Request.new(indirection_name, method, key, instance)
      @request.environment = puppet_environment
      @request
    end
creates a puppet resource request to be used indirectly