Browse Source

Fixed test

feature/22871
Luca Frosini 4 months ago
parent
commit
bd67e461f5
  1. 3
      src/test/java/org/gcube/gcat/client/ContextTest.java

3
src/test/java/org/gcube/gcat/client/ContextTest.java

@ -70,7 +70,8 @@ public class ContextTest {
public static void set(Secret secret) throws Exception {
SecretManagerProvider.instance.reset();
SecretManager secretManager = SecretManagerProvider.instance.get();
SecretManager secretManager = new SecretManager();
SecretManagerProvider.instance.set(secretManager);
secretManager.addSecret(secret);
secretManager.set();
String username = secretManager.getUser().getUsername();

Loading…
Cancel
Save