Skip to content

Commit

Permalink
fix: unit test case (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
guqing authored Oct 14, 2024
1 parent ab34a39 commit 4fb07a3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/test/java/run/halo/gradle/steps/SetupHaloStepTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ void outputTest() {
);
assertThat(result).isEqualTo(
"""
\u001B[32m======================================================\u001B[0m
Halo 初始化成功 \s
访问地址:http://localhost:8090/console?language=zh-CN
用户名:admin \s
密码:admin \s
API 文档:http://localhost:8090/swagger-ui.html \s
\u001B[32m======================================================\u001B[0m
\u001B[32m=======================================================================\u001B[0m
Halo 初始化成功 \s
访问地址:http://localhost:8090/console?language=zh-CN \s
用户名:admin \s
密码:admin \s
API 文档:http://localhost:8090/swagger-ui.html \s
插件开发文档:https://docs.halo.run/developer-guide/plugin/introduction
\u001B[32m=======================================================================\u001B[0m
""");
}
}
Expand Down
10 changes: 10 additions & 0 deletions src/test/java/run/halo/gradle/utils/HaloServerConfigureTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ void mergeUserDefinedTest() throws JSONException, JsonProcessingException {
}
},
"halo": {
"security": {
"basic-auth": {
"disabled": false
}
},
"external-url": "http://localhost:8090",
"plugin": {
"runtime-mode": "development",
Expand Down Expand Up @@ -114,6 +119,11 @@ void mergeUserDefinedTest() throws JSONException, JsonProcessingException {
}
},
"halo": {
"security" : {
"basic-auth" : {
"disabled" : false
}
},
"external-url": "http://localhost:8080",
"plugin": {
"runtime-mode": "development",
Expand Down

0 comments on commit 4fb07a3

Please sign in to comment.