| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | | |
rspec, so I can refactor the class to more heavily rely
on a Node::Catalog instead of doing its own resource
container management.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
file values that are false.
|
| | |
| | |
| | |
| | | |
using a regular expression that matches only up to the first square bracket.
|
| | |
| | |
| | |
| | |
| | |
| | | |
classes for managing how the tokens work.
I also moved they tests to RSpec, but I didn't rewrite all of them.
|
| | |
| | |
| | |
| | | |
class skip any resources that are already in memory.
|
| | |
| | |
| | |
| | |
| | |
| | | |
the class parts are now added as tags. I've also
created a Tagging module that we should push throughout
the rest of the system that uses tags.
|
| | |
| | |
| | |
| | | |
and specs can be directly executed again.
|
| |\| |
|
| | | |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
referenced by Puppet::Network::Server
|
| | |\ \ |
|
| | |\ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
changed and it can't be found otherwise.
Adding $PUPPET/vendor/gems, with unpacked rspec gem there, introducing to spec_helper.rb LOAD_PATH incantation. Eliminating ad hoc unpacked rspec from spec/lib.
Moving monkey_patches and shared_behaviors up under spec/. Adjusting spec_helper.rb accordingly.
Nuking spec/lib.
Fixing up autotest/puppet_rspec.rb to be able to hunt down our vendor/gems/rspec/bin/spec binary. We can now run rspec without having to have the rspec gem installed.
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
up in the relationship graph, which only stores the vertices, not
the resource table.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
| |_|_|_|/
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | | |
from the system, and implemented my own topsort method.
|
| | | | |
| | | | |
| | | | |
| | | | | |
times.
|
| | | | |
| | | | |
| | | | |
| | | | | |
done this but I must not have committed it.
|
| | | | |
| | | | |
| | | | |
| | | | | |
that the fstab file exist.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I use Naginator to parse and generate the files, with
ParsedFile to handle record management and the like.
Note that each resource type itself is just a call to
a Factory method, since everything is just based on Naginator.
Given that, all of the tests are in a single unit/ral/types/nagios.rb
file, since I used a factory to generate them, too. This is probably
either unnecessary or insufficient, but it's as far as I'm
willing to go in testing them, and it did actually catch a few
bugs.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
and Naginator providers. This is basically all of
the code that's necessary to create all of the needed
Nagios types.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
caused other problems.
This whole thing will hopefully get *drastically* easier once we
get rid of global resources.
|
| | | |
| | | |
| | | |
| | | | |
since it didn't work and is now unnecessary.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
a central module responsible for managing the http pool
(Puppet::Network::HttpPool), and it also handles
setting certificate information. This gets rid of
what were otherwise long chains of method calls,
and it makes the code paths much clearer.
|
| | | |
| | | |
| | | |
| | | | |
against 0.24.0 servers.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
a new connection is requested, and closing all connections
at the end of each run.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Hosts were keeping the export bit on all resources,
even when they'd collected another host's resources,
which caused a duplicate copy that was still exported.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
requested in #960.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
the Facter terminus until I have a better solution.
This problem was discovered becomes of #958.
|
| | | |
| | | |
| | | |
| | | | |
and I had to make a few small changes to make them work.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
set the 'node_terminus' setting to 'exec'.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
except that I was not passing the interpolated value in
to the hook, which meant the libdir was set to something
like $vardir/lib.
|
| |_|/
|/| |
| | |
| | |
| | | |
when the configuration file is parsed. The bug is still
there, but I'm getting closer.
|
| | | |
|
| |/
|/|
| |
| | |
host are no longer marked as not exported.
|
|/ |
|
|
|
|
| |
different version of ruby
|
| |
|
|
|
|
|
|
|
| |
are running), and #918 (service tests fail when hddtemp is not installed).
Mostly, I just rewrote the service tests, but I cleaned up the cruft from the
Service class, too.
|
|\ |
|
| |
| |
| |
| | |
compatibility
|
|/
|
|
| |
and old client
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
there were enough problems fixing it that I decided something
more drastic needed to be done.
This uses the new Puppet::ResourceReference class to canonize
what a resource reference looks like and how to retrieve resources
via their references. Specifically, it guarantees that resource types
are always capitalized, even when they include '::' in them.
While many files are modified in this commit, the majority of changes are
quite small, and most of the changes are fixing the tests to use
capitalized types.
As we look at consolidating some of our resource types, we could consolidate
the ResourceReference stuff at the same time, but at least the
Puppet::Parser::ResourceReference class subclasses the main Puppet::ResourceReference
class.
|