Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-1267

Provide a way to define facts from upstream modules

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Puppet Developer Experience
    • QA Risk Assessment:
      Needs Assessment

      Description

      As a PDK user, I would like for upstream modules to be able to provide default values for it's facts which can be integrated into the spec tests. Currently, the facts need to be added to the facts hash or in default_facts.yml, but as the requirements of the module grow, it becomes cumbersome to identify and add facts from the modules that are not a part of the module being tested. This currently adds complexity for new users to write tests.

      An example of a use case is the puppetlabs-chocolatey module. When adding a simple include chocolatey into the code, multiple facts are required to be added for the specs. <https://github.com/puppetlabs/puppetlabs-chocolatey/blob/master/spec/classes/init_spec.rb#L6-L8>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jarret.lavallee Jarret Lavallee
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Zendesk Support