summaryrefslogtreecommitdiff
path: root/spec/integration/network/authconfig_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-01-13(PUP-1151) Authorize v2 api requestsAndrew Parker1-4/+4
This commit does several things, all in order to make authorizing API V2 requests a bit easier: * Renames /v2 to /v2.0, which was chosen because it doesn't conflict with a legal environment name in the V1 API. * Adds route chaining so that a handler can deal with a request prefixed with /v2.0 and then continue on to another route * Changes how calls to authorization are handled so that full paths are checked rather than indirection/key pairs. * Introduces an authorization step in the /v2.0 request chain. This is currently limited to only handle GET requests (seen as find in auth.conf).
2013-05-14(#20677) Add tests to ensure configuration errors are raised as expectedAnton Lofgren1-0/+19
I also took the liberty of adding a add_raw_stanza helper function. It doesn't really do much, but it seems like a good idea to me to keep the specs as clean as possible. Maybe having two separate cases for allow & allow_ip is a bit overzealous, but I guess the overhead is minimal.
2012-07-31Refactor AuthConfig parsing into AuthConfigParserPatrick Carlisle1-12/+9
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>
2012-07-31Merge the old RestAuthConfig specs into the specs for AuthConfigPatrick Carlisle1-1/+0
Since the underlying classes have been merged it doesn't make sense to have separate spec files. Paired-with: Jeff McCune <jeff@puppetlabs.com>
2012-07-31Rename rest_authconfig_spec to authconfig_specPatrick Carlisle1-0/+242
Paired-with: Jeff McCune <jeff@puppetlabs.com>