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

Add key/value end to end test #1219

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

kate-goldenring
Copy link
Contributor

Adds a test case to test the functionality of the key/value Rust SDK. The test checks both inter and intra request key/value actions.

Also, updated some of the README with the latest test suite changes and added ability to test http requests of all methods (not just GET).

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
@dicej
Copy link
Contributor

dicej commented Mar 2, 2023

I just did a quick scan, and it looks good so far.

General question: Why is this an end-to-end test as opposed to an integration test? I understand why the Postgres, MySQL, and Redis tests need to be end-to-end, since they require external dependencies, but I'm not seeing anything this test does that the existing integration test (https://github.com/fermyon/spin/tree/main/tests/http/key-value) can't do.

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
async fn checks(
metadata: AppMetadata,
_: Option<BufReader<ChildStdout>>,
_: Option<BufReader<ChildStderr>>,) -> Result<()> {
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you so much

@rajatjindal rajatjindal merged commit b0f6d64 into fermyon:main Mar 3, 2023
@rajatjindal
Copy link
Contributor

Hi @kate-goldenring i have merged this PR as there is a pending PR I need to rebase with changes done here.

jpflueger pushed a commit to jpflueger/spin that referenced this pull request Mar 3, 2023
* Add key-value end to end test

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>

* Share key-value test across integration and e2e tests

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>

---------

Signed-off-by: Kate Goldenring <kate.goldenring@fermyon.com>
Signed-off-by: Justin Pflueger <justin.pflueger@fermyon.com>
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.

None yet

3 participants