RNET-1132: Add tests for sync schema migration (#3570) #2586
Results Code Coverage ❌
❌ TestResults.Linux.xml
6144 tests were completed in 1103s with 6119 passed, 3 failed and 22 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Links_AtlasToRealm. | 4✔️ | 1❌ | 9s | |
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_RealmValueLinks_AtlasToRealm. | 4✔️ | 1❌ | 12s | |
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. | 4✔️ | 1❌ | 9s |
❌ Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Links_AtlasToRealm.
Realms.Tests.Sync.StaticQueriesTests
✔️ RealmObjectAPI_Links_AtlasToRealm(Single link)
❌ RealmObjectAPI_Links_AtlasToRealm(List)
Expected: 2
But was: 0
✔️ RealmObjectAPI_Links_AtlasToRealm(Dictionary)
✔️ RealmObjectAPI_Links_AtlasToRealm(Set)
✔️ RealmObjectAPI_Links_AtlasToRealm(All types)
❌ Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_RealmValueLinks_AtlasToRealm.
Realms.Tests.Sync.StaticQueriesTests
✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Single link)
❌ RealmObjectAPI_RealmValueLinks_AtlasToRealm(List)
Expected: Object
But was: Null
✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Dictionary)
✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(Set)
✔️ RealmObjectAPI_RealmValueLinks_AtlasToRealm(All types)
❌ Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests.
Realms.Tests.Sync.SyncMigrationTests
❌ Migration_FailsWithFutureVersion
Expected: String containing "schema version in BIND 3 is greater than latest schema version 2"
But was: "Client provided invalid schema version: client presented schema version "3" is greater than latest schema version "2" Logs: http://34.231.21.249:42950/groups/661adff5b30a8a84b2264d80/apps/661ae009b30a8a84b2264f42/logs?co_id=661ae6afb30a8a84b227e51a"
✔️ Model_CanMigratePropertyOptionality
✔️ Model_CanRemoveField
✔️ SameRealm_CanBeMigratedSkippingVersions
✔️ SameRealm_CanBeMigratedThroughConsecutiveVersions
Annotations
Check failure on line -1 in No path available
github-actions / Results Code Coverage
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_Links_AtlasToRealm. ► Realms.Tests.Sync.StaticQueriesTests ► RealmObjectAPI_Links_AtlasToRealm(List)
Failed test found in:
TestResults.Linux.xml
Error:
Expected: 2
But was: 0
Raw output
at Realms.Tests.Sync.StaticQueriesTests.<>c__DisplayClass19_0.<<RealmObjectAPI_Links_AtlasToRealm>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 551
--- End of stack trace from previous location ---
at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 70
at Realms.Tests.TestHelpers.<>c__DisplayClass33_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 294
--- End of stack trace from previous location ---
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
Check failure on line -1 in No path available
github-actions / Results Code Coverage
Realm.Tests.dll.Realms.Tests.Sync.StaticQueriesTests.RealmObjectAPI_RealmValueLinks_AtlasToRealm. ► Realms.Tests.Sync.StaticQueriesTests ► RealmObjectAPI_RealmValueLinks_AtlasToRealm(List)
Failed test found in:
TestResults.Linux.xml
Error:
Expected: Object
But was: Null
Raw output
at Realms.Tests.Sync.StaticQueriesTests.<RealmObjectAPI_RealmValueLinks_AtlasToRealm>g__AssertEqual|22_10(RealmValue retrieved, RealmValue original) in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 794
at Realms.Tests.Sync.StaticQueriesTests.<>c__DisplayClass22_0.<<RealmObjectAPI_RealmValueLinks_AtlasToRealm>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/StaticQueriesTests.cs:line 765
--- End of stack trace from previous location ---
at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 70
at Realms.Tests.TestHelpers.<>c__DisplayClass33_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 294
--- End of stack trace from previous location ---
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
Check failure on line -1 in No path available
github-actions / Results Code Coverage
Realm.Tests.dll.Realms.Tests.Sync.SyncMigrationTests. ► Realms.Tests.Sync.SyncMigrationTests ► Migration_FailsWithFutureVersion
Failed test found in:
TestResults.Linux.xml
Error:
Expected: String containing "schema version in BIND 3 is greater than latest schema version 2"
But was: "Client provided invalid schema version: client presented schema version "3" is greater than latest schema version "2" Logs: http://34.231.21.249:42950/groups/661adff5b30a8a84b2264d80/apps/661ae009b30a8a84b2264f42/logs?co_id=661ae6afb30a8a84b227e51a"
Raw output
at Realms.Tests.Sync.SyncMigrationTests.<Migration_FailsWithFutureVersion>b__3_0() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/Sync/SyncMigrationTests.cs:line 256
at TaskExtensions.Timeout(Task task, Int32 millisecondTimeout, Task errorTask, String detail) in /home/runner/work/realm-dotnet/realm-dotnet/Realm/Realm/Extensions/TaskExtensions.cs:line 70
at Realms.Tests.TestHelpers.<>c__DisplayClass33_0.<<RunAsyncTest>b__0>d.MoveNext() in /home/runner/work/realm-dotnet/realm-dotnet/Tests/Realm.Tests/TestHelpers.cs:line 294
--- End of stack trace from previous location ---
at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)