summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Replace __FILE__ with __dir__ and use safe operatorschefstyleTim Smith2020-09-083-4/+4
| | | | | | A few new chefstyle rules to improve readability here. Signed-off-by: Tim Smith <tsmith@chef.io>
* Optimize our requiresTim Smith2020-08-213-8/+8
| | | | | | Avoid requiring things that are already defined. Rubygems is very slow at traversing the filesystem. Signed-off-by: Tim Smith <tsmith@chef.io>
* Don't freeze the constants in the specsTim Smith2019-08-061-29/+30
| | | | | | We're abusing constants here. Kick this can down the road a bit. Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle fixesTim Smith2019-08-061-2/+4
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle autocorrectsTim Smith2019-08-062-94/+94
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Update copyrights and e-mailsTim Smith2018-07-304-9/+27
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* remove hashrocket syntaxLamont Granquist2018-06-262-39/+39
| | | | Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
* Sigh, the existing arguments are positional not kwargs.Noah Kantrowitz2018-05-301-0/+3
| | | | | | Make both syntaxes do the right thing. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* Merge branch 'master' into ssh-agentNoah Kantrowitz2018-05-292-4/+4
|\
| * Move mixlib-auth debugging to trace leveltm/loggingThom May2018-04-112-4/+4
| | | | | | | | Signed-off-by: Thom May <thom@chef.io>
* | Rework the ssh-agent signing logic to require an explicit flag to enable, ↵Noah Kantrowitz2018-05-291-7/+10
| | | | | | | | | | | | | | along with a lot of error checking. And some YARD comments because sigh. Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
* | make net-ssh optionalMatt Whiteley2017-09-061-1/+0
| | | | | | | | Signed-off-by: Matt Whiteley <mwhiteley@fastly.com>
* | CHEF-2381Matt Whiteley2017-09-061-0/+22
|/ | | | Signed-off-by: Matt Whiteley <mwhiteley@fastly.com>
* [CLOUD-319] Make mixlib-log an optional dependencyRyan Cragun2017-04-203-3/+56
| | | | | | | | | | This change makes mixlib-log an optional dependency. When it's available in the LOAD_PATH it will be used by default, otherwise, all logging will will be forwarded to a null logger that does nothing. This is useful for cases where small utilities can consume mixlib-authentication and not have to pull in additional gems. Signed-off-by: Ryan Cragun <me@ryan.ec>
* Chefstyle fixesTim Smith2016-10-131-2/+2
| | | | Signed-off-by: Tim Smith <tsmith@chef.io>
* Chefstyle and modernisev1.4.1Thom May2016-06-084-182/+180
| | | | Signed-off-by: Thom May <thom@may.lt>
* Make hashing functions backwards compatible with mixlib-authentication 1.3Jay Mundrawala2015-12-161-0/+24
| | | | | | | I had assumed that those functions were only used internally to mixlib-authentication. It seems that oc-chef-pedant tests use these functions. This patch makes the function backwards compatible by defaulting to using SHA1 for the digester if one is not supplied
* Update 1.3 message to match the new one proposed from the RFC processjdm/v1.3-rfcJay Mundrawala2015-12-051-11/+9
| | | | We no longer has user id and path as it is not required.
* Our signing versions only support 1 hashing algorithm eachJay Mundrawala2015-12-051-121/+1
| | | | This removes SHA1 from v1.3. v1.0 and v1.1 support SHA1 only
* Use DEFAULT_SERVER_API_VERSION in all the placesjdm/sign-v1.3Jay Mundrawala2015-11-302-0/+10
|
* Sign x-ops-server-api-version headerJay Mundrawala2015-11-301-15/+27
|
* Added signature verification for signing version 1.3Jay Mundrawala2015-11-301-2/+107
|
* Add signing algorithm v1.3Jay Mundrawala2015-11-301-0/+115
|
* Fix raise_error warningsJay Mundrawala2015-11-101-3/+3
|
* Convert specs to RSpec 3.3.2 syntax with TranspecJay Mundrawala2015-11-102-53/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This conversion is done by Transpec 3.1.1 with the following command: transpec * 26 conversions from: obj.should to: expect(obj).to * 17 conversions from: == expected to: eq(expected) * 14 conversions from: obj.should_not to: expect(obj).not_to * 7 conversions from: obj.should_receive(:message) to: expect(obj).to receive(:message) * 5 conversions from: lambda { }.should to: expect { }.to * 1 conversion from: lambda { }.should_not to: expect { }.not_to For more details: https://github.com/yujinakayama/transpec#supported-conversions
* Get tests to runJay Mundrawala2015-11-101-1/+2
|
* add a test for mixin usage since it's supported alsoDaniel DeLeo2012-08-021-3/+14
|
* make proto version switching work correctly with signing_objectDaniel DeLeo2012-08-021-5/+7
|
* change default sign version back to 1.0Daniel DeLeo2012-07-311-69/+71
| | | | | | We need to wait until Chef 11, when we can make a break to change to 1.1, because this relies on the server side supporting 1.1 to work correctly.
* version 1.2.1: fix for parsing 1.0 client signing descriptions which do not ↵Tim Hinderliter2012-05-141-35/+69
| | | | contain 'algorithm': default to 'sha1' if it's not there.
* added cb to spec author blockChristopher Brown2012-05-091-0/+1
|
* more upfactor of common dataChristopher Brown2012-05-091-23/+24
|
* upfactor some of the common object initializationChristopher Brown2012-05-091-42/+15
|
* fixes for long user idChristopher Brown2012-05-091-30/+122
|
* switch to rspec2Daniel DeLeo2011-03-031-4/+0
|
* Fixing spec testsChris Walters2010-10-081-3/+2
|
* [CHEF-761] initialize with the request to access normalized headersDaniel DeLeo2010-07-212-1/+19
| | | | | | | | * Can now create the signature verification object w/ the request and then access values computed by the HTTPAuthenticationRequest object. * created a #authenticate_reqest method that can be used when signature verification is initialized w/ the request * #authenticate_user_request works as before
* [CHEF-761] extract header handling into its own classDaniel DeLeo2010-07-213-3/+152
|
* [CHEF-761] provide visibility into time skew related auth failuresDaniel DeLeo2010-07-211-4/+38
| | | | | higher layers will use this to inform the user if they got a 401 b/c of incorrect clock on the client
* Hashing path in request signatureChris Walters2010-02-271-11/+23
|
* repro the bug in PL-450 as a spec testDaniel DeLeo2010-02-261-0/+16
|
* fixed spec tests for mixlib-authenticationTim Hinderliter2010-02-221-13/+17
|
* Modified to handle both Merb and Passenger, as they pass the File part of aTim Hinderliter2009-11-192-0/+289
multipart form upload differently. Added unit tests for this and other behaviors.