From 3f603cc7ba9acec239ad9360854091115106a1c3 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Sun, 27 Nov 2022 21:07:31 +0800 Subject: [PATCH] [manager] bugfix authGetToken unit test case error (#463) --- .../com/usthe/manager/controller/AccountControllerTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/manager/src/test/java/com/usthe/manager/controller/AccountControllerTest.java b/manager/src/test/java/com/usthe/manager/controller/AccountControllerTest.java index d3bc43a1e29..4003e486eb7 100644 --- a/manager/src/test/java/com/usthe/manager/controller/AccountControllerTest.java +++ b/manager/src/test/java/com/usthe/manager/controller/AccountControllerTest.java @@ -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; @@ -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")