diff options
| author | Brice Figureau <brice-puppet@daysofwonder.com> | 2009-06-03 20:09:56 +0200 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-06-06 09:52:53 +1000 |
| commit | b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9 (patch) | |
| tree | b185d49e6fdcee2da5131384f9022c35dfb7ff54 /spec/unit/parser | |
| parent | d69fffb63ca9efe3cca67167430b23d3b8d38fa4 (diff) | |
| download | puppet-b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9.tar.gz puppet-b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9.tar.xz puppet-b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9.zip | |
Make sure resources are tagged with the user tag on the server
It appears that resources were not tagged with user tag on the
server, which prevents those tags to be persisted as tag in
the storeconfigs.
Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit/parser')
| -rwxr-xr-x | spec/unit/parser/resource.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/parser/resource.rb b/spec/unit/parser/resource.rb index e879fb315..bdaa05bf6 100755 --- a/spec/unit/parser/resource.rb +++ b/spec/unit/parser/resource.rb @@ -92,6 +92,13 @@ describe Puppet::Parser::Resource do res = Puppet::Parser::Resource.new(@arguments) res.ref.should == "Resource[testing]" end + + it "should be tagged with user tags" do + tags = [ "tag1", "tag2" ] + @arguments[:params] = [ param(:tag, tags , :source) ] + res = Puppet::Parser::Resource.new(@arguments) + (res.tags & tags).should == tags + end end describe "when evaluating" do |
