Add comprehensive smoke and feature tests for Gateway API
- Introduced LtdFeatureTests to validate BACnet and OPC UA point updates, trend logging, and alarm rule functionality. - Added OpcUaClientTests to ensure proper OPC UA client configuration, point value synchronization, and session management. - Created OpcUaFeatureTests to test OPC UA server capabilities, including browsing, reading, writing, and subscription notifications. - Implemented native_bacnet_test.py for isolated BACnet wire testing, covering discovery, read/write operations, and command processing. - Added ui-theme-tabs.test.cjs to verify theme switching, tab interactions, and protocol form accessibility in the UI.
This commit is contained in:
1 parent
d9165a60ff
commit
98c48d9d78
80 files changed
+11120
-315
No files matched your search
@@ -0,0 +1,73 @@
|
||||
namespace Gateway.Api.Domain;
|
||||
|
||||
/// <summary>A reusable group of trend logs, equivalent to an LTD saved selection.</summary>
|
||||
public sealed record GatewayTrendSelection(
|
||||
Guid Id,
|
||||
string Name,
|
||||
string? Description,
|
||||
Guid OwnerId,
|
||||
bool Shared,
|
||||
IReadOnlyList<Guid> TrendLogIds,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
DateTimeOffset UpdatedAtUtc);
|
||||
|
||||
public sealed record CreateTrendSelectionRequest(string Name, string? Description, bool Shared, IReadOnlyList<Guid> TrendLogIds);
|
||||
public sealed record UpdateTrendSelectionRequest(string? Name, string? Description, bool? Shared, IReadOnlyList<Guid>? TrendLogIds);
|
||||
|
||||
/// <summary>Scheduled CSV export and optional mail dispatch for one saved selection.</summary>
|
||||
public sealed record CsvRunnerJob(
|
||||
Guid Id,
|
||||
string Name,
|
||||
Guid SelectionId,
|
||||
string Time,
|
||||
int RangeHours,
|
||||
string Delimiter,
|
||||
bool Enabled,
|
||||
bool MailEnabled,
|
||||
string? MailTo,
|
||||
string MailSubject,
|
||||
string MailMessage,
|
||||
string? LastRunLocalDate,
|
||||
CsvRunnerJobResult? LastResult,
|
||||
DateTimeOffset CreatedAtUtc,
|
||||
DateTimeOffset UpdatedAtUtc);
|
||||
|
||||
public sealed record CsvRunnerJobResult(bool Success, string? FilePath, string? Error, DateTimeOffset RanAtUtc);
|
||||
public sealed record CsvRunnerExecution(Guid Id, Guid JobId, string Name, string State, DateTimeOffset EnqueuedAtUtc);
|
||||
|
||||
public sealed record CreateCsvRunnerJobRequest(
|
||||
string Name,
|
||||
Guid SelectionId,
|
||||
string Time,
|
||||
int RangeHours,
|
||||
string Delimiter,
|
||||
bool Enabled,
|
||||
bool MailEnabled,
|
||||
string? MailTo,
|
||||
string? MailSubject,
|
||||
string? MailMessage);
|
||||
|
||||
public sealed record UpdateCsvRunnerJobRequest(
|
||||
string? Name,
|
||||
Guid? SelectionId,
|
||||
string? Time,
|
||||
int? RangeHours,
|
||||
string? Delimiter,
|
||||
bool? Enabled,
|
||||
bool? MailEnabled,
|
||||
string? MailTo,
|
||||
string? MailSubject,
|
||||
string? MailMessage);
|
||||
|
||||
public sealed record MailIntegrationView(bool MailConfigured, string Endpoint);
|
||||
public sealed record UpdateMailIntegrationRequest(string? ApiKey, bool ClearApiKey = false);
|
||||
|
||||
public sealed record TrendExportRow(
|
||||
DateTimeOffset TimestampUtc,
|
||||
string TrendLogName,
|
||||
uint BacnetObjectInstance,
|
||||
string PointName,
|
||||
System.Text.Json.JsonElement Value,
|
||||
PointProtocol SourceProtocol,
|
||||
string? Status,
|
||||
string Unit = "");
|
||||
Reference in new issue
Block a user