Skip to content

Commit

Permalink
Merge pull request #148 from cloudsoft/fix/csar-test
Browse files Browse the repository at this point in the history
Fixes broken ToscaTypePlanTransformerIntegrationTest
  • Loading branch information
ahgittin authored Feb 25, 2021
2 parents 8308c3f + 08635b9 commit a4ac4a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ protected LocalManagementContext newOsgiMgmt() {
public void testCsarBomBundleSameZip() throws Exception {
LocalManagementContext osgiMgmt = newOsgiMgmt();
OsgiBundleInstallationResult br = ((ManagementContextInternal)osgiMgmt).getOsgiManager().get().install(
ResourceUtils.create(this).getResourceFromUrl("classpath://templates/csar-bom-bundle-same-zip.zip")).get();
() -> ResourceUtils.create(this).getResourceFromUrl("classpath://templates/csar-bom-bundle-same-zip.zip")).get();
Assert.assertEquals(br.getBundle().getSymbolicName(), "csar-bom-bundle-same-zip");
br.getTypesInstalled().stream().anyMatch(t -> t.getId().equals("csar-bom-bundle-same-zip:1.0.0-SNAPSHOT"));

Expand All @@ -923,7 +923,7 @@ public void testCsarBomBundleSameZip() throws Exception {
public void testCsarWithError() throws Exception {
LocalManagementContext osgiMgmt = newOsgiMgmt();
OsgiBundleInstallationResult br = ((ManagementContextInternal)osgiMgmt).getOsgiManager().get().install(
ResourceUtils.create(this).getResourceFromUrl("classpath://templates/csar-error.zip")).get();
() -> ResourceUtils.create(this).getResourceFromUrl("classpath://templates/csar-error.zip")).get();
Assert.assertEquals(br.getBundle().getSymbolicName(), "csar-with-error");
br.getTypesInstalled().stream().anyMatch(t -> t.getId().equals("csar-with-error:1.0.0-SNAPSHOT"));

Expand Down

0 comments on commit a4ac4a8

Please sign in to comment.