-
Notifications
You must be signed in to change notification settings - Fork 13k
[Issue#12614] Display the number of days to retain the configuration history dynamically on the front end #12616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…cally on the front end
第三个单元测试不通过。 请问,这种情况下,该如何做单元测试呢?
|
如果一定放在PropertyUtil中的话, 可以通过反射调用loadSetting,修改PropertyUtil中的配置值。 当然调用前要先设置对应的配置值,比如用System.setProperty. |
…cally on the front end
5970929
to
d4cb0bc
Compare
@KomachiSion 非常感谢你的回复,按照你的思路,该问题已经解决。 同时,又遇到了新的问题,其他的单元测试不通过,我在本地执行以下命令,都能通过。实在找不到原因,麻烦帮忙看看。
我在本地执行上述命令,都能通过。 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #12616 +/- ##
=============================================
- Coverage 69.70% 69.61% -0.09%
+ Complexity 9431 9415 -16
=============================================
Files 1275 1275
Lines 41232 41236 +4
Branches 4374 4374
=============================================
- Hits 28740 28707 -33
- Misses 10412 10449 +37
Partials 2080 2080
... and 35 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
issue: #12614
What is the purpose of the change
Display the number of days to retain the configuration history dynamically on the front end, the current value displayed on the front end is hard-coded (30 days)
Brief changelog
"config_retention_days": "720"
to the response of the APIv1/console/server/state
.config_retention_days
on the front end.Verifying this change
Follow this checklist to help us incorporate your contribution quickly and easily:
[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.