tenant fixes
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
// =============================================================================
|
||||
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using FluentAssertions;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
@@ -27,6 +28,8 @@ public sealed class EvidenceDecisionApiIntegrationTests : IClassFixture<Findings
|
||||
{
|
||||
AllowAutoRedirect = false
|
||||
});
|
||||
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test-token");
|
||||
_client.DefaultRequestHeaders.Add("X-StellaOps-Tenant", "test-tenant");
|
||||
}
|
||||
|
||||
[Fact(DisplayName = "GET /v1/alerts returns paginated list")]
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
// =============================================================================
|
||||
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using FluentAssertions;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
@@ -28,6 +29,8 @@ public sealed class ScoringEndpointsIntegrationTests : IClassFixture<FindingsLed
|
||||
{
|
||||
AllowAutoRedirect = false
|
||||
});
|
||||
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test-token");
|
||||
_client.DefaultRequestHeaders.Add("X-StellaOps-Tenant", "test-tenant");
|
||||
}
|
||||
|
||||
#region Task 8 - Single Score Endpoint Tests
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using FluentAssertions;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
@@ -30,6 +31,8 @@ public sealed class ScoringObservabilityTests : IClassFixture<FindingsLedgerWebA
|
||||
{
|
||||
AllowAutoRedirect = false
|
||||
});
|
||||
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test-token");
|
||||
_client.DefaultRequestHeaders.Add("X-StellaOps-Tenant", "test-tenant");
|
||||
}
|
||||
|
||||
#region Trace Context Tests
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
// =============================================================================
|
||||
|
||||
using System.Net;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Net.Http.Json;
|
||||
using FluentAssertions;
|
||||
using Microsoft.AspNetCore.Mvc.Testing;
|
||||
@@ -28,6 +29,8 @@ public sealed class WebhookEndpointsIntegrationTests : IClassFixture<FindingsLed
|
||||
{
|
||||
AllowAutoRedirect = false
|
||||
});
|
||||
_client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "test-token");
|
||||
_client.DefaultRequestHeaders.Add("X-StellaOps-Tenant", "test-tenant");
|
||||
}
|
||||
|
||||
#region Registration Tests
|
||||
|
||||
Reference in New Issue
Block a user