tested full flow initially

This commit is contained in:
2023-02-05 23:44:06 +01:00
parent ec0d0b22e6
commit 7a008be59e
9 changed files with 151 additions and 46 deletions

View File

@@ -0,0 +1,20 @@
use dagger_sdk::client::connect;
#[test]
fn test_example_container() {
let client = connect().unwrap();
let alpine = client.container(None, None).from("alpine:3.16.2".into());
let out = alpine
.exec(
Some(vec!["cat".into(), "/etc/alpine-release".into()]),
None,
None,
None,
None,
)
.stdout();
assert_eq!(out, Some("3.16.2".to_string()))
}