Skip to content

Commit 10e5292

Browse files
authored
Merge pull request #189 from rylev/factors
Update to latest Spin version with Factors
2 parents 7db3db7 + 6919450 commit 10e5292

File tree

12 files changed

+1775
-9923
lines changed

12 files changed

+1775
-9923
lines changed

Cargo.lock

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

conformance-tests/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "conformance-tests"
2+
name = "shim-conformance-tests"
33
version.workspace = true
44
edition.workspace = true
55
license.workspace = true
@@ -9,7 +9,7 @@ homepage.workspace = true
99

1010
[dependencies]
1111
anyhow = "1.0"
12-
conformance-tests = { git = "https://github.com/fermyon/conformance-tests", ref = "db0ee32a825561d35f884a246e1d390134d78823" }
12+
conformance-tests = { git = "https://github.com/fermyon/conformance-tests", rev = "6ec9e9d95e3b333de85685131337c8864c1af67d" }
1313
log = "0.4"
14-
nix = "0.28"
15-
test-environment = { git = "https://github.com/fermyon/conformance-tests", ref = "db0ee32a825561d35f884a246e1d390134d78823" }
14+
nix = { version = "0.29", features = ["signal", "process"] }
15+
test-environment = { git = "https://github.com/fermyon/conformance-tests", rev = "6ec9e9d95e3b333de85685131337c8864c1af67d" }

conformance-tests/src/main.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ fn main() {
2222
.next()
2323
.expect("expected second arg to be path to ctr binary")
2424
.into();
25-
conformance_tests::run_tests(move |test| run_test(test, &spin_binary, &ctr_binary)).unwrap();
25+
let config = conformance_tests::Config::new("canary");
26+
conformance_tests::run_tests(config, move |test| {
27+
run_test(test, &spin_binary, &ctr_binary)
28+
})
29+
.unwrap();
2630
}
2731

2832
fn run_test(
@@ -31,23 +35,26 @@ fn run_test(
3135
ctr_binary: &std::path::Path,
3236
) -> anyhow::Result<()> {
3337
println!("running test: {}", test.name);
34-
let mut services = vec!["registry".into()];
38+
let mut services = vec!["registry"];
3539
for precondition in &test.config.preconditions {
3640
match precondition {
3741
conformance_tests::config::Precondition::HttpEcho => {
38-
services.push("http-echo".into());
42+
services.push("http-echo");
3943
}
4044
conformance_tests::config::Precondition::KeyValueStore(k) => {
4145
if k.label != "default" {
4246
panic!("unsupported label: {}", k.label);
4347
}
4448
}
4549
conformance_tests::config::Precondition::TcpEcho => {
46-
services.push("tcp-echo".into());
50+
services.push("tcp-echo");
4751
}
4852
conformance_tests::config::Precondition::Sqlite => {}
4953
conformance_tests::config::Precondition::Redis => {
50-
services.push("redis".into());
54+
services.push("redis");
55+
}
56+
conformance_tests::config::Precondition::Mqtt => {
57+
services.push("mqtt");
5158
}
5259
}
5360
}

0 commit comments

Comments
 (0)