summaryrefslogtreecommitdiffstats
path: root/test/language
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix some master failing testsBrice Figureau2009-05-151-1/+1
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixing tests that apparently only worked sometimesLuke Kanies2009-04-221-0/+2
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fix #1088 - part2 - Add rspec testsBrice Figureau2009-03-141-0/+6
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixing tests broken in previous commitsLuke Kanies2009-03-111-2/+2
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Merge branch '0.24.x'Luke Kanies2009-02-141-40/+0
|\ | | | | | | | | Conflicts: test/ral/manager/type.rb
| * Removing a no-longer-valid test.Luke Kanies2009-02-141-40/+0
| | | | | | | | | | | | | | The fix for #1884 removed this no-longer-needed feature, so this test is now unnecessary. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Adding resource convertion to the parser resourcesLuke Kanies2008-12-181-84/+0
| | | | | | | | | | | | | | Also uses Puppet::Resource's method for creating transportable resources. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Renaming Puppet::Node::Catalog to Puppet::Resource::CatalogLuke Kanies2008-12-181-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-12-021-1/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: bin/puppetca lib/puppet/type/group.rb lib/puppet/type/tidy.rb lib/puppet/util/settings.rb Also edited the following files so tests will pass: lib/puppet/type/component.rb spec/unit/ssl/certificate_request.rb spec/unit/type/computer.rb spec/unit/type/mcx.rb spec/unit/type/resources.rb spec/unit/util/settings.rb spec/unit/util/storage.rb test/ral/type/zone.rb
| * Move function existance test to parser evaluationBrice Figureau2008-11-171-1/+11
| | | | | | | | | | | | | | | | The aim is to let --parseonly succeeds even if the function is not (yet) present. This is usefull in commit-hooks and for the inline documentation generation system. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Fixing forward-compatibility issues resulting from no global resourcesLuke Kanies2008-10-311-1/+1
| | | | | | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-311-0/+16
|\| | | | | | | | | | | Conflicts: CHANGELOG
| * Fix #1402 - Allow multiline commentsBrice Figureau2008-10-291-0/+11
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #857 - Multiple class of the same name don't append codeBrice Figureau2008-10-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following manifest wasn't working: class one { notice('class one') } class one { notice('second class one') } include one It all boiled down to class code not being arrays. Encapsulating code in ASTArray when needed is enough to append code, because of the property of ASTArray to evaluate all their members in turn. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Merge branch '0.24.x'Luke Kanies2008-10-222-0/+27
|\| | | | | | | | | | | Conflicts: lib/puppet/type/user.rb
| * Fix #936 - Allow trailing comma in array definitionBrice Figureau2008-10-212-0/+20
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
| * Fix #636 - Allow extraneous comma in function argument listBrice Figureau2008-10-211-0/+7
| | | | | | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* | Merge branch '0.24.x' Removed the 'after' blocks that call Type.clear,Luke Kanies2008-10-172-29/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | since that method is deprecated. Conflicts: CHANGELOG bin/puppetca lib/puppet/file_serving/fileset.rb lib/puppet/network/xmlrpc/client.rb lib/puppet/type/file/selcontext.rb spec/unit/file_serving/metadata.rb spec/unit/type/file.rb
| * Rspec Tests for #381.Brice Figureau2008-10-051-28/+0
| | | | | | | | Moved part of the old resource reference tests to rspec.
| * Minor test fix for #1614James Turnbull2008-10-041-1/+1
| |
* | Merge branch '0.24.x'Luke Kanies2008-09-231-0/+10
|\| | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/metatype/container.rb lib/puppet/metatype/instances.rb lib/puppet/metatype/metaparams.rb lib/puppet/metatype/relationships.rb lib/puppet/metatype/schedules.rb
| * Fixes tests broken by 95aa085James Turnbull2008-08-271-0/+10
| |
* | Merge commit 'turnbull/0.24.x'Luke Kanies2008-08-261-0/+8
|\|
| * Fix leaking LoadedFile when adding templates to be watchedAndrew Shafer2008-08-231-0/+8
| |
* | Merge branch '0.24.x'Luke Kanies2008-08-182-11/+108
|\| | | | | | | | | | | | | Conflicts: CHANGELOG test/util/posixtest.rb
| * Add testing for the changes to resolve redmine #1427, where Kernel methods ↵Daniel Pittman2008-08-012-11/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shadow variables that the puppet template should otherwise see. Specific changes: * Added testing of the Scope#to_hash method, which returns a hash of name and value pairs in a scope or, optionally, in the scope and enclosing scopes. * Use member variables rather than methods in the function tests. * Fix up tests that fail once we move over to instance variables rather than methods: Puppet can no longer detect an undefined variable reference, so we end up failing any test that expected to get a parser error. * Several tests have manual checks introduced to simulate an end user manually writing the checks that used to be automatic, and others drop the validation that parsing fails when a variable is not in scope. * Added tests for legacy variable lookup and that the shadowing of local variables by Kernel methods is still in effect. Signed-off-by: Daniel Pittman <daniel@rimspace.net> (cherry picked from commit 5c5f315cceadc52203e53883b77bc01c1d7a2e7f)
* | Merge branch '0.24.x'Luke Kanies2008-04-111-1/+8
|\|
| * Fixed #1184 -- definitions now autoload correctly all of the time.Luke Kanies2008-04-101-1/+8
| |
* | Merge branch 'master' into master_no_global_resourcesLuke Kanies2008-03-3115-1546/+108
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: lib/puppet/node/catalog.rb lib/puppet/type/pfile.rb lib/puppet/type/pfilebucket.rb lib/puppet/util/filetype.rb spec/unit/node/catalog.rb spec/unit/other/transbucket.rb spec/unit/ral/provider/mount/parsed.rb spec/unit/ral/types/file.rb spec/unit/ral/types/interface.rb spec/unit/ral/types/mount.rb spec/unit/ral/types/package.rb spec/unit/ral/types/schedule.rb spec/unit/ral/types/service.rb test/language/compile.rb test/language/lexer.rb test/language/snippets.rb test/lib/puppettest.rb test/ral/types/basic.rb test/ral/types/cron.rb test/ral/types/exec.rb test/ral/types/file.rb test/ral/types/file/target.rb test/ral/types/filebucket.rb test/ral/types/fileignoresource.rb test/ral/types/filesources.rb test/ral/types/group.rb test/ral/types/host.rb test/ral/types/parameter.rb test/ral/types/sshkey.rb test/ral/types/tidy.rb test/ral/types/user.rb test/ral/types/yumrepo.rb
| * Found an array that leaked pretty quickly between reparsingLuke Kanies2008-03-211-0/+1
| | | | | | | | | | | | | | | | | | | | files, thanks to work by Adam Jacob and Arjuna Christenson (the finding, not the leak). I'm going to act like this fixes #1131, at least for now, but I doubt it does, since that shows general memory growth over time, whereas the leak here should go away as soon as files are reparsed (because the parser is holding the reference to the leaking array).
| * Always duplicating resource defaults in the parser, so thatLuke Kanies2008-03-061-159/+0
| | | | | | | | | | | | stacked metaparameter values do not result in all resources that receive a given default also getting those stacked values.
| * Fixed #997 -- virtual defined types are no longer evaluated.Luke Kanies2008-02-122-25/+14
| | | | | | | | | | | | | | NOTE: This introduces a behaviour change, in that you previously could realize a resource within a virtual defined resource, and now you must realize the entire defined resource, rather than just the contained resource.
| * Moving the ast node tests to rspec (which I could haveLuke Kanies2008-02-122-234/+0
| | | | | | | | | | | | | | *sworn* I did this weekend). In the process, I fixed a couple of bugs related to differentiating between nodes and classes, and then cleaned up quite a few error messages.
| * Changing the name of the Compile class to Compiler,Luke Kanies2008-02-119-32/+32
| | | | | | | | | | since it's stupid to have a class named after a verb.
| * Changing some methods in the Compile class toLuke Kanies2008-02-112-3/+3
| | | | | | | | | | be more internally consistent (switched store_resource to add_resource, and store_override to add_override).
| * Fixed #1030 - class and definition evaluation has been significantlyLuke Kanies2008-02-111-184/+0
| | | | | | | | | | | | refactored, fixing this problem and making the whole interplay between the classes, definitions, and nodes, and the Compile class much cleaner.
| * Converting the Compile class to use a Node::Catalog instanceLuke Kanies2008-02-114-574/+1
| | | | | | | | | | as its resource container, instead of having its own behaviour around resource uniqueness.
| * Moving all of the tests for Puppet::Parser::Compile toLuke Kanies2008-02-111-33/+0
| | | | | | | | | | | | rspec, so I can refactor the class to more heavily rely on a Node::Catalog instead of doing its own resource container management.
| * More AST refactoring -- each of the code wrapping classesLuke Kanies2008-02-085-63/+81
| | | | | | | | | | | | | | | | | | | | | | just returns a resource from its evaluate() method, and all of the work is done in the evaluate_code method. This makes the code cleaner, because it means 1) evaluate() has the same prototype as all of the other AST classes, 2) evaluate() is no longer called indirectly through the Parser Resource class, and 3) the classes themselves are responsible for creating the resources, rather than it being done in the Compile class.
| * Refactoring the AST classes just a bit. I realized thatLuke Kanies2008-02-0812-63/+62
| | | | | | | | | | | | all of the evaluate() methods only ever accepted a scope, and sometimes one other option, so I switched them all to use named arguments instead of a hash.
| * Stubbing Facter during the snippet tests, so they are faster and work with ↵Luke Kanies2008-02-081-0/+2
| | | | | | | | no network
| * Fixing #1017 -- environment-specific modulepath is noLuke Kanies2008-02-041-0/+12
| | | | | | | | longer ignored. (Cherry-picked from master.)
| * Significantly refactoring the lexer, including adding Token and TokenListLuke Kanies2008-01-301-276/+0
| | | | | | | | | | | | classes for managing how the tokens work. I also moved they tests to RSpec, but I didn't rewrite all of them.
| * Fixing a couple of tests, one related to recent tagging changesLuke Kanies2008-01-282-4/+4
| | | | | | | | | | and one that somehow slipped through when I removed the GRATR code.
* | Another round of test-fixes toward eliminating global resourceLuke Kanies2008-01-142-12/+0
| | | | | | | | | | | | references. This should have gotten rid of all of them, and now it's just a question of fixing a few hopefully unrelated failing tests.
* | Another round of fixes toward making global resources work.Luke Kanies2008-01-091-23/+13
| | | | | | | | | | | | The only remaining failures are more complicated ones (which I'll need to not be on a plane to debug, for battery reasons) or those related to the broken directory_service providers.
* | Lots o' bug-fixes toward getting rid of global resources.Luke Kanies2008-01-081-2/+2
|/ | | | | | We still have about 60 failing tests, but some of them are the failing directory service tests (probably 20 or so), and most are simple fixes to the tests themselves.
* Fixing #967 -- relationships now work when running 0.23.x clientsLuke Kanies2007-12-181-5/+5
| | | | against 0.24.0 servers.
* Renaming 'configuration' to 'catalog', fixing #954.Luke Kanies2007-12-114-18/+18
|
* Fixing another failing test I somehow missed in my last big commitLuke Kanies2007-11-281-1/+1
|