Sha256: 84d2bd3eaa5b0c29b5a59322104e5a3709807e06ff3a09b9809e2ef262dc7e03

Contents?: true

Size: 422 Bytes

Versions: 544

Compression:

Stored size: 422 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, /can only be called using the 4.x function API/)
  end
end

Version data entries

544 entries across 544 versions & 1 rubygems

Version Path
puppet-7.24.0 spec/unit/parser/functions/lookup_spec.rb
puppet-7.24.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.24.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.24.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-7.23.0 spec/unit/parser/functions/lookup_spec.rb
puppet-7.23.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.23.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.23.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-7.22.0 spec/unit/parser/functions/lookup_spec.rb
puppet-7.22.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.22.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.22.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-6.29.0 spec/unit/parser/functions/lookup_spec.rb
puppet-6.29.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-6.29.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-6.29.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb
puppet-7.21.0 spec/unit/parser/functions/lookup_spec.rb
puppet-7.21.0-x86-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.21.0-x64-mingw32 spec/unit/parser/functions/lookup_spec.rb
puppet-7.21.0-universal-darwin spec/unit/parser/functions/lookup_spec.rb