Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop old consul version and implement new ACL (token) endpoints #61

Merged
merged 6 commits into from
Mar 20, 2024

Conversation

mbrulatout
Copy link
Contributor

@mbrulatout mbrulatout commented Mar 18, 2024

feat: remove consul 1.1 and OSX support

code-style: use ruff isort autofix

tests: add test utils for cleaner API output expected assertion

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.

tests: fix multi check service registration
Two PRs were merged in parallel and ended up breaking a test

tests: fix tests
This fixes multiversion tests, enables parallel tests and update the consul config file used for testing as well.

Mathias Brulatout added 4 commits March 18, 2024 13:43
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.
@mbrulatout mbrulatout changed the title New acl Drop old consul version and implement new ACL (token) endpoints Mar 18, 2024
2 PRs were merged in parallel and broke this test.
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.
Copy link
Contributor

@mougams mougams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few non blocking remarks.
Nice - I find it simpler than before

consul/base.py Show resolved Hide resolved
consul/base.py Show resolved Hide resolved
@mbrulatout mbrulatout merged commit 102167e into master Mar 20, 2024
10 checks passed
@mbrulatout mbrulatout deleted the new_acl branch March 20, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants