{"ref":"refs/heads/ticket/master/10197_add_authentication_support_to_classify","commits":[{"author":{"name":"Jeff McCune","email":"f3e731dfa293c7a83119d8aacfa41b5d2d780be9@puppetlabs.com"},"url":"https://api.github.com/repos/jeffmccune/puppetlabs-cloud-provisioner/commits/bbfd797d0f9c50b3d86e158aff0d190acfcc0320","message":"(#10197) WIP Add HTTP authentication to classify action\n\nREVISIT: Remaining work: ENV[] support in default_to blocks for the user\nand password options.\n\nWithout this patch applied the puppet node classify action does not\nsupport HTTP authentication.\n\nThis patch provides basic client authentication using two additional\ncommand line options.  This options are truly optional and default to\nnil.  Authentication will not be used if the options are not provided.\n\nThe patch also moves all of the HTTP client requests into a self\ncontained method to centralize the authentication logic.  This will have\nthe added benefit of making it easier to mock and test HTTP API calls in\nunit testing.  The additional method is named http_request to model the\nhttp.request method.  The new method automatically determines if it\nneeds to issue a GET or POST request and will process any JSON responses\nprovided by the REST API.\n\nSpec tests have been updated for the option parsing for the classify\naction.","sha":"bbfd797d0f9c50b3d86e158aff0d190acfcc0320"}],"head":"bbfd797d0f9c50b3d86e158aff0d190acfcc0320","size":1,"push_id":48518200}