HomePhorge

(#7656) Port PMT unit test into Puppet core
bce8e4329874Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#7656) Port PMT unit test into Puppet core

Before this patch, the Puppet Module Tool (PMT) unit tests lived in the
PMT codebase -- in a separate project.

This patch ports the PMT unit tests into core Puppet with the following
major changes and refactorings.

All spec tests are being updated to require modules located in their new
location in the core Puppet codebase: lib/puppet/module_tool.

The following tests are being removed:

  • spec/unit/application_spec.rb

application_spec.rb is being removed because the tests are no longer
valid, all examples are related to custom settings code that is not
being ported over.

The following tests are being renamed:

  • spec/unit/tool_spec.rb

    tool_spec.rb is being renamed to module_tool_spec.rb. This change is being made in order to match the new name of the module under test: module_tool.rb

The following tests are being relocated:

  • spec/unit/repository_spec.rb
  • spec/unit/semver_spec.rb

Both repository_spec.rb and semver_spec.rb are being relocated under
the spec/unit/module_tool directory in core Puppet. This change is
being made to match the new locations of the modules under test.

Details

Provenance
Kelsey Hightower <kelsey@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUee4dbf4d1520: (#7656) Port PMT test fixtures into Puppet core
Branches
Unknown
Tags
Unknown

Event Timeline

Kelsey Hightower <kelsey@puppetlabs.com> committed rPUbce8e4329874: (#7656) Port PMT unit test into Puppet core (authored by Kelsey Hightower <kelsey@puppetlabs.com>).Dec 5 2011, 4:31 PM