audit work, fixed StellaOps.sln warnings/errors, fixed tests, sprints work, new advisories
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using StellaOps.Concelier.Core.Linksets;
|
||||
using StellaOps.Concelier.WebService.Contracts;
|
||||
@@ -35,7 +36,7 @@ internal static class AdvisorySummaryMapper
|
||||
ObservationIds: linkset.ObservationIds.ToArray(),
|
||||
Schema: "lnm-1.0"),
|
||||
Aliases: aliases.ToArray(),
|
||||
ObservedAt: linkset.CreatedAt.UtcDateTime.ToString("O"));
|
||||
ObservedAt: linkset.CreatedAt.UtcDateTime.ToString("O", CultureInfo.InvariantCulture));
|
||||
}
|
||||
|
||||
public static AdvisorySummaryResponse ToResponse(
|
||||
|
||||
@@ -226,7 +226,7 @@ internal static class FeedSnapshotEndpointExtensions
|
||||
exportOptions,
|
||||
cancellationToken).ConfigureAwait(false);
|
||||
|
||||
if (metadata is null)
|
||||
if (metadata is null || metadata.ExportPath is null)
|
||||
{
|
||||
return ConcelierProblemResultFactory.SnapshotNotFound(context, snapshotId);
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using StellaOps.Concelier.WebService.Options;
|
||||
|
||||
@@ -76,8 +77,8 @@ internal static class IncidentFileStore
|
||||
payload.AdvisoryKey,
|
||||
payload.Tenant,
|
||||
payload.Reason,
|
||||
payload.ActivatedAt.ToUniversalTime().ToString("O"),
|
||||
payload.CooldownUntil.ToUniversalTime().ToString("O"),
|
||||
payload.ActivatedAt.ToUniversalTime().ToString("O", CultureInfo.InvariantCulture),
|
||||
payload.CooldownUntil.ToUniversalTime().ToString("O", CultureInfo.InvariantCulture),
|
||||
payload.PipelineVersion,
|
||||
active);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user