0.3.16-pre.3.fix.2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/unit_tests/migration.rs
|
||||
// version: 9
|
||||
// version: 10
|
||||
|
||||
fn applied(version: i64, name: &str, checksum: &str) -> super::AppliedMigration {
|
||||
return super::AppliedMigration { checksum: checksum.to_owned(), name: name.to_owned(), version };
|
||||
@@ -51,7 +51,8 @@ fn pre_003_v002_registry_is_complete_and_keeps_v000_v001_checksums_stable() {
|
||||
assert_eq!(v002.resources.len(), 32);
|
||||
assert_eq!(super::migration_checksum(v002), "ff21605ed45f7ab4c0f92bbb692700b4118a9488b04d50a31d259ac59bdb550e");
|
||||
assert!(super::validate_embedded_registry(super::EMBEDDED_MIGRATIONS).is_ok());
|
||||
assert_eq!(crate::current_migration_version(), 3);
|
||||
assert_eq!(crate::current_migration_version(), 2);
|
||||
assert_eq!(crate::current_migration_version_v003(), 3);
|
||||
let full = [
|
||||
applied(0, v000.name, super::migration_checksum(v000).as_str()),
|
||||
applied(1, v001.name, super::migration_checksum(v001).as_str()),
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-store-postgres-lib/unit_tests/migration_v003.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
fn applied(version: i64, name: &str, checksum: &str) -> super::AppliedMigration {
|
||||
return super::AppliedMigration { checksum: checksum.to_owned(), name: name.to_owned(), version };
|
||||
@@ -7,7 +7,7 @@ fn applied(version: i64, name: &str, checksum: &str) -> super::AppliedMigration
|
||||
|
||||
#[test]
|
||||
fn pre_003_v003_extension_preserves_frozen_history_and_advances_current_version() {
|
||||
assert_eq!(crate::current_migration_version(), 3);
|
||||
assert_eq!(crate::current_migration_version_v003(), 3);
|
||||
assert_eq!(super::V000_CHECKSUM, "d29068b8c13b9dc0cc9ef6aaadd0fa12d41e0fe4c56541a1118c4bfc846a1450");
|
||||
assert_eq!(super::V001_CHECKSUM, "31488cda2f08f3f46c4cdbdbb6c18c243662fada02eac4487040c8735d72cc51");
|
||||
assert_eq!(super::V002_CHECKSUM, "ff21605ed45f7ab4c0f92bbb692700b4118a9488b04d50a31d259ac59bdb550e");
|
||||
|
||||
Reference in New Issue
Block a user