diff options
author | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-06 18:14:53 +0200 |
---|---|---|
committer | Determe, Sebastien (sd378r) <sd378r@intl.att.com> | 2018-04-06 18:14:53 +0200 |
commit | 7e76d179c785b01558a92ffa1ee64b3ac4453b1f (patch) | |
tree | 6ec78dbf721be4e1472635de6771624291be1600 /src/test/java/org | |
parent | 2e4c62864ee5eb926bdf5747c1e592afbbc2d5b8 (diff) |
Fix the SDC controller
Fix the Controller so that it can save the csar before checking that it
has been installed, also fix the isCsarAlreadyDeployed method
Issue-ID: CLAMP-151
Change-Id: I7d04ec4be3960b4c1673e4d8b656649c18cfcee1
Signed-off-by: Determe, Sebastien (sd378r) <sd378r@intl.att.com>
Diffstat (limited to 'src/test/java/org')
-rw-r--r-- | src/test/java/org/onap/clamp/clds/it/sdc/controller/installer/CsarInstallerItCase.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/java/org/onap/clamp/clds/it/sdc/controller/installer/CsarInstallerItCase.java b/src/test/java/org/onap/clamp/clds/it/sdc/controller/installer/CsarInstallerItCase.java index b0035a64..c0300eff 100644 --- a/src/test/java/org/onap/clamp/clds/it/sdc/controller/installer/CsarInstallerItCase.java +++ b/src/test/java/org/onap/clamp/clds/it/sdc/controller/installer/CsarInstallerItCase.java @@ -24,6 +24,7 @@ package org.onap.clamp.clds.it.sdc.controller.installer; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -94,6 +95,7 @@ public class CsarInstallerItCase { throws SdcArtifactInstallerException, SdcToscaParserException, CsarHandlerException, IOException { String generatedName = RandomStringUtils.randomAlphanumeric(5); CsarHandler csarHandler = buildFakeCsarHandler(generatedName); + assertFalse(csarInstaller.isCsarAlreadyDeployed(csarHandler)); csarInstaller.installTheCsar(csarHandler); assertTrue(csarInstaller.isCsarAlreadyDeployed(csarHandler)); } |