KubernetesLock#unlock()

This commit is contained in:
Gytis Trikleris
2018-05-24 19:28:12 +02:00
committed by Ioannis Canellos
parent 0d33d26b6a
commit 3eab7fa49a
2 changed files with 3 additions and 2 deletions

View File

@@ -84,8 +84,7 @@ public class KubernetesLock implements Lock {
@Override
public void unlock() {
// TODO delete configmap for this lock
// TODO consider only allowing lock release only from the same application and/or thread
repository.delete(name);
}
@Override

View File

@@ -148,7 +148,9 @@ public class KubernetesLockTest {
@Test
public void shouldUnlock() {
lock.unlock();
verify(repository).delete(NAME);
}
@Test(expected = UnsupportedOperationException.class)