diff --git a/src/test/kotlin/org/opensearch/indexmanagement/snapshotmanagement/TestUtils.kt b/src/test/kotlin/org/opensearch/indexmanagement/snapshotmanagement/TestUtils.kt index 5a3c016d2..c9ecbf1eb 100644 --- a/src/test/kotlin/org/opensearch/indexmanagement/snapshotmanagement/TestUtils.kt +++ b/src/test/kotlin/org/opensearch/indexmanagement/snapshotmanagement/TestUtils.kt @@ -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()), @@ -220,6 +221,7 @@ fun mockSnapshotInfo( emptyList(), false, mapOf("sm_policy" to policyName), + remoteStoreIndexShallowCopy ) return result } @@ -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())), @@ -245,6 +248,7 @@ fun mockInProgressSnapshotInfo( "", mapOf("sm_policy" to "daily-snapshot"), Version.CURRENT, + remoteStoreIndexShallowCopy ) return SnapshotInfo(entry) }