Expand description
Provides utilities for Netstack integration tests.
Modules§
- Useful constants for tests.
- Utilities for interacting with devices during integration tests.
- Utilities for interacting with DHCPv4 client/server during integration tests.
- Provides utilities for using
fuchsia.net.interfaces
andfuchsia.net.interfaces.admin
in Netstack integration tests. - Helpers for tests involving the Neighbor Discovery Protocol.
- Useful NUD functions for tests.
- Packet parsing helpers.
- Ping utilities.
- Provides utilities for test realms.
Constants§
- The time to wait between two consecutive checks of an event.
- Extra time to use when waiting for an async event to not occur.
- Extra time to use when waiting for an async event to occur.
Functions§
- Wraps
fut
so that it printsevent_name
and the caller’s location to stderr everyinterval
untilfut
completes. - Gets an event matcher for
component_moniker
inrealm
. - Gets the moniker of a component in a test realm, relative to the root of the dynamic collection in which it is running.
- Gets a component event stream yielding component stopped events.
- Read an Inspect hierarchy and filter it down to properties of interest from the diagnostics directory of Netstack2. For any other component, please use
get_inspect_data
, this function doesn’t apply to any other component and won’t work. - Gets inspect data in realm.
- Like
get_inspect_data
but returns a single property matched byproperty_selector
. - Pauses the fake clock in the given realm.
- Sets up a realm with a network with no required services.
- Sets up a realm with required services and a network used for tests requiring manual packet inspection and transmission.
- Asynchronously sleeps for specified
secs
seconds. - Returns
true
if the stream only yieldstrue
. - Returns
true
once the stream yields atrue
. - Like
wait_for_component_stopped_with_stream
but retrieves an event stream for the caller. - Waits for a
stopped
event to be emitted for a component in a test realm.
Type Aliases§
- An alias for
Result<T, anyhow::Error>
.