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

feat: Add services registration API to Client #340

Merged
merged 4 commits into from
Oct 25, 2024
Merged

feat: Add services registration API to Client #340

merged 4 commits into from
Oct 25, 2024

Conversation

masci
Copy link
Member

@masci masci commented Oct 25, 2024

Part of #335

  • Added client.core.services

Also in this PR:

  • remove the need to pass timeout to the client every single request. It can still be passed if one needs a custom value.
  • move common fixtures to global conftest.py to reduce duplication
  • removed scope=session so every e2e function has a fresh control plane to test

@coveralls
Copy link

Coverage Status

coverage: 67.329% (+0.3%) from 67.038%
when pulling 7edde21 on massi/client
into 3d156c8 on main.

self.items.pop(service_name)


class Core(Model):
Copy link
Collaborator

Choose a reason for hiding this comment

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

For now, core only has services -- hypothetically, what else do you think would go here in the future? 👀

Copy link
Member Author

Choose a reason for hiding this comment

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

Mainly sessions. Basically I'm moving under core all the client capabilities needed to talk to the ControlPlane.

Copy link
Collaborator

Choose a reason for hiding this comment

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

gotcha

Copy link
Member Author

Choose a reason for hiding this comment

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

The hope is we can direct users towards two directions: apiserver (managed deployments) and core (manual deployments) to map the user stories we have in the docs.

Copy link
Collaborator

@logan-markewich logan-markewich left a comment

Choose a reason for hiding this comment

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

Looks great! Love the test cleanup

@masci masci merged commit 042e9c6 into main Oct 25, 2024
10 checks passed
@masci masci deleted the massi/client branch October 25, 2024 16:17
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.

3 participants