HomePhorge

Document the different forms of catalogs to help test writers
2bbc4e4fc96dUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Document the different forms of catalogs to help test writers

Without this patch it was not clear to me that the static compiler
operates primarily on a resource catalog.

This was a problem because I spent considerable amounts of time trying
to figure out the difference between resource[:source] returning
"puppet:///..." inside of
Puppet::Resource::Catalog::StaticCompiler#find when running `puppet
apply` and resource[:source] returning ["puppet:///..."] (an array)
when inside of #find from the spec test.

When testing catalog terminii the resource form of the catalog should be
created instead of the RAL form.

This patch addresses the problem by providing a description of the
difference between a resource catalog and a RAL catalog and when it is
appropriate to use each.

Details

Provenance
Jeff McCune <jeff@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU1a432fd61764: (#15193) Document how to use the static compiler
Branches
Unknown
Tags
Unknown

Event Timeline

Jeff McCune <jeff@puppetlabs.com> committed rPU2bbc4e4fc96d: Document the different forms of catalogs to help test writers (authored by Jeff McCune <jeff@puppetlabs.com>).Aug 30 2012, 1:13 AM