-
Notifications
You must be signed in to change notification settings - Fork 18
Comparing changes
Open a pull request
base repository: criteo/py-consul
base: v1.3.0
head repository: criteo/py-consul
compare: master
Commits on Mar 15, 2024
-
code-style & ci: update workflow
Move from black/isort to ruff format and ruff linter "I" rules Use uv and tox-uv for faster dependencies installation
Configuration menu - View commit details
-
Copy full SHA for 261e9e0 - Browse repository at this point
Copy the full SHA 261e9e0View commit details
Commits on Mar 18, 2024
-
feat: Add an extra_checks param to service registration
Without breaking compatibility, an optional extra_checks list of Checks allows us to register multiple checks during service registration. Note that this was still possible through check registration but requires multiple API calls.
Configuration menu - View commit details
-
Copy full SHA for 52ccd85 - Browse repository at this point
Copy the full SHA 52ccd85View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4bd129 - Browse repository at this point
Copy the full SHA a4bd129View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1098ae - Browse repository at this point
Copy the full SHA d1098aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d71060 - Browse repository at this point
Copy the full SHA 2d71060View commit details -
This commit introduces multi-version tests. Due to the fact that tests were running on consul 1.1.0, some tests have been temporarily disabled due to issues with newer API. Will be fixed other commits
Configuration menu - View commit details
-
Copy full SHA for 45c8d6a - Browse repository at this point
Copy the full SHA 45c8d6aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a03af26 - Browse repository at this point
Copy the full SHA a03af26View commit details
Commits on Mar 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 88981a7 - Browse repository at this point
Copy the full SHA 88981a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 009cbe4 - Browse repository at this point
Copy the full SHA 009cbe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72463de - Browse repository at this point
Copy the full SHA 72463deView commit details -
acl: re-implement some basic ACL endpoint
Due to breaking changes within the ACL API, most endpoints had to be reimplemented. This commit introduces the following full implementation: - `acl list` - `acl read` - `acl delete` - `acl clone` `acl create` and `acl update` ared also introduced but currently have limitations since policies and roles aren't properly supported yet.
Configuration menu - View commit details
-
Copy full SHA for 710e0e2 - Browse repository at this point
Copy the full SHA 710e0e2View commit details -
tests: fix multi check service registration
2 PRs were merged in parallel and broke this test.
Configuration menu - View commit details
-
Copy full SHA for 62c9ea2 - Browse repository at this point
Copy the full SHA 62c9ea2View commit details -
Moved and extended the should_skip function + fixed some tests Enable parallel execution which removes the need to cleanup things after a test. Moved the ACL tests in a specific file. Fixtures are now function scoped. This *truly* enables multi-version tests.
Configuration menu - View commit details
-
Copy full SHA for 102167e - Browse repository at this point
Copy the full SHA 102167eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8e2679 - Browse repository at this point
Copy the full SHA c8e2679View commit details -
Configuration menu - View commit details
-
Copy full SHA for 45caf6f - Browse repository at this point
Copy the full SHA 45caf6fView commit details
Commits on Mar 27, 2024
-
code-style: reorganize the repository
While the diff is pretty large, this commit is just about splitting the base.py and its associated test file into various scope-restricted files. The api folder is also introduced. This will ease the development/reviews
Configuration menu - View commit details
-
Copy full SHA for 37a5dd1 - Browse repository at this point
Copy the full SHA 37a5dd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83149e1 - Browse repository at this point
Copy the full SHA 83149e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec68f70 - Browse repository at this point
Copy the full SHA ec68f70View commit details -
fix: fix package publishing due to conflicting content type
README was in markdown while CHANGELOG was in reStructuredText. Move the CHANGELOG file to markdown format and specify content type during package build. Added package discovery to include sub folders and exclude test files
Configuration menu - View commit details
-
Copy full SHA for 48b3908 - Browse repository at this point
Copy the full SHA 48b3908View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6ac8410 - Browse repository at this point
Copy the full SHA 6ac8410View commit details -
Configuration menu - View commit details
-
Copy full SHA for 735a761 - Browse repository at this point
Copy the full SHA 735a761View commit details
Commits on Mar 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 232dd9a - Browse repository at this point
Copy the full SHA 232dd9aView commit details
Commits on May 15, 2024
-
Refactor acl_consul fixture (#72)
This change is made in preparation for future releases, anticipating the likelihood of deploying multiple instances via Docker.
Configuration menu - View commit details
-
Copy full SHA for 7501962 - Browse repository at this point
Copy the full SHA 7501962View commit details -
Introduce policy list/read capabilities (#70)
- ACL endpoint change, consul.acl is now consul.acl.token - add consul.acl.policy.list and acl.policy.read
Configuration menu - View commit details
-
Copy full SHA for 579a991 - Browse repository at this point
Copy the full SHA 579a991View commit details -
Configuration menu - View commit details
-
Copy full SHA for c81f7d2 - Browse repository at this point
Copy the full SHA c81f7d2View commit details -
ci: update github actions (#74)
The main workflow now has an appropriate name and the fail-fast strategy is disabled, allowing linting and testing steps to continue on each python version. The tagged release workflow do not run linters and tets anymore. Co-authored-by: Mathias Brulatout <m.brulatout@criteo.com>
Configuration menu - View commit details
-
Copy full SHA for 93df72e - Browse repository at this point
Copy the full SHA 93df72eView commit details
Commits on May 23, 2024
-
Enhance Token Creation with Policy Support (#76)
- Implement creation of policies. - Integrate policy addition during token creation.
Configuration menu - View commit details
-
Copy full SHA for 4042528 - Browse repository at this point
Copy the full SHA 4042528View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32570c2 - Browse repository at this point
Copy the full SHA 32570c2View commit details
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c1b120b - Browse repository at this point
Copy the full SHA c1b120bView commit details
Commits on Jul 3, 2024
-
Merge pull request #79 from zanloy/master
Add token authorization to Agent.force_leave
Configuration menu - View commit details
-
Copy full SHA for 98be675 - Browse repository at this point
Copy the full SHA 98be675View commit details
Commits on Aug 27, 2024
-
Test using consul container instead of plain binaries stored in the r…
…epo (#80) * remove deprecated setuptools test command * tests: replace consul binary execution with docker containers Drop support for 1.13 and 1.15 (partially for convenience as they're not in the hashicorp docker repo). We now also capture container logs and store them in a logs/ folder. Each test will have its own consul log file. A few linter changes required due to a ruff upgrade. * tests: move conftest.py up a level to have logs for all tests * fix KO and flaky tests * fix(avoid) some more flakyness * revert fix + unset consul token on local env with an autouse fixture * split conftest.py to avoid some cyclic import * remove consistent hack --------- Co-authored-by: Mathias Brulatout <m.brulatout@criteo.com>
Configuration menu - View commit details
-
Copy full SHA for 8e0e012 - Browse repository at this point
Copy the full SHA 8e0e012View commit details
Commits on Aug 28, 2024
-
Replace deprecated token query param by X-Consul-Token header (#81)
* tests: error handling (retry) of container startup * api: use X-Consul-Token instead of token query parameter The token parameter throws a warning. It should have been removed in Consul 1.17, but somehow it's still supported. --------- Co-authored-by: Mathias Brulatout <m.brulatout@criteo.com>
Configuration menu - View commit details
-
Copy full SHA for e2b1dbb - Browse repository at this point
Copy the full SHA e2b1dbbView commit details
Commits on Sep 27, 2024
-
feat: add replace_existing_checks option to Catalog.register() (#85)
* feat: add replace_existing_checks option to Catalog.register() - Introduced `replace_existing_checks` parameter in the `register()` method to allow deletion of missing health checks from the request. - Ensures idempotent registration of services and their checks without needing manual deregistration of checks.
Configuration menu - View commit details
-
Copy full SHA for 2a59642 - Browse repository at this point
Copy the full SHA 2a59642View commit details -
Configuration menu - View commit details
-
Copy full SHA for a435112 - Browse repository at this point
Copy the full SHA a435112View commit details
Commits on Oct 1, 2024
-
feat: add replace_existing_checks option to agent.service.register() (#…
…87) * revert: add replace_existing_checks option to Catalog.register() this param is for agent.service.register * feat: add replace_existing_checks option to agent.service.register() - Introduced `replace_existing_checks` parameter in the `register()` method to allow deletion of missing health checks from the request. - Ensures idempotent registration of services and their checks without needing manual deregistration of checks. * Release version 1.5.3
Configuration menu - View commit details
-
Copy full SHA for daac265 - Browse repository at this point
Copy the full SHA daac265View commit details
Commits on Nov 7, 2024
-
Partial typing annotation support + add mypy (#82)
* cb: rename bool callback to boolean This avoids conflicting with bool type for further type annotations * code-style: add mypy * code-style: mypy: fix no-untyped-call * code-style: mypy: add simple types * mypy: exclude setup.py * mypy: fix 3.11/3.12 typing issue * mypy: move tox dir to avoid type issues * tests: increase min duration in reports * mypy: add setuptools types --------- Co-authored-by: Mathias Brulatout <m.brulatout@criteo.com>
Configuration menu - View commit details
-
Copy full SHA for abea3ff - Browse repository at this point
Copy the full SHA abea3ffView commit details -
ci: add 3.13 and drop support for EOL 3.8 (#89)
* ci: add 3.13 and drop support for EOL 3.8 * ci:update tox envlist --------- Co-authored-by: Mathias Brulatout <m.brulatout@criteo.com>
Configuration menu - View commit details
-
Copy full SHA for 7d93521 - Browse repository at this point
Copy the full SHA 7d93521View commit details
Commits on Nov 25, 2024
-
Add support for honoring additional arguments in consul.Consul() (#90)
* Add support for honoring the host and port arguments in consul.Consul() * honor the scheme and verify arguments as well * fix lint * forgot to actually run tox after pulling in the linter suggestions --------- Co-authored-by: Emma May <emma.may@logicmonitor.com>
Configuration menu - View commit details
-
Copy full SHA for c115896 - Browse repository at this point
Copy the full SHA c115896View commit details
Commits on Jan 9, 2025
-
Improve robustness of JSON decoding (#91)
* code-style: update json CB To avoid too-many-branches in next review. * Improve robustness of JSON decoding If JSON decoding fails, if a field is missing, or if there are no fields, a ConsulException is returned. * Bump CHANGELOG.md
Configuration menu - View commit details
-
Copy full SHA for 3c0413f - Browse repository at this point
Copy the full SHA 3c0413fView commit details
There are no files selected for viewing
This file was deleted.