-
Notifications
You must be signed in to change notification settings - Fork 36
test(flagd): Add support for e2e tests to use version.txt #470
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
Conversation
* These tests have not passed in some time. They fail because net framework handles grpc connections differently to net core. Signed-off-by: Kyle Julian <[email protected]>
* The tests will pick up the version of the flagd testbed container to run from the submodule directly Signed-off-by: Kyle Julian <[email protected]>
This reverts commit 71ddccf. Signed-off-by: Kyle Julian <[email protected]>
Summary of ChangesHello @kylejuliandev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request aims to enhance the end-to-end testing infrastructure by upgrading the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the flagd-testbed
submodule and adapts the e2e tests to read the version from the new version.txt
file. The changes are logical and well-contained. I've made a few suggestions to improve the code:
- Use asynchronous file I/O in the async test hooks for better performance and consistency.
- Remove the Byte Order Mark (BOM) that was accidentally introduced in one of the project files to prevent potential tooling issues.
The author has already noted the code duplication between the ProcessTest
and RpcTest
projects as a follow-up task, which is a good observation. Overall, this is a good step towards keeping the test infrastructure up to date.
...b.Providers.Flagd.E2e.ProcessTest/OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest.csproj
Outdated
Show resolved
Hide resolved
test/OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest/Steps/TestHooks.cs
Outdated
Show resolved
Hide resolved
test/OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest/Steps/TestHooks.cs
Outdated
Show resolved
Hide resolved
Signed-off-by: Kyle Julian <[email protected]>
This PR
Updates the
flagd-testbed
submodule to v0.5.18, the first version which introduced theversion.txt
file. Prior to this we were targetingv0.5.6
. I had to tweak the included feature files as new additions were added. I think a separate PR is needed to add the missing e2e tests.Related Issues
Fixes #306
Notes
Follow-up Tasks
These tests may not be achievable yet if the dotnet flagd provider has not got support for the functionality.
The rpc and process project split does not give us much, so I think the next immediate change should be to merge both projects into one.
The later
flagd-testbed
gherkin files leverage attribute hooks, like@rpc
and@process
to mark tests for each type of flagd connection. The existing tests should be updated to utilise these hooks.How to test