Browse Source

Added utility test to decrypt a secret

feature/21903 r5.7.0
Luca Frosini 4 months ago
parent
commit
5ac1039d60
  1. 9
      src/test/java/org/gcube/gcat/utils/URIResolverTest.java

9
src/test/java/org/gcube/gcat/utils/URIResolverTest.java

@ -1,5 +1,6 @@
package org.gcube.gcat.utils;
import org.gcube.common.encryption.encrypter.StringEncrypter;
import org.gcube.gcat.ContextTest;
import org.junit.Test;
import org.slf4j.Logger;
@ -15,4 +16,12 @@ public class URIResolverTest extends ContextTest {
logger.debug("Item URL is {}", catalogueItemURL);
}
@Test
public void decrypt() throws Exception {
ContextTest.setContextByName("/gcube/devsec/devVRE");
String encrypted = "";
String pwd = StringEncrypter.getEncrypter().decrypt(encrypted);
logger.info(pwd);
}
}

Loading…
Cancel
Save