Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/encrypted-data-bags' into encrypted_databags
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbednarz authored Sep 5, 2018
2 parents ef67bc0 + 105b22e commit 4374d70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions chef/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# Exception hierarchy for chef
# Copyright (c) 2010 Noah Kantrowitz <[email protected]>


class ChefError(Exception):
"""Top-level Chef error."""


class ChefServerError(ChefError):
"""An error from a Chef server. May include a HTTP response code."""

Expand All @@ -23,15 +21,12 @@ def from_error(message, code=None):
}.get(code, ChefServerError)
return cls(message, code)


class ChefServerNotFoundError(ChefServerError):
"""A 404 Not Found server error."""


class ChefAPIVersionError(ChefError):
"""An incompatible API version error"""


class ChefObjectTypeError(ChefError):
"""An invalid object type error"""

Expand Down
2 changes: 1 addition & 1 deletion chef/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def test_bad_key_raises(self):
for item in invalids:
self.assertRaises(
ValueError, ChefAPI, 'foobar', item, 'user')

def test_encryption(self):
api = self.load('encryption.rb')
self.assertEqual(api.encryption_version, '2')

0 comments on commit 4374d70

Please sign in to comment.