Commit Graph

3742 Commits

Author SHA1 Message Date
brotherlu-xcq
e2fc2e44a0
[FOR 5094 remote] add unit tests in nacos-core. (#6262)
* [ISSUE #5904] add unit tests for ClientConnectionEventListenerRegistryTest and ConnectionManagerTest.

* [ISSUE #5904] add unit tests for left class.

* [nacos-core] [unit test] change the uuid.

* [ISSUE #5904] fix the wrong assert.
2021-07-06 10:06:55 +08:00
mask
414e2fa272
[ISSUE #6280] Fix word spell error. (#6281) 2021-07-06 09:42:54 +08:00
ZZQ的
3d000cf878
[ISSUE #6266] [console module] replace "*commons.lang3*.*Utils" to "com.alibaba.nacos.common.utils.*Utils" (#6267) 2021-07-05 17:07:25 +08:00
ZZQ的
3e67058362
[ISSUE #6252] replace *commons.lang3*.*Utils to com.alibaba.nacos.common.utils.*Utils (#6259) 2021-07-05 10:08:09 +08:00
mask
5aab4266eb
[ISSUE #6216] Unify SQL naming style. (#6239)
* [ISSUE #6216] Unify SQL naming style.

* [ISSUE #6216] Unify SQL naming style.

* [ISSUE #6216] Unify SQL naming style.
2021-07-05 09:53:16 +08:00
ZZQ的
e25d415056
[ISSUE #6253] [auth module] replace "*commons.lang3*.*Utils" to "com.alibaba.nacos.common.utils.*Utils" (#6260) 2021-07-05 08:57:35 +08:00
孙继峰
97abc6dd72
[ISSUE #5095] Add unit test for CollectionUtils (#6251) 2021-07-02 17:55:52 +08:00
ZZQ的
afb512b476
[ISSUE #6240] Add TypeUtils/TypeUtilsTest (#6247) 2021-07-02 17:55:15 +08:00
ZZQ的
2d40c5225b
[ISSUE #6241] Add DateFormatUtils、DateFormatUtilsTest (#6245)
* [ISSUE #6241] Add DateFormatUtils、DateFormatUtilsTest

* Format code
2021-07-02 17:53:19 +08:00
ZZQ的
119a193ba9
[ISSUE #6228] Add RandomUtils/RandomUtilsTest (#6243)
* [ISSUE #6228] Add RandomUtils/RandomUtilsTest

* [ISSUE #6228] Canonical code
2021-07-02 17:52:41 +08:00
brotherlu-xcq
e8812e5845
[FOR 5094 remote/core] add unit tests in nacos-core. (#6234)
* [ISSUE #5904] add unit test for directory remote/core.

* [ISSUE #5904] remove the all parameter constructor.
2021-07-02 17:47:04 +08:00
ZZQ的
888f50b5e4
Add NumberUtils、NumberUtilsTest;Modify NumberUtil dependency (#6227)
* Add NumberUtils、NumberUtilsTest;Modify NumberUtil dependency

* delete "isNumber" function

* [ISSUE #6221] Canonical code
2021-07-02 17:46:32 +08:00
brotherlu-xcq
89af6a97ae
[FOR 5094 remote/grpc] add unit tests in nacos-core. (#6226)
* [ISSUE #5904] add grpc directory unit tests.

* [ISSUE #5904] add grpc directory unit tests, for GrpcRequestAcceptor.java.

* [ISSUE #5904] fix ci problem.

* [ISSUE #5904] remove the all parameter constructor and add test scope for grpc-testing.
2021-07-02 17:45:45 +08:00
杨翊 SionYang
5c375afe81
Add SPI for ClientBeatExtensionHandler (#6250) 2021-07-02 17:17:24 +08:00
李晓双 Li Xiao Shuang
4f0900b0aa
[ISSUE #5092] Add unit tests for class ExternalUserPersistServiceImpl in nacos 2.0 (#6237)
* add unit test for ExternalUserPersistServiceImpl

* add unit test for ExternalUserPersistServiceImpl
2021-07-02 09:59:22 +08:00
ZZQ的
5fa6441099
[ISSUE #6216]All SQL keywords are modified to uppercase (#6233)
* [ISSUE #6216]All SQL keywords are modified to uppercase

* "count(0)" replace to "count(*)"

* All SQL keywords are modified to uppercase
2021-07-02 09:57:50 +08:00
ZZQ的
80078ae8ee
[ISSUE#3102] nacos-common module ArrayUtils、StringUtils (#6211)
* add ArrayUtils and TestClass

* modified StringUtils for remove common-lang3

* add Comment for StringUtils, Completion unit test

* fix variable name error and erro test

* Optimize the code.

* Edit author
2021-07-01 14:28:49 +08:00
孙继峰
16734cdec9
[ISSUE #5095] Add unit test for InternetAddressUtil (#6222)
* add unit test to InternetAddressUtil

* inline variable

* simplify assert
2021-07-01 11:33:21 +08:00
孙继峰
f36556657f
[ISSUE #6197] Use java.util.Objects instead of com.alibaba.nacos.common.utils.Objects (#6218) 2021-07-01 11:32:34 +08:00
杨翊 SionYang
eb2644fd37
Add SPI for upgrade checker. (#6217)
* Add SPI for upgrade checker.

* For checkstyle
2021-07-01 11:20:41 +08:00
ZZQ的
4cd6c58a95
[ISSUE #6198] BUG nacos-common>utils>StringUtils.join method NullPointerException #6198 (#6213)
* [ISSUE #6198] fix bug

* format code

* Modify Comment.Remove toString()
2021-06-30 19:13:40 +08:00
MajorHe1
5bb048cf7a
[ISSUE #6142] redo register and subscribe repeatedly if failed. get data from database if user and role info not in cache. (#6156)
* [ISSUE #6142] redo register and subscribe repeatedly if failed. get data from database if user and role info not in cache.

* [ISSUE #6142] simplify redo register and subscribe strategy, use set to record failed task.

* [ISSUE #6142] change the return value of redoRegisterEachInstance. move connected judgement to start of loop.

* [ISSUE #6142] add unit test for NamingGrpcConnectionEventListener. remove cache missed judgement of user and role.

* [ISSUE #6142] Merge origin develop branch to fix CI failure. Change thread sleep implement.
2021-06-30 17:44:07 +08:00
MajorHe1
f4cf28afba
[ISSUE #6204] Get data from database if user or role info not found in cache. (#6206) 2021-06-30 15:11:18 +08:00
杨翊 SionYang
aaacc0bb0e
Improve naming IT stability. (#6208) 2021-06-30 13:52:57 +08:00
李晓双 Li Xiao Shuang
ccd674497c
add unit test for ExternalRolePersistServiceImpl (#6193) 2021-06-30 10:26:55 +08:00
孙继峰
8dcf38f65b
[ISSUE #5095]Add unit test for VersionUtils (#6195)
* replace with try with resource

* replace with lambda

* add unit test

* inline variable
2021-06-30 10:18:29 +08:00
赵延
3fd77bc7e0
If the client already disconnect, ignore this request to avoid NPE. (#6175)
* if the client already disconnect, ignore this request to avoid npe.

* unify code with DistroClientDataProcessor.

* print warn info when client already disconnect.

* transfer client check logic to method.

* if client is not ephemeral, is illegal.
2021-06-30 10:15:06 +08:00
李晓双 Li Xiao Shuang
95892bcd24
[ISSUE #5092] Add unit tests for class EmbeddedPermissionPersistServiceImpl in nacos 2.0 (#6183)
* add unit test for EmbeddedPermissionPersistServiceImpl

* test() to test
2021-06-29 15:14:28 +08:00
李晓双 Li Xiao Shuang
0b66c540bc
add unit test for EmbeddedRolePersistServiceImpl (#6192) 2021-06-29 15:12:04 +08:00
李晓双 Li Xiao Shuang
8648642f60
[ISSUE #5092] Add unit tests for class EmbeddedUserPersistServiceImpl in nacos 2.0 (#6194)
* add unit test for EmbeddedUserPersistServiceImpl

* add unit test for EmbeddedUserPersistServiceImpl

* add unit test for EmbeddedUserPersistServiceImpl
2021-06-29 15:11:15 +08:00
ZZQ的
faca105694
[ISSUE #6169] fix cluster page internationalization (#6179) 2021-06-29 09:38:34 +08:00
ZZQ的
842c21247d
[#6178] Unified configuration page style (#6165)
* Unified configuration page style

* Unified all button style
2021-06-29 09:31:16 +08:00
李晓双 Li Xiao Shuang
ad3b62e43c
[ISSUE #5092] Add unit tests for class ExternalPermissionPersistServiceImpl in nacos 2.0 (#6184)
* add unit test for ExternalPermissionPersistServiceImpl

* add unit test for ExternalPermissionPersistServiceImpl
2021-06-28 19:22:29 +08:00
ZZQ的
e0efe71b67
[ISSES#1469] add cluster delete button (#6170) 2021-06-28 10:14:17 +08:00
brotherlu-xcq
01e3352e8e
[ISSUE #5884] add permission check to history config. (#6173) 2021-06-28 10:10:41 +08:00
shalk(xiao kun)
38e907584a
[ISSUE #5807]Add unit tests for package com.alibaba.nacos.client.utils in nacos (#6136)
* add more ut for package c.a.nacos.client.utils

* fix ParamUtilTest

* add more ut for package c.a.nacos.client.utils

* fix ParamUtilTest

* fix test

* fix ut
2021-06-28 09:55:10 +08:00
lzp0412
6cbd89eddb
Fix: use revision to determine whether the service has changed (#6164) 2021-06-25 18:24:52 +08:00
ZZQ的
ebf7c7143f
see issue #6100 (#6163) 2021-06-25 18:24:07 +08:00
shalk(xiao kun)
9e516839ed
[ISSUE #5806]Add unit tests for package com.alibaba.nacos.client.logging in nacos (#6137)
* add ut for package c.a.nacos.client.logging

* fix Log4J2NacosLoggingTest
2021-06-25 18:00:06 +08:00
brotherlu-xcq
041983269c
[FOR 5094 remote/control] add unit tests in nacos-core. (#6157)
* [unit test] [nacos-core remote] add unit tests of MonitorKeyMatcher.

* [unit test] [nacos-core remote/control] add unit tests of TestMonitorPoint and TpsRecorder.

* [unit test] [nacos-core remote/control] fix ci issue.

* [unit test] [nacos-core remote/control] fix ci issue.

* [unit test] [nacos-core remote/control] fix ci issue.

* [nacos-core] [unit test] try to fix MemberUtilTest problem

* [unit test] [nacos-core remote/control] fix not shutdown issue.

* [unit test] [nacos-core remote/control] fix ci issue in LookupFactoryTest.
2021-06-25 14:33:10 +08:00
nov.lzf
a9e7b15760
clear future on callback timeout (#6141)
* concurrent sync flag fix

* fix check style

* clear future on callback timeout bugfix

* clear future on callback timeout bugfix

* clear future on callback timeout bugfix
2021-06-23 16:39:20 +08:00
MajorHe1
fb9668a35e
[ISSUE #6132] RemoteRequestAuthFilter get error message from AccessException correctly (#6133) 2021-06-22 21:11:32 +08:00
杨翊 SionYang
f2676bc6ca
[ISSUE#6129] Add ServerConfigChangeEvent when config file changed. (#6130)
* Add ServerConfigChangeEvent when config file changed.

* Upgrade config after notify ServerConfigChangeEvent
2021-06-22 14:39:37 +08:00
Pixy Yuan
ea803a85ae
[ISSUE #6109] Using configuration to register upgrade helpers as conditional beans. (#6115) 2021-06-22 14:07:57 +08:00
杨翊 SionYang
4a474ce30a
For #6116. Refactor ClientManager and make register client and schedule checkTask is atomic. (#6118) 2021-06-22 09:49:59 +08:00
Kamran Ahmed
6e0391f4b9
Optimize the nacos client home page Chinese account gibber. (#6107) 2021-06-21 11:47:29 +08:00
杨翊 SionYang
0d3bf616e6
[ISSUE#5976] Fail CI directly if UT can't pass. (#6106)
* For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

* For #5976. fail CI directly if UT can't pass.
2021-06-18 17:49:51 +08:00
杨翊 SionYang
7c30acc4dc
[ISSUE#5985] Fix unit test problem for nacos-core. (#6102)
* Fix #5985, Fix unit test problem for nacos-core.

* For checkstyle
2021-06-17 21:05:27 +08:00
realJackSun
c13f800c5b
[#5983] Fix unit tests in nacos-config (#5995) 2021-06-17 20:34:21 +08:00
杨翊 SionYang
ade652618e
Fix #5990, fix unit test problem. (#6101) 2021-06-17 20:28:56 +08:00