mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2025-08-10 23:29:54 +02:00
Add base sdk
This commit is contained in:
18
tests/integration.rs
Normal file
18
tests/integration.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use rust::dagger;
|
||||
|
||||
#[test]
|
||||
fn example_container() {
|
||||
let client = dagger::connect().unwrap();
|
||||
let alpine = client.container().from("alpine:3.16.2").unwrap();
|
||||
let out = alpine
|
||||
.exec(dagger::ContainerExecOpts {
|
||||
args: vec!["cat", "/etc/alpine-release"],
|
||||
})
|
||||
.stdout()
|
||||
.unwrap();
|
||||
|
||||
assert_eq!("3.16.2", out);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user