-
Notifications
You must be signed in to change notification settings - Fork 354
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
Update Ktor to 3.0.3 #2066
Open
timemanx
wants to merge
9
commits into
ExpediaGroup:master
Choose a base branch
from
timemanx:ktor-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+102
−98
Open
Update Ktor to 3.0.3 #2066
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
c1c2254
update ktor to 3.0.1
TheDome0 ab6934b
rootPath is no longer of ApplicationEnvironment
TheDome0 c45bb27
migrate routing & testApplication no longer auto loads application.conf
TheDome0 30c32b9
throw & catch new InvalidPayloadException to return Unsupported Media…
TheDome0 f43f1ab
Fix build errors due to Ktor update
timemanx 8cf852d
Bump supporting library versions
timemanx f359f69
Bump Ktor to 3.0.3
timemanx f454845
Bump graphql-java, dataloader and federation versions
timemanx d2a7347
Remove exception class InvalidPayloadException and re-throw CannotTra…
timemanx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ class CustomScalarKotlinxTests { | |
|
||
@Test | ||
fun `verify custom scalars are correctly serialized and deserialized`() { | ||
val engine = embeddedServer(CIO, port = 0, module = Application::graphQLModule) | ||
val embeddedServer = embeddedServer(CIO, port = 0, module = Application::graphQLModule) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
try { | ||
engine.start() | ||
embeddedServer.start() | ||
runBlocking { | ||
val port = engine.resolvedConnectors().first().port | ||
val port = embeddedServer.engine.resolvedConnectors().first().port | ||
val client = GraphQLKtorClient(url = URL("http://localhost:$port/graphql")) | ||
|
||
val undefinedLocaleQuery = LocaleQuery(variables = LocaleQuery.Variables()) | ||
|
@@ -52,17 +52,17 @@ class CustomScalarKotlinxTests { | |
assertEquals(ULocale.CANADA, localeResult.data?.localeQuery) | ||
} | ||
} finally { | ||
engine.stop(1000, 1000) | ||
embeddedServer.stop(1000, 1000) | ||
} | ||
} | ||
|
||
@Test | ||
fun `verify undefined optionals are correctly serialized and deserialized`() { | ||
val engine = embeddedServer(CIO, port = 0, module = Application::graphQLModule) | ||
val embeddedServer = embeddedServer(CIO, port = 0, module = Application::graphQLModule) | ||
try { | ||
engine.start() | ||
embeddedServer.start() | ||
runBlocking { | ||
val port = engine.resolvedConnectors().first().port | ||
val port = embeddedServer.engine.resolvedConnectors().first().port | ||
val client = GraphQLKtorClient(url = URL("http://localhost:$port/graphql")) | ||
|
||
val undefinedWrapperQuery = OptionalScalarQuery(variables = OptionalScalarQuery.Variables()) | ||
|
@@ -97,15 +97,15 @@ class CustomScalarKotlinxTests { | |
assertEquals(0, defaultResult.optionalUUIDList?.size) | ||
} | ||
} finally { | ||
engine.stop(1000, 1000) | ||
embeddedServer.stop(1000, 1000) | ||
} | ||
} | ||
|
||
@Test | ||
fun `verify null optionals are correctly serialized and deserialized`() { | ||
val engine = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
val embeddedServer = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
try { | ||
engine.start() | ||
embeddedServer.start() | ||
runBlocking { | ||
val client = GraphQLKtorClient(url = URL("http://localhost:8080/graphql")) | ||
|
||
|
@@ -142,15 +142,15 @@ class CustomScalarKotlinxTests { | |
assertNull(nullResult.optionalUUIDList) | ||
} | ||
} finally { | ||
engine.stop(1000, 1000) | ||
embeddedServer.stop(1000, 1000) | ||
} | ||
} | ||
|
||
@Test | ||
fun `verify defined optionals are correctly serialized and deserialized`() { | ||
val engine = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
val embeddedServer = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
try { | ||
engine.start() | ||
embeddedServer.start() | ||
runBlocking { | ||
val client = GraphQLKtorClient(url = URL("http://localhost:8080/graphql")) | ||
|
||
|
@@ -187,15 +187,15 @@ class CustomScalarKotlinxTests { | |
assertEquals(randomUUID, result.optionalUUIDList?.get(0)) | ||
} | ||
} finally { | ||
engine.stop(1000, 1000) | ||
embeddedServer.stop(1000, 1000) | ||
} | ||
} | ||
|
||
@Test | ||
fun `verify serialization and deserialization of required type`() { | ||
val engine = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
val embeddedServer = embeddedServer(CIO, port = 8080, module = Application::graphQLModule) | ||
try { | ||
engine.start() | ||
embeddedServer.start() | ||
runBlocking { | ||
val client = GraphQLKtorClient(url = URL("http://localhost:8080/graphql")) | ||
|
||
|
@@ -232,7 +232,7 @@ class CustomScalarKotlinxTests { | |
assertEquals(wrapper.requiredUUIDList[0], result.requiredUUIDList[0]) | ||
} | ||
} finally { | ||
engine.stop(1000, 1000) | ||
embeddedServer.stop(1000, 1000) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Websockets plugin now uses
kotlin.time
.https://github.com/ktorio/ktor/blob/main/CHANGELOG.md#improvements-3
https://youtrack.jetbrains.com/issue/KTOR-7446