summaryrefslogtreecommitdiff
path: root/spec/unit/network/authorization_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-01-24(PUP-1151) Respond with 404 when path not knownAndrew Parker1-1/+11
The v2.0 api implementation had a type that was not caught by any tests. This fixes that issue (a typo) and adds a test that would have shown the problem.
2013-03-05Fix order-dependent test failure in network/authorization_specNick Lewis1-0/+4
This test was assuming the singleton auth config hadn't been created. A previous test does create one, so this test was failing. Now, we make sure the singleton instance is nil before testing.
2012-09-26(Maint) Remove rspec from shebang lineJeff McCune1-1/+1
Without this patch Ruby 1.9 is still complaining loudly about trying to parse the spec files. The previous attempt to clean up this problem in edc3ddf works for Ruby 1.8 but not 1.9. I'd prefer to remove the shebang lines entirely, but doing so will cause encoding errors in Ruby 1.9. This patch strives for a happy middle ground of convincing Ruby it is actually working with Ruby while not confusing it to think it should exec() to rspec. This patch is the result of the following command run against the source tree: find spec -type f -print0 | \ xargs -0 perl -pl -i -e 's,^\#\!\s?/(.*)rspec,\#! /usr/bin/env ruby,'
2012-07-31Refactor AuthConfig parsing into AuthConfigParserPatrick Carlisle1-0/+20
This pulls parsing and file management out of the AuthConfig class. It introduces the AuthConfigParser class which is responsible for parsing and returning a new AuthConfig instance. Reloading the AuthConfig from a changed auth.conf is pulled out into Puppet::Network::Authorization, which already had partial responsibility for this. Paired-with: Jeff McCune <jeff@puppetlabs.com>