File tree Expand file tree Collapse file tree 5 files changed +23
-15
lines changed
java/io/scalecube/security Expand file tree Collapse file tree 5 files changed +23
-15
lines changed Original file line number Diff line number Diff line change 1212
1313 <artifactId >scalecube-security-tests</artifactId >
1414
15-
15+ <dependencies >
16+ <dependency >
17+ <groupId >io.scalecube</groupId >
18+ <artifactId >scalecube-security-tokens</artifactId >
19+ <version >${project.parent.version} </version >
20+ </dependency >
21+ <!-- Tests -->
22+ <dependency >
23+ <groupId >org.testcontainers</groupId >
24+ <artifactId >vault</artifactId >
25+ <scope >test</scope >
26+ </dependency >
27+ <dependency >
28+ <groupId >com.bettercloud</groupId >
29+ <artifactId >vault-java-driver</artifactId >
30+ <scope >test</scope >
31+ </dependency >
32+ </dependencies >
1633
1734</project >
Original file line number Diff line number Diff line change 1- package io .scalecube .security .tokens . jwt ;
1+ package io .scalecube .security .environment ;
22
33import com .bettercloud .vault .json .Json ;
44import com .bettercloud .vault .rest .Rest ;
Original file line number Diff line number Diff line change 88import static org .mockito .Mockito .when ;
99
1010import io .jsonwebtoken .Locator ;
11+ import io .scalecube .security .environment .VaultEnvironment ;
1112import java .security .Key ;
1213import java .time .Duration ;
1314import java .util .concurrent .ExecutionException ;
1415import java .util .concurrent .TimeUnit ;
1516import org .junit .jupiter .api .AfterAll ;
17+ import org .junit .jupiter .api .Assertions ;
1618import org .junit .jupiter .api .BeforeAll ;
1719import org .junit .jupiter .api .Test ;
1820
@@ -48,8 +50,8 @@ void testResolveTokenSuccessfully() throws Exception {
4850 .get (3 , TimeUnit .SECONDS );
4951
5052 assertNotNull (jwtToken , "jwtToken" );
51- assertTrue (jwtToken .header ().size () > 0 , "jwtToken.header: " + jwtToken .header ());
52- assertTrue (jwtToken .payload ().size () > 0 , "jwtToken.payload: " + jwtToken .payload ());
53+ Assertions . assertTrue (jwtToken .header ().size () > 0 , "jwtToken.header: " + jwtToken .header ());
54+ Assertions . assertTrue (jwtToken .payload ().size () > 0 , "jwtToken.payload: " + jwtToken .payload ());
5355 }
5456
5557 @ Test
File renamed without changes.
Original file line number Diff line number Diff line change 2929 <groupId >org.slf4j</groupId >
3030 <artifactId >slf4j-api</artifactId >
3131 </dependency >
32- <!-- Tests -->
33- <dependency >
34- <groupId >org.testcontainers</groupId >
35- <artifactId >vault</artifactId >
36- <scope >test</scope >
37- </dependency >
38- <dependency >
39- <groupId >com.bettercloud</groupId >
40- <artifactId >vault-java-driver</artifactId >
41- <scope >test</scope >
42- </dependency >
4332 </dependencies >
4433
4534</project >
You can’t perform that action at this time.
0 commit comments