Skip to content

Commit

Permalink
run sbt scalafmtAll
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Kao <[email protected]>
  • Loading branch information
seankao-az committed Mar 13, 2024
1 parent 73823e9 commit f323925
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,18 @@ object FlintMetadata {
* Construct Flint metadata with JSON content, index settings, and latest log entry.
*
* @param content
* JSON content
* JSON content
* @param settings
* index settings
* index settings
* @param latestLogEntry
* latest metadata log entry
* latest metadata log entry
* @return
* Flint metadata
* Flint metadata
*/
def apply(content: String, settings: String, latestLogEntry: FlintMetadataLogEntry): FlintMetadata = {
def apply(
content: String,
settings: String,
latestLogEntry: FlintMetadataLogEntry): FlintMetadata = {
val metadata = FlintMetadata(content, settings)
metadata.copy(latestLogEntry = Option(latestLogEntry))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ class FlintTransactionITSuite extends OpenSearchTransactionSuite with Matchers {
test("get index metadata with latest log entry") {
val testCreateTime = 1234567890123L
val flintMetadataLogEntry = FlintMetadataLogEntry(
id = testLatestId,
seqNo = UNASSIGNED_SEQ_NO,
primaryTerm = UNASSIGNED_PRIMARY_TERM,
createTime = testCreateTime,
state = ACTIVE,
dataSource = testDataSourceName,
error = "")
id = testLatestId,
seqNo = UNASSIGNED_SEQ_NO,
primaryTerm = UNASSIGNED_PRIMARY_TERM,
createTime = testCreateTime,
state = ACTIVE,
dataSource = testDataSourceName,
error = "")
val metadata = mock[FlintMetadata]
when(metadata.getContent).thenReturn("{}")
when(metadata.indexSettings).thenReturn(None)
Expand Down

0 comments on commit f323925

Please sign in to comment.