Skip to content

Commit

Permalink
kt lint
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Feb 19, 2024
1 parent 7396517 commit 69d4b3d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ internal object PluginSettings {
val DISABLE_HTTP_COOKIE: Setting<Boolean> = Setting.boolSetting(
DISABLE_HTTP_COOKIE_KEY,
false,
NodeScope, Dynamic
NodeScope,
Dynamic
)

val MAX_CONNECTIONS_PER_ROUTE: Setting<Int> = Setting.intSetting(
Expand Down Expand Up @@ -445,7 +446,7 @@ internal object PluginSettings {
HOST_DENY_LIST,
EMAIL_USERNAME,
EMAIL_PASSWORD,
DISABLE_HTTP_COOKIE,
DISABLE_HTTP_COOKIE
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ internal class PluginSettingsTests {
PluginSettings.ALLOWED_CONFIG_TYPES,
PluginSettings.TOOLTIP_SUPPORT,
PluginSettings.HOST_DENY_LIST,
PluginSettings.DISABLE_HTTP_COOKIE,
PluginSettings.DISABLE_HTTP_COOKIE
)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ internal class SendWithMockServerCookieIT : PluginRestTestCase() {

// send test message
var sendResponse = executeRequest(
RestRequest.Method.POST.name, "$PLUGIN_BASE_URI/feature/test/$configId", "", RestStatus.OK.status
RestRequest.Method.POST.name,
"$PLUGIN_BASE_URI/feature/test/$configId",
"",
RestStatus.OK.status
)

logger.info("sendResponse1={}", sendResponse)
Expand All @@ -59,7 +62,9 @@ internal class SendWithMockServerCookieIT : PluginRestTestCase() {
// send test message again with cookie set
sendResponse = executeRequest(
RestRequest.Method.POST.name,
"$PLUGIN_BASE_URI/feature/test/$configId", "", RestStatus.INTERNAL_SERVER_ERROR.status
"$PLUGIN_BASE_URI/feature/test/$configId",
"",
RestStatus.INTERNAL_SERVER_ERROR.status
)

logger.info("sendResponse2={}", sendResponse)
Expand All @@ -76,7 +81,8 @@ internal class SendWithMockServerCookieIT : PluginRestTestCase() {
fun `test webhook return with cookie disabled`() {
// update settings
executeRequest(
RestRequest.Method.PUT.name, "/_cluster/settings",
RestRequest.Method.PUT.name,
"/_cluster/settings",
"""
{
"transient": {
Expand Down Expand Up @@ -113,7 +119,10 @@ internal class SendWithMockServerCookieIT : PluginRestTestCase() {

// send test message
var sendResponse = executeRequest(
RestRequest.Method.POST.name, "$PLUGIN_BASE_URI/feature/test/$configId", "", RestStatus.OK.status
RestRequest.Method.POST.name,
"$PLUGIN_BASE_URI/feature/test/$configId",
"",
RestStatus.OK.status
)

logger.info("sendResponse1={}", sendResponse)
Expand All @@ -125,7 +134,9 @@ internal class SendWithMockServerCookieIT : PluginRestTestCase() {
// send test message again with cookie set
sendResponse = executeRequest(
RestRequest.Method.POST.name,
"$PLUGIN_BASE_URI/feature/test/$configId", "", RestStatus.OK.status
"$PLUGIN_BASE_URI/feature/test/$configId",
"",
RestStatus.OK.status
)

logger.info("sendResponse2={}", sendResponse)
Expand Down

0 comments on commit 69d4b3d

Please sign in to comment.