Skip to content

Commit

Permalink
fix: test who used update ops for create
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasBousselin committed Feb 10, 2025
1 parent 6783f1c commit 101fd66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ enum class Operation(val key: String, private val matchingOperationGroups: Set<O
setOf(FEDERATION_OPS)
);

fun getMatchingOperations() = matchingOperationGroups + this
fun getMatchingOperations(): Set<Operation> = matchingOperationGroups + this

companion object {
fun fromString(operation: String): Operation? =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class DistributedEntityProvisionServiceTests : WithTimescaleContainer, WithKafka

@Test
fun `distributeCreateEntityForContextSources should update the result`() = runTest {
val csr = spyk(gimmeRawCSR(operations = listOf(Operation.UPDATE_OPS)))
val csr = spyk(gimmeRawCSR(operations = listOf(Operation.REDIRECTION_OPS)))
val firstURI = URI("id:1")
val secondURI = URI("id:2")
coEvery {
Expand All @@ -218,7 +218,7 @@ class DistributedEntityProvisionServiceTests : WithTimescaleContainer, WithKafka
contexts,
result
)
coVerify {
coVerify(exactly = 2) {
distributedEntityProvisionService.sendDistributedInformation(any(), any(), any(), HttpMethod.POST)
}

Expand Down

0 comments on commit 101fd66

Please sign in to comment.