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

test(spin): add more integration tests #181

Merged
merged 4 commits into from
Nov 15, 2023

Conversation

Mossaka
Copy link
Member

@Mossaka Mossaka commented Nov 13, 2023

This commit adds an integration test for spin-keyvalue using dynamic config file that was introduced by #179 and an integraion test for outbound redis introduced by #117

Closes #127

This commit adds an integration test for spin-keyvalue using dynamic config file that was introduced by deislabs#179 and an integraion test for outbound redis introduced by deislabs#117

Signed-off-by: jiaxiao zhou <[email protected]>
@Mossaka
Copy link
Member Author

Mossaka commented Nov 14, 2023

Could you please take a look? @jsturtevant

tests/workloads/spin-runtime-config.yaml Show resolved Hide resolved
@@ -223,7 +223,7 @@ impl SpinEngine {
let mut runtime_config = RuntimeConfig::new(PathBuf::from("/").into());
// Load in runtime config if one exists at expected location
if Path::new(RUNTIME_CONFIG_PATH).exists() {
runtime_config.merge_config_file(RUNTIME_CONFIG_PATH);
Copy link
Contributor

Choose a reason for hiding this comment

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

thought: We chatted about this yesterday, but we could make RUNTIME_CONFIG_PATH an env (defaults to the root) and set an env in the yaml that points to a different location. not blocking, just an option

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I remember this discussion. I can work on this in another PR. (nit: I prefer SPIN_RUNTIME_CONFIG_PATH)

tests/src/lib.rs Show resolved Hide resolved
@jsturtevant
Copy link
Contributor

LGTM

@Mossaka Mossaka merged commit 81d2443 into deislabs:main Nov 15, 2023
20 checks passed
@Mossaka Mossaka deleted the integration-test2 branch November 15, 2023 00: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.

spin shim needs more integration tests
2 participants