blob: 7f65b238934a43a8f0f336e3d181da0415a3751c [file] [edit]
// Copyright 2020 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/connectivity/network/meta/isolated-network.shard.cml",
"syslog/offer.shard.cml",
],
children: [
{
name: "test_driver",
url: "#meta/test_driver.cm",
},
{
name: "http-client",
url: "#meta/http-client.cm",
},
],
offer: [
{
config: [ "fuchsia.http-client.StopOnIdleTimeoutMillis" ],
from: "void",
to: "#http-client",
availability: "optional",
},
{
protocol: [ "fuchsia.posix.socket.Provider" ],
from: "#netstack",
to: [
"#http-client",
"#test_driver",
],
},
{
protocol: [ "fuchsia.net.name.Lookup" ],
from: "#dns_resolver",
to: [
"#http-client",
"#test_driver",
],
},
{
protocol: [ "fuchsia.net.http.Loader" ],
from: "#http-client",
to: "#test_driver",
},
{
dictionary: "diagnostics",
from: "parent",
to: "#test_driver",
},
{
protocol: [ "fuchsia.process.Launcher" ],
from: "parent",
to: "#test_driver",
},
{
storage: "tmp",
from: "parent",
to: "#test_driver",
},
// fuchsia_hyper::new_https_client fails if there isn't a file at /config/ssl/cert.pem, but
// the tests don't actually make https connections and so don't need any certs, so we can
// just give them an empty file instead of making them a system test and giving them the
// system certs.
{
directory: "pkg",
from: "framework",
as: "root-ssl-certificates",
to: [ "#http-client" ],
rights: [ "r*" ],
subdir: "fake-ssl-certs",
},
],
expose: [
{
protocol: "fuchsia.test.Suite",
from: "#test_driver",
},
],
}