Sha256: f1beb87d9ffaadeabb25b4eeb1c92986caba48c31994ab8b38e04a4679e9393c

Contents?: true

Size: 396 Bytes

Versions: 74

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'
require 'puppet/pops'
require 'stringio'
require 'puppet_spec/scope'

describe "lookup function" do
  include PuppetSpec::Scope

  let :scope do create_test_scope_for_node('foo') end

  it 'should raise an error since this function is converted to 4x API)' do
    expect { scope.function_lookup(['key']) }.to raise_error(Puppet::ParseError, /converted to 4x API/)
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
puppet-4.7.1 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.1-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.1-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.1-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.0 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.7.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.2 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.2-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.2-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.2-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.1-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.1 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.1-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.6.1-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-4.5.3 spec/unit/parser/functions/lookup_spec.rb
puppet-4.5.3-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.5.3-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-4.5.3-universal-darwin spec/unit/parser/functions/lookup_spec.rb