make_test_data

Function make_test_data 

Source
pub async fn make_test_data(
    client: &Client,
    bucket: &str,
    objects: impl IntoIterator<Item = TestObject>,
) -> Result<HashMap<String, TestObjectWithData>>
Expand description

Generate one or more test objects in a bucket.

Each object has a size specified. Random data will be generated for each object.

The return value upon success is the same test objects specified on input, but with test data included. The key to the hash table is the object key