Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-5401

spec/integration/data_binding.rb fails when run in isolation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • 2

    Description

      rnelson0@gmail.com found that running spec/integration/data_binding.rb in isolation will fail:

      ~/w/puppet (master ↩☡-) bundle exec rspec spec/integration/data_binding.rb
      Run options: exclude {:broken=>true, :benchmark=>true}
      FF
       
      Failures:
       
        1) Data binding looks up data from hiera
           Failure/Error: expect(resource[:calling_module]).to eq("testing")
       
             expected: "testing"
                  got: ""
       
             (compared using ==)
           # ./spec/integration/data_binding.rb:39:in `block (2 levels) in <top (required)>'
       
        2) Data binding works with the puppet backend configured, although it can't use it for lookup
           Failure/Error: catalog = compile_to_catalog("include testing::binding")
           Puppet::PreformattedError:
             Evaluation Error: Error while evaluating a Function Call, Could not find data item variable in any Hiera data file and no default supplied at /var/folders/2q/qhdc5tpx4knd4pjr1hdskmjc0000gn/T/rspecrun20151020-60612-1833ym7/puppetdir20151020-60612-1shfljv/testing/manifests/binding.pp:2:37 on node foonode
      

      Some other test must be running first that allows the test to pass in CI.

      Also side note, the test should be named data_binding_spec.rb

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support