Improved ILispDAO interface. 76/5776/1 lispflowmapping-bulk-release-prepare-only-33 jenkins-lispflowmapping-bulk-release-prepare-only-33
authorDavid Goldberg <david.goldberg@contextream.com>
Wed, 26 Mar 2014 13:40:04 +0000 (15:40 +0200)
committerDavid Goldberg <david.goldberg@contextream.com>
Wed, 26 Mar 2014 15:28:27 +0000 (17:28 +0200)
Signed-off-by: David Goldberg <david.goldberg@contextream.com>
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/ILispDAO.java
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IQueryAll.java [deleted file]
mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/lisp/IGeneralMapServer.java
mappingservice/clusterdao/src/main/java/org/opendaylight/lispflowmapping/clusterdao/ClusterDAOService.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/LispMappingService.java
mappingservice/implementation/src/main/java/org/opendaylight/lispflowmapping/implementation/lisp/MapServer.java
mappingservice/implementation/src/test/java/org/opendaylight/lispflowmapping/implementation/lisp/MapServerTest.java
mappingservice/integrationtest/src/test/java/org/opendaylight/lispflowmapping/integrationtest/MappingServiceIntegrationTest.java
mappingservice/northbound/src/main/java/org/opendaylight/lispflowmapping/northbound/LispMappingNorthbound.java
mappingservice/yangmodel/.gitignore

index 8d856f9c0c9b1cb78d0856cc2a4071b67f828361..4d950ef137413f7393bb99fccbcb04f127664797 100644 (file)
@@ -9,9 +9,8 @@
 package org.opendaylight.lispflowmapping.interfaces.dao;
 
 import java.util.Map;
-import java.util.concurrent.TimeUnit;
 
-public interface ILispDAO extends IQueryAll {
+public interface ILispDAO {
 
     /**
      * Put a entry into the DAO.
@@ -41,16 +40,19 @@ public interface ILispDAO extends IQueryAll {
      *            The key.
      * @return The value from the DAO.
      */
-    public <K> Map<String, Object> get(K key);
+    public Map<String, Object> get(Object key);
 
     /**
-     * Remove an entry from the DAO
+     * Enumerate all the entries from the DAO
      * 
-     * @param key
-     *            The key of the entry
-     * @return true if success, false otherwise
+     * @param visitor
+     */
+    public void getAll(IRowVisitor visitor);
+
+    /**
+     * Remove an entry from the DAO
      */
-    public boolean remove(Object key);
+    public void remove(Object key);
 
     /**
      * Remove an entry from the DAO
@@ -59,25 +61,12 @@ public interface ILispDAO extends IQueryAll {
      *            The key of the entry
      * @param valueKey
      *            The value to delete
-     * @return true if success, false otherwise
      */
-    public boolean removeSpecific(Object key, String valueKey);
+    public void removeSpecific(Object key, String valueKey);
 
     /**
      * Clear the DAO and remove all of the entries.
      */
-    public void clearAll();
-
-    /**
-     * @return The time unit of the DAO cleaner
-     */
-    public TimeUnit getTimeUnit();
-
-    /**
-     * Set the time unit of the DAO cleaner
-     * 
-     * @param timeUnit
-     */
-    public void setTimeUnit(TimeUnit timeUnit);
+    public void removeAll();
 
 }
diff --git a/mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IQueryAll.java b/mappingservice/api/src/main/java/org/opendaylight/lispflowmapping/interfaces/dao/IQueryAll.java
deleted file mode 100644 (file)
index 0a31c32..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-/*
- * Copyright (c) 2014 Contextream, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.lispflowmapping.interfaces.dao;
-
-/**
- * An interface for allowing iteration over all of the entries in the DAO
- */
-public interface IQueryAll {
-    public void getAll(IRowVisitor visitor);
-}
index b8c04d97e87f50c82299fab33a0f0cc07a7e4bde..e7ff8ec14962a00996ce2972e6890ce77fb53052 100644 (file)
@@ -42,7 +42,7 @@ public interface IGeneralMapServer {
 
     void setShouldAuthenticate(boolean shouldAuthenticate);
 
-    public void setOverwrite(boolean overwrite);
+    void setOverwrite(boolean overwrite);
 
     /**
      * This method removes the given authentication key from the map server.
@@ -51,7 +51,7 @@ public interface IGeneralMapServer {
      * @param maskLen
      * @return
      */
-    boolean removeAuthenticationKey(LispAddressContainer address, int maskLen);
+    void removeAuthenticationKey(LispAddressContainer address, int maskLen);
 
     /**
      * This method adds an authentication key to the address.
@@ -61,5 +61,5 @@ public interface IGeneralMapServer {
      * @param key
      * @return
      */
-    boolean addAuthenticationKey(LispAddressContainer address, int maskLen, String key);
+    void addAuthenticationKey(LispAddressContainer address, int maskLen, String key);
 }
index dc28e26aea8d484e9b850fa6d801043420e3c7d3..0c89ac15ac28814330cfb23a92ec83c95633018e 100644 (file)
@@ -21,14 +21,13 @@ import org.opendaylight.controller.clustering.services.CacheExistException;
 import org.opendaylight.controller.clustering.services.IClusterContainerServices;
 import org.opendaylight.controller.clustering.services.IClusterServices;
 import org.opendaylight.lispflowmapping.interfaces.dao.ILispDAO;
-import org.opendaylight.lispflowmapping.interfaces.dao.IQueryAll;
 import org.opendaylight.lispflowmapping.interfaces.dao.IRowVisitor;
 import org.opendaylight.lispflowmapping.interfaces.dao.MappingEntry;
 import org.opendaylight.lispflowmapping.interfaces.dao.MappingServiceRLOCGroup;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class ClusterDAOService implements ILispDAO, IQueryAll {
+public class ClusterDAOService implements ILispDAO {
 
     protected static final Logger logger = LoggerFactory.getLogger(ClusterDAOService.class);
     private IClusterContainerServices clusterContainerService = null;
@@ -60,7 +59,6 @@ public class ClusterDAOService implements ILispDAO, IQueryAll {
         scheduler.shutdownNow();
     }
 
-    @SuppressWarnings("deprecation")
     private void allocateCache() {
         if (this.clusterContainerService == null) {
             logger.warn("un-initialized clusterContainerService, can't create cache");
@@ -77,7 +75,7 @@ public class ClusterDAOService implements ILispDAO, IQueryAll {
         logger.trace("Cache successfully created for ClusterDAOService");
     }
 
-    @SuppressWarnings({ "unchecked", "deprecation" })
+    @SuppressWarnings({ "unchecked" })
     private void retrieveCache() {
         if (this.clusterContainerService == null) {
             logger.warn("un-initialized clusterContainerService, can't retrieve cache");
@@ -133,22 +131,21 @@ public class ClusterDAOService implements ILispDAO, IQueryAll {
         return keyToValues.get(valueKey);
     }
 
-    public <K> Map<String, Object> get(K key) {
+    public Map<String, Object> get(Object key) {
         return data.get(key);
     }
 
-    public boolean remove(Object key) {
-        return data.remove(key) != null;
+    public void remove(Object key) {
+        data.remove(key);
     }
 
-    public boolean removeSpecific(Object key, String valueKey) {
-        if (!data.containsKey(key) || !data.get(key).containsKey(valueKey)) {
-            return false;
+    public void removeSpecific(Object key, String valueKey) {
+        if (data.containsKey(key) && data.get(key).containsKey(valueKey)) {
+            data.get(key).remove(valueKey);
         }
-        return data.get(key).remove(valueKey) != null;
     }
 
-    public void clearAll() {
+    public void removeAll() {
         data.clear();
     }
 
index 0f39a018a7ae7c155c8efe6df029d30f96b0e757..727bd8e0430964b3ecb817a120cbb0f5d0ff1b53 100644 (file)
@@ -27,7 +27,6 @@ import org.opendaylight.lispflowmapping.implementation.util.LispAFIConvertor;
 import org.opendaylight.lispflowmapping.implementation.util.LispNotificationHelper;
 import org.opendaylight.lispflowmapping.interfaces.dao.ILispDAO;
 import org.opendaylight.lispflowmapping.interfaces.dao.ILispTypeConverter;
-import org.opendaylight.lispflowmapping.interfaces.dao.IQueryAll;
 import org.opendaylight.lispflowmapping.interfaces.dao.IRowVisitor;
 import org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping;
 import org.opendaylight.lispflowmapping.interfaces.lisp.IMapNotifyHandler;
@@ -135,24 +134,20 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
 
     public void _dumpAll(final CommandInterpreter ci) {
         ci.println("EID\tRLOCs");
-        if (lispDao instanceof IQueryAll) {
-            ((IQueryAll) lispDao).getAll(new IRowVisitor() {
-                String lastKey = "";
-
-                public void visitRow(Object keyId, String valueKey, Object value) {
-                    String key = keyId.getClass().getSimpleName() + "#" + keyId;
-                    if (!lastKey.equals(key)) {
-                        ci.println();
-                        ci.print(key + "\t");
-                    }
-                    ci.print(valueKey + "=" + value + "\t");
-                    lastKey = key;
+        lispDao.getAll(new IRowVisitor() {
+            String lastKey = "";
+
+            public void visitRow(Object keyId, String valueKey, Object value) {
+                String key = keyId.getClass().getSimpleName() + "#" + keyId;
+                if (!lastKey.equals(key)) {
+                    ci.println();
+                    ci.print(key + "\t");
                 }
-            });
-            ci.println();
-        } else {
-            ci.println("Not implemented by this DAO");
-        }
+                ci.print(valueKey + "=" + value + "\t");
+                lastKey = key;
+            }
+        });
+        ci.println();
         return;
     }
 
@@ -208,12 +203,12 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
         return mapServer.getAuthenticationKey(address, maskLen);
     }
 
-    public boolean removeAuthenticationKey(LispAddressContainer address, int maskLen) {
-        return mapServer.removeAuthenticationKey(address, maskLen);
+    public void removeAuthenticationKey(LispAddressContainer address, int maskLen) {
+        mapServer.removeAuthenticationKey(address, maskLen);
     }
 
-    public boolean addAuthenticationKey(LispAddressContainer address, int maskLen, String key) {
-        return mapServer.addAuthenticationKey(address, maskLen, key);
+    public void addAuthenticationKey(LispAddressContainer address, int maskLen, String key) {
+        mapServer.addAuthenticationKey(address, maskLen, key);
     }
 
     public boolean shouldIterateMask() {
@@ -288,7 +283,7 @@ public class LispMappingService implements CommandProvider, IFlowMapping, Bindin
 
     @Override
     public void clean() {
-        lispDao.clearAll();
+        lispDao.removeAll();
     }
 
     @Override
index c4ac321dd7bd3172a3f494d13949799fd544cbba..06719d71857883454ed382472e0fab0b4e2d18a6 100644 (file)
@@ -124,16 +124,14 @@ public class MapServer extends AbstractLispComponent implements IMapServerAsync
         return getPassword(address, maskLen);
     }
 
-    public boolean removeAuthenticationKey(LispAddressContainer address, int maskLen) {
+    public void removeAuthenticationKey(LispAddressContainer address, int maskLen) {
         IMappingServiceKey key = MappingServiceKeyUtil.generateMappingServiceKey(address, maskLen);
         dao.removeSpecific(key, PASSWORD_SUBKEY);
-        return true;
     }
 
-    public boolean addAuthenticationKey(LispAddressContainer address, int maskLen, String key) {
+    public void addAuthenticationKey(LispAddressContainer address, int maskLen, String key) {
         IMappingServiceKey mappingServiceKey = MappingServiceKeyUtil.generateMappingServiceKey(address, maskLen);
         dao.put(mappingServiceKey, new MappingEntry<String>(PASSWORD_SUBKEY, key));
-        return true;
     }
 
     public boolean shouldOverwrite() {
index e82a33e8663e5685ff855c7252caca5443ae01f1..cc59eb79c9d3422a6c47fad15d5ba93e8b71ece0 100644 (file)
@@ -566,13 +566,14 @@ public class MapServerTest extends BaseTestCase {
         assertEquals(mapNotify, null);
     }
 
+    @SuppressWarnings("unchecked")
     @Test
     public void handleAddAuthenticationKey() throws Exception {
         String password = "pass";
         IMappingServiceKey key = getDefualtKey();
         oneOf(lispDAO).put(weq(key),
                 weq((MappingEntry<String>[]) (Arrays.asList(new MappingEntry<String>(AbstractLispComponent.PASSWORD_SUBKEY, password)).toArray())));
-        assertEquals(true, testedMapServer.addAuthenticationKey(LispAFIConvertor.toContainer(eid), key.getMask(), password));
+        testedMapServer.addAuthenticationKey(LispAFIConvertor.toContainer(eid), key.getMask(), password);
     }
 
     @Test
@@ -598,7 +599,7 @@ public class MapServerTest extends BaseTestCase {
     public void handleRemoveAuthenticationKey() throws Exception {
         IMappingServiceKey key = getDefualtKey();
         oneOf(lispDAO).removeSpecific(weq(key), with(AbstractLispComponent.PASSWORD_SUBKEY));
-        assertEquals(true, testedMapServer.removeAuthenticationKey(LispAFIConvertor.toContainer(eid), key.getMask()));
+        testedMapServer.removeAuthenticationKey(LispAFIConvertor.toContainer(eid), key.getMask());
     }
 
     private void addDefaultPutAndGetExpectations(LispAFIAddress addr, int mask) {
index 55bfafbee829d7d4e8f25b222b2d41a792d9122b..cdefc8b6a3a6fd220595e1b39c78878038e8d9f3 100644 (file)
@@ -82,7 +82,6 @@ import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lcafsourcedestaddr
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lcaftrafficengineeringaddress.Hops;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lcaftrafficengineeringaddress.HopsBuilder;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainer;
-import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.LispAddressContainerBuilder;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.lispaddresscontainer.address.Ipv4;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.lispaddresscontainer.address.Ipv4Builder;
 import org.opendaylight.yang.gen.v1.lispflowmapping.rev131031.lispaddress.lispaddresscontainer.address.LcafApplicationDataBuilder;
@@ -139,7 +138,6 @@ public class MappingServiceIntegrationTest {
     public static final String ODL = "org.opendaylight.controller";
     public static final String YANG = "org.opendaylight.yangtools";
     public static final String JERSEY = "com.sun.jersey";
-    private static final String DEBUG_PORT = "8005";
     private static final int MAX_SERVICE_LOAD_RETRIES = 45;
 
     @After
@@ -907,8 +905,7 @@ public class MappingServiceIntegrationTest {
 
         sendMapRegister(mapRegister.build());
 
-        // this will fail if no MapNotify arrives for 6 seconds
-        MapNotify notify = receiveMapNotify();
+        assertMapNotifyRecieved();
     }
 
     public void testPasswordMaskMatch() throws Exception {
@@ -947,8 +944,7 @@ public class MappingServiceIntegrationTest {
 
         sendMapRegister(mapRegister.build());
 
-        // this will fail if no MapNotify arrives for 6 seconds
-        MapNotify notify = receiveMapNotify();
+        assertMapNotifyRecieved();
 
         etlr.setLispAddressContainer(LispAFIConvertor.toContainer(addressOutOfRange));
         mapRegister
@@ -1279,7 +1275,7 @@ public class MappingServiceIntegrationTest {
     private void registerForTTL(LispIpv4Address eid) throws SocketTimeoutException {
         MapRegister mapRegister = createMapRegister(eid);
         sendMapRegister(mapRegister);
-        receiveMapNotify();
+        assertMapNotifyRecieved();
     }
 
     private void testTTLBeforeRegister(MapRequest mapRequest) throws SocketTimeoutException {
@@ -1352,7 +1348,7 @@ public class MappingServiceIntegrationTest {
                 LispAFIConvertor.toContainer(LispAFIConvertor.asIPAfiAddress(rloc))).build();
         mr.getEidToLocatorRecord().get(0).getLocatorRecord().set(0, record);
         sendMapRegister(mr);
-        receiveMapNotify();
+        assertMapNotifyRecieved();
         MapRequest mapRequest = createMapRequest(LispAFIConvertor.asIPAfiAddress(eid));
         MapRequestBuilder builder = new MapRequestBuilder(mapRequest);
         builder.setPitr(true);
@@ -1367,6 +1363,10 @@ public class MappingServiceIntegrationTest {
 
     }
 
+    private void assertMapNotifyRecieved() throws SocketTimeoutException {
+        receiveMapNotify();
+    }
+
     private MapReply receiveMapReply() throws SocketTimeoutException {
         return MapReplySerializer.getInstance().deserialize(ByteBuffer.wrap(receivePacket().getData()));
     }
@@ -1466,6 +1466,7 @@ public class MappingServiceIntegrationTest {
         }
     }
 
+    @SuppressWarnings({ "rawtypes", "unchecked" })
     private void areWeReady() throws InvalidSyntaxException {
         assertNotNull(bc);
         boolean debugit = false;
@@ -1545,10 +1546,6 @@ public class MappingServiceIntegrationTest {
         }
     }
 
-    private LispAddressContainer getIPContainer(String ip) {
-        return new LispAddressContainerBuilder().setAddress(asIPAfiAddress(ip)).build();
-    }
-
     private Ipv4 asIPAfiAddress(String ip) {
         return new Ipv4Builder().setIpv4Address(new Ipv4Address(ip)).setAfi((short) AddressFamilyNumberEnum.IP.getIanaCode()).build();
     }
index 03ebe5fe3885f15be006570b4aea00efc3661a4f..108f80ecc36c872b819742eb082f5499141fbb32 100644 (file)
@@ -18,8 +18,8 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.Produces;
 import javax.ws.rs.core.Context;
 import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.SecurityContext;
 import javax.ws.rs.core.Response;
+import javax.ws.rs.core.SecurityContext;
 
 import org.codehaus.enunciate.jaxrs.ResponseCode;
 import org.codehaus.enunciate.jaxrs.StatusCodes;
@@ -27,10 +27,10 @@ import org.codehaus.enunciate.jaxrs.TypeHint;
 import org.opendaylight.controller.containermanager.IContainerManager;
 import org.opendaylight.controller.northbound.commons.RestMessages;
 import org.opendaylight.controller.northbound.commons.exception.BadRequestException;
+import org.opendaylight.controller.northbound.commons.exception.InternalServerErrorException;
 import org.opendaylight.controller.northbound.commons.exception.ResourceNotFoundException;
 import org.opendaylight.controller.northbound.commons.exception.ServiceUnavailableException;
 import org.opendaylight.controller.northbound.commons.exception.UnauthorizedException;
-import org.opendaylight.controller.northbound.commons.exception.InternalServerErrorException;
 import org.opendaylight.controller.northbound.commons.utils.NorthboundUtils;
 import org.opendaylight.controller.sal.authorization.Privilege;
 import org.opendaylight.controller.sal.utils.ServiceHelper;
@@ -38,8 +38,6 @@ import org.opendaylight.lispflowmapping.interfaces.lisp.IFlowMapping;
 import org.opendaylight.lispflowmapping.type.AddressFamilyNumberEnum;
 import org.opendaylight.lispflowmapping.type.LispCanonicalAddressFormatEnum;
 import org.opendaylight.lispflowmapping.type.lisp.EidRecord;
-import org.opendaylight.lispflowmapping.type.lisp.LocatorRecord;
-import org.opendaylight.lispflowmapping.type.lisp.MapRegister;
 import org.opendaylight.lispflowmapping.type.lisp.MapRequest;
 import org.opendaylight.lispflowmapping.type.lisp.address.LispAddress;
 import org.opendaylight.lispflowmapping.type.lisp.address.LispAddressGeneric;
@@ -146,11 +144,7 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
             throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error looking up the EID");
         }
 
-        EidToLocatorRecord record = null;
-
-        record = mapReply.getEidToLocatorRecord().get(0);
-
-        return record;
+        return mapReply.getEidToLocatorRecord().get(0);
     }
 
     private void keyCheck(IFlowMapping mappingService, MapRegisterNB mapRegisterNB) {
@@ -267,7 +261,7 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
         ILispmappingNorthbound nbService = (ILispmappingNorthbound) ServiceHelper.getInstance(ILispmappingNorthbound.class, containerName, this);
 
         try {
-               keyCheck(nbService.getMappingService(), mapRegisterNB);
+            keyCheck(nbService.getMappingService(), mapRegisterNB);
 
             LispAddressConvertorNB.convertGenericToLispAddresses(mapRegisterNB.getMapRegister());
         } catch (Exception e) {
@@ -510,18 +504,13 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
         }
         ILispmappingNorthbound nbService = (ILispmappingNorthbound) ServiceHelper.getInstance(ILispmappingNorthbound.class, containerName, this);
 
-        boolean success = false;
-
         try {
 
-            success = nbService.getMappingService().addAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress),
-                    authKeyNB.getMaskLength(), authKeyNB.getKey());
+            nbService.getMappingService().addAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress), authKeyNB.getMaskLength(),
+                    authKeyNB.getKey());
         } catch (Exception e) {
             throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while adding the key");
         }
-        if (!success) {
-            throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while adding the key");
-        }
 
         return Response.status(Response.Status.OK).build();
     }
@@ -723,17 +712,12 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
 
         ILispmappingNorthbound nbService = (ILispmappingNorthbound) ServiceHelper.getInstance(ILispmappingNorthbound.class, containerName, this);
 
-        boolean success = false;
         try {
-            success = nbService.getMappingService().removeAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress), mask);
+            nbService.getMappingService().removeAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress), mask);
         } catch (Exception e) {
             throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while deleting the key");
         }
 
-        if (!success) {
-            throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while deleting the key");
-        }
-
         return Response.status(Response.Status.OK).build();
     }
 
@@ -797,17 +781,12 @@ public class LispMappingNorthbound implements ILispmappingNorthbound {
 
         int mask = 0; // Not used here
 
-        boolean success = false;
         try {
-            success = nbService.getMappingService().removeAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress), mask);
+            nbService.getMappingService().removeAuthenticationKey(YangTransformerNB.transformLispAddress(lispAddress), mask);
         } catch (Exception e) {
             throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while deleting the key");
         }
 
-        if (!success) {
-            throw new InternalServerErrorException(RestMessages.INTERNALERROR.toString() + " : There was an error while deleting the key");
-        }
-
         return Response.status(Response.Status.OK).build();
     }
 
index 512487c115d4aab264c88c577acdaa2ab3ab1418..c85277432a46a7a645ce916a56c30ea8cb5d4ccf 100644 (file)
@@ -2,3 +2,7 @@
 /META-INF
 /target
 /target
+/target
+/target
+/target
+/target