Repository navigation
Add control plane integration tests - #223
Closed
austin-denoble wants to merge 1 commit into
Closed
austin-denoble wants to merge 1 commit into
austin-denoble wants to merge 1 commit into
Conversation
Contributor
|
is this for new version of the SDKs or old? |
Member
Author
@jackpertschuk Old technically, but we'll be updating them around the changes for the new SDK. |
NishchayMahor
pushed a commit
to NishchayMahor/python-sdk-1
that referenced
this pull request
Sep 22, 2026
pinecone-io#108) (pinecone-io#223) Adds the admin Invites namespace: `admin.invites.list/create/describe/ delete/resend`, an `AdminAdapter.to_invite`/`to_invite_list` pair, a lazy `Admin.invites` property, and a docs section. Follows the Users resource (pinecone-io#107) exactly, including its ratified conventions: `limit` is the per-page query parameter (1-100), not a total-items cap, and email format is the server's business, not the SDK's. `create()` accepts `RoleBindingInput` models and plain dicts interchangeably and normalizes both to one wire shape, omitting `resource_id` for organization scope rather than sending null. Every client-side rejection names the offending entry's index, because the server's 400 cannot say which one it tripped over. `list()` omits processed invites and `resend()` can 429; both are documented as warnings, since an agent that misses either will read absence as deletion or retry a rate limit in a tight loop.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Our Python client doesn't have true integration tests. Currently, we have tests under
/integ/test_index.pywhich mock all the requests and responses and primarily stress the connections between various elements of the client codebase. Fleshing out integration tests would help us have more confidence when making changes to the Python client, especially when involving the network layer.Solution
The plan is to split between control plane and data plane tests. For PRs I thought it'd be reasonable to split things out, and then finish off with CI changes to bring everything together.
/tests/integration/control/test_create_index.pytest_configure_index.pytest_describe_index.pytest_list_indexes.pyCurrently, the entire control plane suite completes in about ~35 seconds or so.
sdk-python-testingcurrently has a Pod Limit of 7, and these seem to complete fine, but I'd like to get quote bumped to reduce possibility of flaking.**Question: ** Should I look at rolling some collection tests here as well?
Type of Change
Test Plan
Currently, these tests aren't being run in CI. That will come in a following PR. The environment variables that are used will be setup in GitHub secrets for the repo/workflows.
To test locally, you'll need to set environment variables and then call
pytest: