Skip to content

Commit 46cda71

Browse files
committed
Update conformance tests to include key-value tests
Signed-off-by: Ryan Levick <[email protected]>
1 parent fb215b0 commit 46cda71

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/conformance-tests/src/main.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,22 @@ fn main() {
99

1010
for test in conformance_tests::tests(&tests_dir).unwrap() {
1111
println!("Running test '{}'", test.name);
12+
let mut services = Vec::new();
13+
for precondition in test.config.preconditions {
14+
match precondition {
15+
conformance_tests::config::Precondition::HttpEcho => {
16+
services.push("http-echo".into());
17+
}
18+
conformance_tests::config::Precondition::KeyValueStore(_) => {}
19+
}
20+
}
1221
let env_config = SpinCli::config(
1322
SpinConfig {
1423
binary_path: spin_binary.clone(),
1524
spin_up_args: Vec::new(),
1625
app_type: testing_framework::runtimes::SpinAppType::Http,
1726
},
18-
test_environment::services::ServicesConfig::new(test.config.services).unwrap(),
27+
test_environment::services::ServicesConfig::new(services).unwrap(),
1928
move |e| {
2029
let mut manifest =
2130
test_environment::manifest_template::EnvTemplate::from_file(&test.manifest)

0 commit comments

Comments
 (0)