Round-trip integration tests #3
|
@ -77,7 +77,9 @@ class BackupClientTest {
|
|||
assertDoesNotThrow("should recover file '$path'") {
|
||||
runBlocking {
|
||||
backupClient.restoreFile(
|
||||
individualRestoreDir.resolve(path).parent, backupKey, path.toString()
|
||||
individualRestoreDir.resolve(path).parent,
|
||||
backupKey,
|
||||
path.toString(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -102,12 +104,14 @@ class BackupClientTest {
|
|||
} else {
|
||||
val originalBytes = path.toFile().readBytes().asList()
|
||||
assertEquals(
|
||||
originalBytes, restorePath.toFile().readBytes().asList(),
|
||||
"File contents of '$path' should equal"
|
||||
originalBytes,
|
||||
restorePath.toFile().readBytes().asList(),
|
||||
"File contents of '$path' should equal",
|
||||
)
|
||||
assertEquals(
|
||||
originalBytes, individualRestorePath.toFile().readBytes().asList(),
|
||||
"File contents of '$path' should equal (individual)"
|
||||
originalBytes,
|
||||
individualRestorePath.toFile().readBytes().asList(),
|
||||
"File contents of '$path' should equal (individual)",
|
||||
)
|
||||
}
|
||||
// cleanup
|
||||
|
|
Reference in New Issue