From 8d1e544a0883ae2f0e81015ac0a7cabfc7e3ccfb Mon Sep 17 00:00:00 2001 From: Thomas Anderson Date: Wed, 4 Dec 2024 08:14:11 +0000 Subject: [PATCH] Updated path on test --- Btms.Backend.IntegrationTests/SensitiveDataTests.cs | 9 +++++++-- Btms.SensitiveData/Btms.SensitiveData.csproj | 6 ------ 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Btms.Backend.IntegrationTests/SensitiveDataTests.cs b/Btms.Backend.IntegrationTests/SensitiveDataTests.cs index 3174a0c4..149fee02 100644 --- a/Btms.Backend.IntegrationTests/SensitiveDataTests.cs +++ b/Btms.Backend.IntegrationTests/SensitiveDataTests.cs @@ -1,4 +1,6 @@ using System.Text.Json.Nodes; +using Btms.Backend.IntegrationTests.Helpers; +using Btms.BlobService; using Btms.SensitiveData; using Btms.Types.Ipaffs; using FluentAssertions; @@ -8,13 +10,15 @@ namespace Btms.Backend.IntegrationTests; + public class SensitiveDataTests { [Fact] public void WhenIncludeSensitiveData_RedactedShouldBeSameAsJson() { + var filePath = "../../../Fixtures/SmokeTest/IPAFFS/CHEDA/CHEDA_GB_2024_1041389-ee0e6fcf-52a4-45ea-8830-d4553ee70361.json"; string json = - File.ReadAllText(Path.GetFullPath("..\\..\\..\\Fixtures\\SmokeTest\\IPAFFS\\CHEDA\\CHEDA_GB_2024_1041389-ee0e6fcf-52a4-45ea-8830-d4553ee70361.json")); + File.ReadAllText(filePath); SensitiveDataOptions options = new SensitiveDataOptions { Getter = s => "TestRedacted", Include = true }; var serializer = new SensitiveDataSerializer(Options.Create(options), NullLogger.Instance); @@ -28,8 +32,9 @@ public void WhenIncludeSensitiveData_RedactedShouldBeSameAsJson() [Fact] public void WhenIncludeSensitiveData_RedactedShouldBeDifferentJson() { + var filePath = "../../../Fixtures/SmokeTest/IPAFFS/CHEDA/CHEDA_GB_2024_1041389-ee0e6fcf-52a4-45ea-8830-d4553ee70361.json"; string json = - File.ReadAllText(Path.GetFullPath("..\\..\\..\\Fixtures\\SmokeTest\\IPAFFS\\CHEDA\\CHEDA_GB_2024_1041389-ee0e6fcf-52a4-45ea-8830-d4553ee70361.json")); + File.ReadAllText(filePath); SensitiveDataOptions options = new SensitiveDataOptions { Getter = s => "TestRedacted", Include = false }; var serializer = new SensitiveDataSerializer(Options.Create(options), NullLogger.Instance); diff --git a/Btms.SensitiveData/Btms.SensitiveData.csproj b/Btms.SensitiveData/Btms.SensitiveData.csproj index ec274ad5..da9bad4c 100644 --- a/Btms.SensitiveData/Btms.SensitiveData.csproj +++ b/Btms.SensitiveData/Btms.SensitiveData.csproj @@ -7,12 +7,6 @@ true - - - - - -