Sha256: 06cc4fc1cf9a32dd9b16aaaf193ac76a96f469f9266a37f8b71d76f26d864d21

Contents?: true

Size: 686 Bytes

Versions: 20

Compression:

Stored size: 686 Bytes

Contents

require 'spec_helper'
require 'puppet/pops'
require_relative 'parser_rspec_helper'

describe "egrammar parsing of capability mappings" do
  include ParserRspecHelper

  context "when parsing 'produces'" do
    it "raises syntax error" do
      expect {
        parse("Foo produces Sql { name => value }")
      }.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'produces' \(line: 1, column: 5\)/)
    end
  end

  context "when parsing 'consumes'" do
    it "raises syntax error" do
      expect {
        parse("Foo consumes Sql { name => value }")
      }.to raise_error(Puppet::ParseErrorWithIssue, /Syntax error at 'consumes' \(line: 1, column: 5\)/)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-7.4.1 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.1-x86-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.1-x64-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.1-universal-darwin spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.0 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.0-x86-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.0-x64-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.4.0-universal-darwin spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.3.0 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.3.0-x86-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.3.0-x64-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.3.0-universal-darwin spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.1.0 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.1.0-x86-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.1.0-x64-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.1.0-universal-darwin spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.0.0 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.0.0-x86-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.0.0-x64-mingw32 spec/unit/pops/parser/parse_capabilities_spec.rb
puppet-7.0.0-universal-darwin spec/unit/pops/parser/parse_capabilities_spec.rb