From 0774933414cf58dfce73bf6a6041769e4e171c00 Mon Sep 17 00:00:00 2001 From: Laplie Anderson Date: Tue, 17 Sep 2019 13:53:03 -0400 Subject: [PATCH] All couchbase tests have to be runUnderTrace for sorting --- .../test/groovy/CouchbaseClientTest.groovy | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/CouchbaseClientTest.groovy b/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/CouchbaseClientTest.groovy index 733ad7a3b7..ca0dfb9486 100644 --- a/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/CouchbaseClientTest.groovy +++ b/dd-java-agent/instrumentation/couchbase-2.0/src/test/groovy/CouchbaseClientTest.groovy @@ -43,44 +43,6 @@ class CouchbaseClientTest extends AbstractCouchbaseTest { // Connect to the bucket and open it Bucket bkt = cluster.openBucket(bucketSettings.name(), bucketSettings.password()) - // Create a JSON document and store it with the ID "helloworld" - JsonObject content = JsonObject.create().put("hello", "world") - def inserted = bkt.upsert(JsonDocument.create("helloworld", content)) - def found = bkt.get("helloworld") - - then: - found == inserted - found.content().getString("hello") == "world" - - sortAndAssertTraces(3) { - trace(0, 1) { - assertCouchbaseCall(it, 0, "Cluster.openBucket") - } - trace(1, 1) { - assertCouchbaseCall(it, 0, "Bucket.upsert", bucketSettings.name()) - } - trace(2, 1) { - assertCouchbaseCall(it, 0, "Bucket.get", bucketSettings.name()) - } - } - - cleanup: - cluster?.disconnect() - environment.shutdown() - - where: - bucketSettings << [bucketCouchbase, bucketMemcache] - - environment = envBuilder(bucketSettings).build() - cluster = CouchbaseCluster.create(environment, Arrays.asList("127.0.0.1")) - type = bucketSettings.type().name() - } - - def "test upsert and get #type under trace"() { - when: - // Connect to the bucket and open it - Bucket bkt = cluster.openBucket(bucketSettings.name(), bucketSettings.password()) - // Create a JSON document and store it with the ID "helloworld" JsonObject content = JsonObject.create().put("hello", "world")