diff --git a/src/SW360IntegrationTest/Alpine/ComponentCreatorInitialAlpine.cs b/src/SW360IntegrationTest/Alpine/ComponentCreatorInitialAlpine.cs index 2597071c..b646ce3e 100644 --- a/src/SW360IntegrationTest/Alpine/ComponentCreatorInitialAlpine.cs +++ b/src/SW360IntegrationTest/Alpine/ComponentCreatorInitialAlpine.cs @@ -54,11 +54,11 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Conan/ComponentCreatorInitialConan.cs b/src/SW360IntegrationTest/Conan/ComponentCreatorInitialConan.cs index 17b9a53d..ace5be1e 100644 --- a/src/SW360IntegrationTest/Conan/ComponentCreatorInitialConan.cs +++ b/src/SW360IntegrationTest/Conan/ComponentCreatorInitialConan.cs @@ -45,11 +45,11 @@ public void Setup() [Test, Order(1)] public void TestComponentCreatorExe_Conan() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Debian/ComponentCreatorInitialDebian.cs b/src/SW360IntegrationTest/Debian/ComponentCreatorInitialDebian.cs index c9955fdc..435c1707 100644 --- a/src/SW360IntegrationTest/Debian/ComponentCreatorInitialDebian.cs +++ b/src/SW360IntegrationTest/Debian/ComponentCreatorInitialDebian.cs @@ -53,11 +53,11 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Maven/ComponentCreatorInitialMaven.cs b/src/SW360IntegrationTest/Maven/ComponentCreatorInitialMaven.cs index daa4b419..e8a6d33e 100644 --- a/src/SW360IntegrationTest/Maven/ComponentCreatorInitialMaven.cs +++ b/src/SW360IntegrationTest/Maven/ComponentCreatorInitialMaven.cs @@ -55,11 +55,11 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs b/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs index 44135028..a2b84a08 100644 --- a/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs +++ b/src/SW360IntegrationTest/NPM/ComponentCreatorInitial.cs @@ -54,12 +54,12 @@ public void Setup() [Test, Order(1)] public void TestComponentCreatorExe() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check return with warning code 2 Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs b/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs index 39727d71..a0d7f3c0 100644 --- a/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs +++ b/src/SW360IntegrationTest/NPM/ComponentCreatorWithUpdatedComponents.cs @@ -57,11 +57,11 @@ public void Setup() [Test, Order(1)] public void TestComponentCreatorExe() { - string bomPath = OutFolder + $"\\..\\Set2BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\Set2BOMs"; // Assert // Check exit is normal Assert.AreEqual(0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Nuget/ComponentCreatorInitialNuget.cs b/src/SW360IntegrationTest/Nuget/ComponentCreatorInitialNuget.cs index a2f855fa..0f556f27 100644 --- a/src/SW360IntegrationTest/Nuget/ComponentCreatorInitialNuget.cs +++ b/src/SW360IntegrationTest/Nuget/ComponentCreatorInitialNuget.cs @@ -54,11 +54,11 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal Assert.AreEqual(2 | 0, TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Nuget/NugetTemplate/ComponentCreatorNugetTemplate.cs b/src/SW360IntegrationTest/Nuget/NugetTemplate/ComponentCreatorNugetTemplate.cs index 74c14d8d..e7f89c1e 100644 --- a/src/SW360IntegrationTest/Nuget/NugetTemplate/ComponentCreatorNugetTemplate.cs +++ b/src/SW360IntegrationTest/Nuget/NugetTemplate/ComponentCreatorNugetTemplate.cs @@ -56,12 +56,12 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal int value = TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType, diff --git a/src/SW360IntegrationTest/Python/ComponentCreatorInitialPython.cs b/src/SW360IntegrationTest/Python/ComponentCreatorInitialPython.cs index e5eeaa67..088ea1e7 100644 --- a/src/SW360IntegrationTest/Python/ComponentCreatorInitialPython.cs +++ b/src/SW360IntegrationTest/Python/ComponentCreatorInitialPython.cs @@ -53,11 +53,11 @@ public void Setup() [Test, Order(1)] public void ComponentCreatorExe_ProvidedBOMFilePath_ReturnsSuccess() { - string bomPath = OutFolder + $"\\..\\BOMs\\{testParameters.SW360ProjectName}_Bom.cdx.json"; + string bomPath = OutFolder + $"\\..\\BOMs"; // Assert // Check exit is normal int returnValue = TestHelper.RunComponentCreatorExe(new string[] { - TestConstant.PackageFilePath,bomPath, + TestConstant.BomFolderPath,bomPath, TestConstant.Sw360Token, testParameters.SW360AuthTokenValue, TestConstant.SW360URL, testParameters.SW360URL, TestConstant.SW360AuthTokenType, testParameters.SW360AuthTokenType,