blob: 3701e4567cce416db884ce29c1b03d5e4c946ffc [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
include: [
"//src/sys/test_runners/rust/default.shard.cml",
"sys/component/realm_builder.shard.cml",
"syslog/client.shard.cml",
],
program: {
binary: "bin/storage_admin_integration_test",
},
children: [
{
name: "memfs",
url: "fuchsia-pkg://fuchsia.com/storage_integration_test#meta/memfs.cm",
},
],
capabilities: [
{
storage: "data",
from: "#memfs",
backing_dir: "memfs",
storage_id: "static_instance_id_or_moniker",
},
],
use: [
{
protocol: "fuchsia.sys2.StorageAdmin",
from: "#data",
},
{
protocol: "fuchsia.sys2.EventSource",
from: "parent",
},
{
event: [ "destroyed" ],
from: "framework",
},
{
event_stream_deprecated: "DestroyedStorageEventStream",
subscriptions: [
{ event: "destroyed" },
],
},
],
offer: [
{
storage: "data",
from: "self",
to: "#realm_builder",
},
{
protocol: [ "fuchsia.logger.LogSink" ],
from: "parent",
to: [ "#memfs" ],
},
],
}