-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated exceptions to be a little less generic
- Loading branch information
Showing
17 changed files
with
566 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.22] - 2024-05-25 | ||
|
||
### Added | ||
|
||
- create_integration, delete_integration, and get_search methods. | ||
|
||
### Fixed | ||
|
||
- Updated exceptions to be a least a little less generic. | ||
|
||
## [1.0.21] - 2024-04-25 | ||
|
||
### Added | ||
|
||
- delete_user, edit_user, get_user, and get_users methods. | ||
|
||
### Changed | ||
|
||
- Log the first 2,000 characters of return text in debug mode. | ||
|
||
|
||
## [1.0.20] - 2024-04-24 | ||
|
||
### Changed | ||
|
||
- Updates to method documentation to note dependencies on specific Armis cloud versions. | ||
|
||
## [1.0.19] - 2024-04-24 | ||
|
||
### Added | ||
|
||
- _httpx_callback_request_raise_4xx_5xx method to be used as a callback method to the httpx.Client contructor. If we get a 401 from the cloud, this allows us to fetch another authorization token and raise the issue to tenacity to retry. | ||
- create_boundary and delete_boundary methods. | ||
|
||
### Changed | ||
|
||
- Begin changes to use the status codes exposed under httpx.codes (e.g. httpx.codes.OK). | ||
|
||
## [1.0.18] - 2024-04-23 | ||
|
||
### Added | ||
|
||
- get_sites and get_site methods. | ||
|
||
### Removed | ||
|
||
- get_boundaries_count method. | ||
|
||
## [1.0.17] - 2024-04-23 | ||
|
||
### Added | ||
|
||
- Initial release to the world. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Both the original source code and new contributions in this repository are released under the [3-Clause BSD license](https://spdx.org/licenses/BSD-3-Clause.html). | ||
|
||
Copyright ©2024-present Matthew Lange \<mmlange@gmail.com\>. | ||
|
||
# The 3-Clause BSD License | ||
|
||
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | ||
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | ||
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[pytest] | ||
pythonpath = "src" | ||
addopts = | ||
--durations=0 | ||
-rExXsP | ||
-vv | ||
--cov=armis | ||
--cov-report html:.coverage_report/html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
furl==2.1.3 | ||
httpx[http2,brotli]==0.27.0 | ||
httpx[http2, brotli]==0.27.0 | ||
msgspec==0.18.6 | ||
pendulum==3.0.0 | ||
tenacity==8.2.3 | ||
tenacity==8.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.