-
Notifications
You must be signed in to change notification settings - Fork 27
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
CORE-12539 - Update to latest version of jackson and mockito #3702
Changes from all commits
bb88a4e
568071a
86c23ea
1648d65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,18 @@ import io.javalin.core.util.Header.WWW_AUTHENTICATE | |
import net.corda.rest.server.apigen.test.TestJavaPrimitivesRestResourceImpl | ||
import net.corda.rest.server.config.models.RestServerSettings | ||
import net.corda.rest.server.impl.apigen.processing.openapi.schema.toExample | ||
import net.corda.rest.test.* | ||
import net.corda.rest.test.CustomNonSerializableString | ||
import net.corda.rest.test.CustomSerializationAPIImpl | ||
import net.corda.rest.test.CustomUnsafeString | ||
import net.corda.rest.test.TestEntityRestResourceImpl | ||
import net.corda.rest.test.TestFileUploadImpl | ||
import net.corda.rest.test.TestHealthCheckAPIImpl | ||
import net.corda.rest.test.utils.ChecksumUtil | ||
import net.corda.rest.test.utils.TestClientFileUpload | ||
import net.corda.rest.test.utils.TestHttpClientUnirestImpl | ||
import net.corda.rest.test.utils.WebRequest | ||
import net.corda.rest.test.utils.WebResponse | ||
import net.corda.rest.test.utils.multipartDir | ||
import net.corda.rest.tools.HttpVerb.DELETE | ||
import net.corda.rest.tools.HttpVerb.GET | ||
import net.corda.rest.tools.HttpVerb.POST | ||
|
@@ -23,12 +34,6 @@ import org.junit.jupiter.api.Test | |
import java.time.Instant | ||
import java.time.ZonedDateTime | ||
import kotlin.test.assertEquals | ||
import net.corda.rest.test.utils.ChecksumUtil | ||
import net.corda.rest.test.utils.TestClientFileUpload | ||
import net.corda.rest.test.utils.TestHttpClientUnirestImpl | ||
import net.corda.rest.test.utils.WebRequest | ||
import net.corda.rest.test.utils.WebResponse | ||
import net.corda.rest.test.utils.multipartDir | ||
|
||
class RestServerRequestsTest : RestServerTestBase() { | ||
companion object { | ||
|
@@ -360,7 +365,7 @@ class RestServerRequestsTest : RestServerTestBase() { | |
val timeCallResponse = client.call(POST, WebRequest<Any>("health/timecall", """ { "time": { "time": "$time" } } """), userName, password) | ||
|
||
assertEquals(HttpStatus.SC_OK, timeCallResponse.responseStatus) | ||
assertEquals("2020-01-01T11:00Z[UTC]", timeCallResponse.body) | ||
assertEquals("2020-01-01T11:00Z", timeCallResponse.body) | ||
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. This change is triggered by an Jackson update. See FasterXML/jackson-modules-java8#204 and FasterXML/jackson-modules-java8#267 I think this change is ok as the new format is ISO-8601 compatible. @mnesbit , do you agree this change is ok? 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. yes it is fine and indeed probably more canonical |
||
} | ||
|
||
@Test | ||
|
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.
Probably as a separate PR, but it would be worth upgrading SnakeYaml version to eliminate reported C1 vulnerability.