stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -1,6 +1,7 @@
using System.Globalization;
using StellaOps.Concelier.Connector.Common.Cursors;
using StellaOps.Concelier.Documents;
using System.Globalization;
namespace StellaOps.Concelier.Connector.CertCc.Internal;
@@ -150,7 +151,13 @@ internal sealed record CertCcCursor(
private static bool TryReadGuid(DocumentValue value, out Guid guid)
{
if (value is DocumentString docString && Guid.TryParse(docString.AsString, out guid))
if (value is null)
{
guid = default;
return false;
}
if (value.IsString && Guid.TryParse(value.AsString, out guid))
{
return true;
}

View File

@@ -1,7 +1,8 @@
using StellaOps.Concelier.Connector.Common.Cursors;
using System;
using System.Collections.Generic;
using System.Diagnostics.Metrics;
using StellaOps.Concelier.Connector.Common.Cursors;
namespace StellaOps.Concelier.Connector.CertCc.Internal;

View File

@@ -1,3 +1,6 @@
using StellaOps.Concelier.Models;
using StellaOps.Concelier.Storage;
using System;
using System.Collections.Generic;
using System.Globalization;
@@ -6,8 +9,6 @@ using System.Net;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using StellaOps.Concelier.Models;
using StellaOps.Concelier.Storage;
namespace StellaOps.Concelier.Connector.CertCc.Internal;
@@ -233,7 +234,7 @@ internal static class CertCcMapper
? "https://www.kb.cert.org/vuls/"
: $"https://www.kb.cert.org/vuls/id/{metadata.IdNumber.Trim()}/");
var provenance = new AdvisoryProvenance(sourceName, "reference", canonicalUri, recordedAt);
var provenance = new AdvisoryProvenance(sourceName, "document", canonicalUri, recordedAt);
TryAddReference(references, canonicalUri, "advisory", "certcc.note", null, provenance);

View File

@@ -1,3 +1,7 @@
using Markdig;
using StellaOps.Concelier.Connector.Common.Html;
using StellaOps.Concelier.Connector.Common.Url;
using System;
using System.Buffers;
using System.Collections.Generic;
@@ -7,9 +11,6 @@ using System.Net;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
using Markdig;
using StellaOps.Concelier.Connector.Common.Html;
using StellaOps.Concelier.Connector.Common.Url;
namespace StellaOps.Concelier.Connector.CertCc.Internal;

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Globalization;

View File

@@ -1,6 +1,7 @@
using StellaOps.Concelier.Connector.Common.Cursors;
using System;
using System.Collections.Generic;
using StellaOps.Concelier.Connector.Common.Cursors;
namespace StellaOps.Concelier.Connector.CertCc.Internal;

View File

@@ -1,9 +1,10 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Extensions.Options;
using StellaOps.Concelier.Connector.CertCc.Configuration;
using StellaOps.Concelier.Connector.Common.Cursors;
using System;
using System.Collections.Generic;
using System.Linq;
namespace StellaOps.Concelier.Connector.CertCc.Internal;