Skip to content

Latest commit

 

History

History
44 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

44 lines (26 loc) · 1.06 KB

teched_lab_tests

Table of Contents

  1. Description
  2. Requirements
  3. Usage
  4. Development

Description

This module contains tests for Puppet TechEd lab nodes.

Requirements

To run these tests, you will need to install the Puppet Development Kit (PDK).

See the official Puppet documentation for instructions:

Usage

You will use PDK to run the tests in this module. All commands should go through PDK.

# To run all unit tests
pdk test unit

# To run localhost tests
pdk bundle exec rspec spec/localhost

Development

Writing Tests

For a localhost test, create a new *_spec.rb file under spec/localhost and add a header to include the spec_helper.rb file.

In the header, also configure the serverspec back end to use whatever service you plan to execute your tests with. For example, to execute locally on a Linux host:

```set :backend, :exec