blob: 5a5a6d7f6113bd1bd664a17312cf7c1b10404f51 [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",
"inspect/offer.shard.cml",
"syslog/client.shard.cml",
],
program: {
binary: "bin/pkgctl_integration_test",
},
children: [
{
name: "dns_resolver",
url: "#meta/dns_resolver.cm",
},
{
name: "http_client",
url: "#meta/http-client.cm",
},
{
name: "netstack",
url: "#meta/netstack.cm",
},
],
use: [
{
protocol: [ "fuchsia.net.name.Lookup" ],
from: "#dns_resolver",
},
{
protocol: [ "fuchsia.net.http.Loader" ],
from: "#http_client",
},
{
protocol: [
"fuchsia.net.routes.State",
"fuchsia.posix.socket.Provider",
],
from: "#netstack",
},
{ protocol: "fuchsia.process.Launcher" },
{
storage: "tmp",
path: "/tmp",
},
],
offer: [
{
protocol: [ "fuchsia.net.routes.State" ],
from: "#netstack",
to: [ "#dns_resolver" ],
},
{
config: "fuchsia.http-client.StopOnIdleTimeoutMillis",
from: "void",
to: "#http_client",
availability: "optional",
},
{
protocol: [ "fuchsia.posix.socket.Provider" ],
from: "#netstack",
to: [
"#dns_resolver",
"#http_client",
],
},
{
protocol: [ "fuchsia.net.name.Lookup" ],
from: "#dns_resolver",
to: [ "#http_client" ],
},
{
storage: "cache",
from: "parent",
to: [ "#netstack" ],
},
// 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",
},
],
}