mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-07-25 19:09:22 +02:00
tested full flow initially
This commit is contained in:
20
crates/dagger-sdk/tests/mod.rs
Normal file
20
crates/dagger-sdk/tests/mod.rs
Normal 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()))
|
||||
}
|
Reference in New Issue
Block a user