File tree 2 files changed +14
-14
lines changed
SW360IntegrationTest/Nuget
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -86,18 +86,18 @@ public void UploadBom_ShouldUpload_WhenInAzurePipeline_AndBomFileExists()
86
86
File . Delete ( FileOperations . CatoolBomFilePath ) ;
87
87
}
88
88
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
+ }
102
102
}
103
103
}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public void LocalBOMCreation_AfterSuccessfulExeRun_ReturnsSuccess()
54
54
expected . Read ( CCTLocalBomTestFile ) ;
55
55
56
56
// Actual
57
- string generatedBOM = OutFolder + $ "\\ ..\\ BOMs\\ ContinuousClearing .cdx.json";
57
+ string generatedBOM = OutFolder + $ "\\ ..\\ BOMs\\ ContinuousClearing_Bom .cdx.json";
58
58
if ( File . Exists ( generatedBOM ) )
59
59
{
60
60
fileExist = true ;
You can’t perform that action at this time.
0 commit comments