Raise the version of the supported specification (#391)
This commit is contained in:
parent
2996ce45ea
commit
01de6e6800
3 changed files with 7 additions and 5 deletions
|
|
@ -8,10 +8,11 @@ import kotlinx.serialization.json.JsonObject
|
|||
// Protocol Version Constants
|
||||
// ============================================================================
|
||||
|
||||
public const val LATEST_PROTOCOL_VERSION: String = "2025-03-26"
|
||||
public const val LATEST_PROTOCOL_VERSION: String = "2025-06-18"
|
||||
|
||||
public val SUPPORTED_PROTOCOL_VERSIONS: List<String> = listOf(
|
||||
LATEST_PROTOCOL_VERSION,
|
||||
"2025-03-26",
|
||||
"2024-11-05",
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ class OldSchemaTypesTest {
|
|||
@Test
|
||||
fun `should have correct latest protocol version`() {
|
||||
assertNotEquals("", LATEST_PROTOCOL_VERSION)
|
||||
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
|
||||
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -24,7 +24,7 @@ class OldSchemaTypesTest {
|
|||
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
|
||||
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
|
||||
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
|
||||
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
|
||||
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
|
|
@ -13,15 +13,16 @@ class CommonTypeTest {
|
|||
@Test
|
||||
fun `should have correct latest protocol version`() {
|
||||
assertNotEquals("", LATEST_PROTOCOL_VERSION)
|
||||
assertEquals("2025-03-26", LATEST_PROTOCOL_VERSION)
|
||||
assertEquals("2025-06-18", LATEST_PROTOCOL_VERSION)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `should have correct supported protocol versions`() {
|
||||
assertIs<List<String>>(SUPPORTED_PROTOCOL_VERSIONS)
|
||||
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains(LATEST_PROTOCOL_VERSION))
|
||||
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2025-03-26"))
|
||||
assertTrue(SUPPORTED_PROTOCOL_VERSIONS.contains("2024-11-05"))
|
||||
assertEquals(2, SUPPORTED_PROTOCOL_VERSIONS.size)
|
||||
assertEquals(3, SUPPORTED_PROTOCOL_VERSIONS.size)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
|||
Loading…
Reference in a new issue