Skip to content

Commit 554bda5

Browse files

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed
 

‎src/LCT.Common.UTests/PipelineArtifactUploaderTest.cs

+13-13
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,18 @@ public void UploadBom_ShouldUpload_WhenInAzurePipeline_AndBomFileExists()
8686
File.Delete(FileOperations.CatoolBomFilePath);
8787
}
8888

89-
//[Test]
90-
//public void UploadBom_ShouldNotUpload_WhenInUnknownEnvironment()
91-
//{
92-
// // Arrange
93-
// Environment.SetEnvironmentVariable("Build_BuildId", null); // No pipeline detected
94-
95-
// // Act
96-
// PipelineArtifactUploader.UploadBom();
97-
// string output = consoleOutput.ToString().Trim();
98-
99-
// // Assert
100-
// Assert.AreEqual(output, "Uploading of SBOM is not supported.");
101-
//}
89+
[Test]
90+
public void UploadBom_ShouldNotUpload_WhenInUnknownEnvironment()
91+
{
92+
// Arrange
93+
Environment.SetEnvironmentVariable("Build_BuildId", null); // No pipeline detected
94+
95+
// Act
96+
PipelineArtifactUploader.UploadBom();
97+
string output = consoleOutput.ToString().Trim();
98+
99+
// Assert
100+
Assert.AreEqual(output, "Uploading of SBOM is not supported.");
101+
}
102102
}
103103
}

‎src/SW360IntegrationTest/Nuget/PackageIdentifierBasicSBOMNuget.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void LocalBOMCreation_AfterSuccessfulExeRun_ReturnsSuccess()
5454
expected.Read(CCTLocalBomTestFile);
5555

5656
// Actual
57-
string generatedBOM = OutFolder + $"\\..\\BOMs\\ContinuousClearing.cdx.json";
57+
string generatedBOM = OutFolder + $"\\..\\BOMs\\ContinuousClearing_Bom.cdx.json";
5858
if (File.Exists(generatedBOM))
5959
{
6060
fileExist = true;

0 commit comments

Comments
 (0)
Please sign in to comment.