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

metadata.json created with `puppet module generate --skip-interview` fails validation

    Details

    • Type: Bug
    • Status: Accepted
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: PUP 5.0.0
    • Fix Version/s: None
    • Component/s: PMT
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      Module produced with puppet module generate --skip-interview should not produce WARN or ERROR output when running the rake validate task against it.

      Show
      Module produced with puppet module generate --skip-interview should not produce WARN or ERROR output when running the rake validate task against it.
    • Team:
      Puppet Developer Experience
    • Method Found:
      Manual Test
    • QA Risk Assessment:
      Manual

      Description

      Generating a module with the --skip-interview option produces a metadata.json file that produces the following WARN and ERROR results when the validation rake task is performed.

      # /opt/puppetlabs/puppet/bin/rake validate
      ---> syntax:manifests
      ---> syntax:templates
      ---> syntax:hiera:yaml
      (WARN) dependencies: Dependency puppetlabs-stdlib has an open ended dependency version requirement >= 1.0.0
      (ERROR) required_fields: Required field 'summary' not found in metadata.json.
      Errors found in metadata.json
      

      Steps to reproduce

      Install puppet-agent

      This requires puppet-agent de8df49 or newer, which has not yet been published to nightlies

      Install bundler

      /opt/puppetlabs/puppet/bin/gem install bundler
      

      Generate module

      /opt/puppetlabs/bin/puppet module generate --skip-interview foo-bar
      

      Validate metadata

      cd bar/
      /opt/puppetlabs/puppet/bin/bundle install
      /opt/puppetlabs/puppet/bin/rake validate
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  john.duarte John Duarte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Zendesk Support