Polishing.
Use unique Id's for token creation.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package org.springframework.vault.core;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import org.junit.Before;
|
||||
@@ -75,7 +76,7 @@ public class VaultTokenTemplateIntegrationTests extends IntegrationTestSupport {
|
||||
.renewable() //
|
||||
.noDefaultPolicy() //
|
||||
.noParent() //
|
||||
.id("HELLO-WORLD") //
|
||||
.id(UUID.randomUUID().toString()) //
|
||||
.build();
|
||||
|
||||
VaultTokenResponse tokenResponse = tokenOperations.create(tokenRequest);
|
||||
@@ -102,7 +103,7 @@ public class VaultTokenTemplateIntegrationTests extends IntegrationTestSupport {
|
||||
.renewable() //
|
||||
.noDefaultPolicy() //
|
||||
.noParent() //
|
||||
.id("HELLO-WORLD") //
|
||||
.id(UUID.randomUUID().toString()) //
|
||||
.build();
|
||||
|
||||
VaultTokenResponse tokenResponse = tokenOperations.createOrphan(tokenRequest);
|
||||
|
||||
Reference in New Issue
Block a user