Mercurial > repos > other > Puppet
view modules/stdlib/spec/classes/anchor_spec.rb @ 157:c6b1b42f3e4b puppet-3.6
Move all sites to separate LetsEncrypt certs to make adding future domains easier
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Thu, 30 Mar 2017 20:41:18 +0100 |
parents | addb0ea390a1 |
children |
line wrap: on
line source
#! /usr/bin/env ruby -S rspec require 'spec_helper' require 'puppet_spec/compiler' describe "anchorrefresh" do include PuppetSpec::Compiler let :transaction do apply_compiled_manifest(<<-ANCHORCLASS) class anchored { anchor { 'anchored::begin': } ~> anchor { 'anchored::end': } } class anchorrefresh { notify { 'first': } ~> class { 'anchored': } ~> anchor { 'final': } } include anchorrefresh ANCHORCLASS end it 'propagates events through the anchored class' do resource = transaction.resource_status('Anchor[final]') expect(resource.restarted).to eq(true) end end