| // 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/netstack3.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", | |
| "fuchsia.http-client.TcpReceiveBufferSizeBytes", | |
| ], | |
| 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", | |
| }, | |
| ], | |
| } |