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: make client test independet from the api #302

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

aepfli
Copy link
Member

@aepfli aepfli commented Nov 9, 2024

Our client_test is not a unit test; we rely on the API to set the provider regularly, and within the code, we rely on the singleton. With these changes, we mock the API interface and provide it to the client's existing factory method. So each of the tests is independent from the others.

There are still some tests, which i would rather declare as e2e or integration tests, which i did not tackle, or where i do think it makes sense to keep them as is.

Signed-off-by: Bernd Warmuth <[email protected]>
When triggering an evaluation while the provider is in "not ready" or "fatal state" the sdk shall
return an appropriate error.

Signed-off-by: Bernd Warmuth <[email protected]>
@aepfli aepfli marked this pull request as ready for review November 20, 2024 13:00
@aepfli aepfli requested a review from a team as a code owner November 20, 2024 13:00
@aepfli
Copy link
Member Author

aepfli commented Nov 20, 2024

@open-feature/sdk-golang-maintainers @open-feature/sdk-golang-approvers @toddbaert @warber @beeme1mr as #299 is merged, I also do think this is ready to be reviewed

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