Skip to content

Commit f9831a9

Browse files
committed
fix(samples): Fix cache evict system test to match actual span op
1 parent 83dfbfa commit f9831a9

File tree

9 files changed

+9
-9
lines changed
  • sentry-samples
    • sentry-samples-spring-boot-4-opentelemetry/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4-otlp/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4-webflux/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-4/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta-opentelemetry-noagent/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta-opentelemetry/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-jakarta/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot-webflux-jakarta/src/test/kotlin/io/sentry/systemtest
    • sentry-samples-spring-boot/src/test/kotlin/io/sentry/systemtest

9 files changed

+9
-9
lines changed

sentry-samples/sentry-samples-spring-boot-4-opentelemetry/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4-otlp/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4-webflux/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-4/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta-opentelemetry-noagent/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta-opentelemetry/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-jakarta/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot-webflux-jakarta/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

sentry-samples/sentry-samples-spring-boot/src/test/kotlin/io/sentry/systemtest/CacheSystemTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class CacheSystemTest {
4545
restClient.deleteCachedTodo(1L)
4646

4747
testHelper.ensureTransactionReceived { transaction, _ ->
48-
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.remove")
48+
testHelper.doesTransactionContainSpanWithOp(transaction, "cache.evict")
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)