Skip to content

Commit

Permalink
[manager] bugfix authGetToken unit test case error (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 authored Nov 27, 2022
1 parent d2e810c commit 3f603cc
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.usthe.common.util.CommonConstants;
import com.usthe.common.util.GsonUtil;
import com.usthe.manager.pojo.dto.LoginDto;
import com.usthe.sureness.util.JsonWebTokenUtil;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
Expand Down Expand Up @@ -34,6 +35,10 @@ void setUp() {

@Test
void authGetToken() throws Exception {
JsonWebTokenUtil.setDefaultSecretKey("dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp"
+ "CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R"
+ "LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9"
+ "dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp");
LoginDto loginDto = LoginDto.builder()
.identifier("admin")
.credential("hertzbeat")
Expand Down

0 comments on commit 3f603cc

Please sign in to comment.