Class FakeGatewayOptions
Configures a FakeGateway.
public sealed record FakeGatewayOptions : IEquatable<FakeGatewayOptions>
- Inheritance
-
FakeGatewayOptions
- Implements
- Inherited Members
Properties
AutoCreateWorkspaces
Create workspaces on first use instead of failing with NotFound. Convenient for tests; set to false to mimic a gateway that only knows workspaces created explicitly.
public bool AutoCreateWorkspaces { get; init; }
Property Value
BuiltinProfiles
Gateway-provided provider profiles that exist before any import.
public IReadOnlyList<ProviderProfile>? BuiltinProfiles { get; init; }
Property Value
DefaultPageSize
Items per page when a list call does not set a page size.
public int DefaultPageSize { get; init; }
Property Value
DefaultWorkspace
Workspace used by clients created without an explicit one. Defaults to default.
public string DefaultWorkspace { get; init; }
Property Value
DeletionDelay
How long a sandbox deletion takes. Zero deletes immediately and reports Completed; a positive delay reports Accepted and removes the sandbox after the delay.
public TimeSpan DeletionDelay { get; init; }
Property Value
GatewayVersion
Gateway version reported by the health checks.
public string GatewayVersion { get; init; }
Property Value
ProvisioningDelay
How long a new sandbox stays in Provisioning before it becomes ready.
The create call always reports Provisioning; later reads observe Ready once this time has passed.
public TimeSpan ProvisioningDelay { get; init; }
Property Value
RootfsMaxBytes
Maximum rootfs tar size accepted by IRootfsClient. Defaults to 1 GiB.
public ulong RootfsMaxBytes { get; init; }
Property Value
SandboxUpdatesEnabled
Whether the gateway serves sandbox updates ([openshell.gateway] enable_sandbox_updates, off by default on a
real gateway). When false, updates fail with Conflict.
public bool SandboxUpdatesEnabled { get; init; }
Property Value
SupportsSuspendResume
Whether the fake compute driver supports suspend and resume. When false, both fail with
Conflict (FAILED_PRECONDITION), as a gateway with such a driver does.
public bool SupportsSuspendResume { get; init; }
Property Value
TimeProvider
Clock for timestamps, phase transitions and waits. Pass a FakeTimeProvider to make time-driven
behaviour deterministic. Defaults to System.
public TimeProvider? TimeProvider { get; init; }
Property Value
TransitionDelay
How long stop, start, suspend, and resume take to reach Stopped, Ready, and Suspended.
public TimeSpan TransitionDelay { get; init; }