summaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixing ifconfig warnings generated on OS XLuke Kanies2009-04-201-3/+13
| | | | | | | | The interface collection regex was leaving trailing ':' characters on the interface names, which meant individual interfaces weren't quite right. Signed-off-by: Luke Kanies <luke@madstop.com>
* correctly compare values - fixes #2021Peter Meier2009-04-071-5/+70
| | | | | | | | | | | | | | this ensures we can compare all kind of objects and not only instances of strings. It compares strings in a case-insensitive manner and converts symbols to strings. introducing this behavior required that we introduce a convert util method, to ensure that we convert the value correctly. Introduced this method in other places as well. This behavior change requires that we drop one test, which have become anyway deprecated.
* Fixing #1927 - failing facts don't kill FacterLuke Kanies2009-02-041-0/+6
| | | | | | Facts that raise exceptions just return nil now. Signed-off-by: Luke Kanies <luke@madstop.com>
* Renaming Facter::Macosx to Facter::Util::MacosxLuke Kanies2009-01-271-13/+13
| | | | | | This name change just reflects the file location. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing #1838 - profiler failures don't throw exceptionsLuke Kanies2009-01-271-0/+47
| | | | | | | Also added tests to the macosx code; it's much cleaner and actually tested now. Signed-off-by: Luke Kanies <luke@madstop.com>
* Added network factJames Turnbull2009-01-271-0/+6
|
* Fixed #1870 - Format all subnet masks as human-readableJames Turnbull2009-01-271-0/+17
|
* Refactor - rename ipmess to interfacesPaul Nasrat2009-01-241-1/+1
|
* Fix bug #1870 and add interface fact support for darwin systemsPaul Nasrat2009-01-152-1/+37
|
* Refactoring the IP support, and fixing #1846.Luke Kanies2009-01-153-8/+71
| | | | | | | | | | | | | | | | I've made the IPMess stuff a lot less messy, and refactored a lot of the util/ip module, including naming it more sensibly. The biggest changes are that I moved the big case statement into a constant and then used a bit of dispatch-style logic to use it, and I eliminated a bunch of duplicate code in the ipmess.rb file. Added some test data for FreeBSD and fixed a bug in my map logic pointed out by Paul Nasrat. I've also fixed #1846, in that the interface list now s/:/_/g. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing indentation everywhereLuke Kanies2009-01-154-8/+5
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Removing the vendor/ gems.Luke Kanies2009-01-151-10/+1
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Added a Process.waitall thread when there's a timeout, to avoid zombies.Luke Kanies2008-08-181-0/+11
| | | | Without this call, every time there's a timeout, we'll get a zombie.
* Merge commit 'pnasrat/tickets/1422'Luke Kanies2008-08-181-2/+2
|\
| * Facter fix #1422, no default timeoutPaul Nasrat2008-08-181-2/+2
| |
* | Add unit rspec tests for ticket 1425Paul Nasrat2008-08-132-0/+13
| |
* | Extract ifconfig output to data directoryPaul Nasrat2008-08-132-22/+22
| |
* | Add sample test and strawman solution for IP parsing codePaul Nasrat2008-08-111-0/+30
| |
* | Add module level tests for Facter::IPAddressPaul Nasrat2008-08-111-0/+18
|/
* Retaining 'timeout' as the settor, but using 'limit' as the getter.Luke Kanies2008-06-202-5/+19
| | | | | | | I don't like using Fact.add(:fact, :limit => 5), so I added a little extra code to allow us to continue using ':timeout => 5', but use 'limit' for retrieving the value, to avoid the conflict Steve Hajducko is seeing.
* Changed 'timeout' option to 'limit'Steven Hajducko2008-06-192-6/+6
| | | | | This was done to avoid a possible variable scoping issue that was occuring on some AIX systems.
* Refactored so each fact resolution can specify a separate timeout,Luke Kanies2008-06-173-7/+56
| | | | | | but the default is still 0.5. Set the timeout on the AIX kernelrelease fact to 5 seconds.
* Removing old test/unit tests.Luke Kanies2008-05-201-582/+0
|
* Adding a timeout to fact retrieval, fixing #56.Luke Kanies2008-05-201-0/+7
| | | | | The timeout is currently 0.5 seconds, which should generally be enough time.
* Switching to a search path registration system.Luke Kanies2008-05-163-26/+32
| | | | | Facter no longer knows anything about Puppet, so there's no inter-dependency issue.
* Moving the puppet-related loading tests to an integration test.Luke Kanies2008-05-162-31/+26
| | | | | | | | | I was previously creating a mock Puppet class, and this actually uses Puppet's code. Note that this use of Puppet creates some additional ordering problems, which I'm going to fix in the next commit by undoing all of this work. :)
* Retrieval of fact values now autoloads facts.Luke Kanies2008-05-161-1/+6
| | | | | I was only autoloading in certain circumstances, but it now autoloads any time you try to load a fact directly.
* Switching Facter to using the new loader.Luke Kanies2008-05-154-1/+100
| | | | | This should make it possible to move all facts to separate files and only load them on demand.
* Fixing the test so it doesn't break other tests.Luke Kanies2008-05-151-1/+13
| | | | | | It creates a constant that affects loader behaviour, which causes other tests to break if the constant is present but not functional.
* Moving all of the support classes to util/.Luke Kanies2008-05-156-87/+92
| | | | | This makes it easier for our loader to distinguish between code that Facter uses and new facts.
* Creating a 'loader' class to handle loading facts for the collection.Luke Kanies2008-05-151-0/+190
|
* Adding the 'each' method back into Facter.Luke Kanies2008-05-142-0/+51
| | | | | It's used by iClassify, and maybe others. I haven't made Facter enumerable again, but the collection is.
* Moving Facter's container behaviour into a separate class.Luke Kanies2008-05-143-28/+189
| | | | | | | | There's now no @@facts instance variable; instead, there's a collection, and it's responsible for keeping references to all of the facts. All of the old interface methods just delegate to the collection.
* Splitting the instance code into a Fact class.Luke Kanies2008-05-133-24/+141
| | | | | This allows the Facter class to become a module, and it is now much simpler.
* Adding all of the tests for the Facter::Resolution class.Luke Kanies2008-05-131-0/+184
|
* Reorganizing my new tests so they match the autotest discovery.Luke Kanies2008-05-132-1/+9
|
* Splitting the different classes in Facter up, and adding some tests.Luke Kanies2008-05-132-23/+88
| | | | | The Confine and Resolution classes are now in separate files, and I've got tests for Confine.
* removing .swp fileLuke Kanies2008-02-171-0/+0
|
* Switching from test/unit to rspec, and fixing a coupleLuke Kanies2008-02-175-0/+697
of small test failures.