Skip to content

Commit

Permalink
chore: admin channel tests for server rewritten. standalone server co…
Browse files Browse the repository at this point in the history
…nfiguration
  • Loading branch information
yreynhout committed Nov 22, 2023
1 parent c509378 commit f9d8ffb
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 105 deletions.
3 changes: 2 additions & 1 deletion src/AxonIQ.AxonServer.Embedded/EmbeddedAxonServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ public static EmbeddedAxonServer WithAccessControlDisabled(ILogger<EmbeddedAxonS
Name = $"axonserver-{suffix}",
InternalHostname = $"axonserver-{suffix}",
Hostname = "localhost",
DevModeEnabled = true
DevModeEnabled = true,
Standalone = false
},
ClusterSetup =
{
Expand Down
9 changes: 9 additions & 0 deletions src/AxonIQ.AxonServer.Embedded/SystemNodeSetup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public class SystemNodeSetup
/// Development mode which allows deleting all events from event store (Axon SE only). Default value is false.
/// </summary>
public bool? DevModeEnabled { get; set; }

/// <summary>
/// Standalone indicates whether to run as a single node vs a cluster node. Default value is false.
/// </summary>
public bool? Standalone { get; set; }

/// <summary>
/// Set WebSocket CORS Allowed Origins. Default value is false.
Expand Down Expand Up @@ -100,6 +105,10 @@ public string[] Serialize()
{
properties.Add($"axoniq.axonserver.devmode.enabled={DevModeEnabled.Value.ToString().ToLowerInvariant()}");
}
if (Standalone.HasValue)
{
properties.Add($"axoniq.axonserver.standalone={Standalone.Value.ToString().ToLowerInvariant()}");
}
if (SetWebSocketAllowedOrigins.HasValue)
{
properties.Add($"axoniq.axonserver.set-web-socket-allowed-origins={SetWebSocketAllowedOrigins.Value.ToString().ToLowerInvariant()}");
Expand Down
Loading

0 comments on commit f9d8ffb

Please sign in to comment.