dagger-rs/crates/dagger-sdk/tests/standard_apis/directory.rs

18 lines
349 B
Rust
Raw Normal View History

2023-03-20 23:01:41 +01:00
use dagger_sdk::connect;
use pretty_assertions::assert_eq;
#[tokio::test]
async fn test_directory() {
let c = connect().await.unwrap();
let contents = c
.directory()
.with_new_file("/hello.txt", "world")
.file("/hello.txt")
.contents()
.await
.unwrap();
assert_eq!("world", contents)
}