Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ fun mockSnapshotInfo(
endTime: Long = randomNonNegativeLong(),
reason: String? = null, // reason with valid string leads to FAILED snapshot state
policyName: String = "daily-snapshot",
remoteStoreIndexShallowCopy: Boolean = randomBoolean(),
): SnapshotInfo {
val result = SnapshotInfo(
SnapshotId(name, UUIDs.randomBase64UUID()),
Expand All @@ -220,6 +221,7 @@ fun mockSnapshotInfo(
emptyList(),
false,
mapOf("sm_policy" to policyName),
remoteStoreIndexShallowCopy
)
return result
}
Expand All @@ -231,6 +233,7 @@ fun mockSnapshotInfo(
*/
fun mockInProgressSnapshotInfo(
name: String = randomAlphaOfLength(10),
remoteStoreIndexShallowCopy: Boolean = randomBoolean(),
): SnapshotInfo {
val entry = SnapshotsInProgress.Entry(
Snapshot("repo", SnapshotId(name, UUIDs.randomBase64UUID())),
Expand All @@ -245,6 +248,7 @@ fun mockInProgressSnapshotInfo(
"",
mapOf("sm_policy" to "daily-snapshot"),
Version.CURRENT,
remoteStoreIndexShallowCopy
)
return SnapshotInfo(entry)
}
Expand Down