-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert aws 1.11 client tests from groovy to java (#12606)
- Loading branch information
Showing
30 changed files
with
1,228 additions
and
460 deletions.
There are no files selected for viewing
137 changes: 0 additions & 137 deletions
137
...test/groovy/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/Aws1ClientTest.groovy
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/DynamoDbClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.awssdk.v1_11; | ||
|
||
import com.amazonaws.services.dynamodbv2.AmazonDynamoDBClientBuilder; | ||
import io.opentelemetry.instrumentation.awssdk.v1_11.AbstractDynamoDbClientTest; | ||
import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension; | ||
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
class DynamoDbClientTest extends AbstractDynamoDbClientTest { | ||
@RegisterExtension | ||
static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); | ||
|
||
@Override | ||
protected InstrumentationExtension testing() { | ||
return testing; | ||
} | ||
|
||
@Override | ||
public AmazonDynamoDBClientBuilder configureClient(AmazonDynamoDBClientBuilder clientBuilder) { | ||
return clientBuilder; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
.../src/test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/Ec2ClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.awssdk.v1_11; | ||
|
||
import com.amazonaws.services.ec2.AmazonEC2ClientBuilder; | ||
import io.opentelemetry.instrumentation.awssdk.v1_11.AbstractEc2ClientTest; | ||
import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension; | ||
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
class Ec2ClientTest extends AbstractEc2ClientTest { | ||
@RegisterExtension | ||
static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); | ||
|
||
@Override | ||
protected InstrumentationExtension testing() { | ||
return testing; | ||
} | ||
|
||
@Override | ||
public AmazonEC2ClientBuilder configureClient(AmazonEC2ClientBuilder clientBuilder) { | ||
return clientBuilder; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
.../test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/KinesisClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.awssdk.v1_11; | ||
|
||
import com.amazonaws.services.kinesis.AmazonKinesisClientBuilder; | ||
import io.opentelemetry.instrumentation.awssdk.v1_11.AbstractKinesisClientTest; | ||
import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension; | ||
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
class KinesisClientTest extends AbstractKinesisClientTest { | ||
@RegisterExtension | ||
static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); | ||
|
||
@Override | ||
protected InstrumentationExtension testing() { | ||
return testing; | ||
} | ||
|
||
@Override | ||
public AmazonKinesisClientBuilder configureClient(AmazonKinesisClientBuilder clientBuilder) { | ||
return clientBuilder; | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
.../src/test/java/io/opentelemetry/javaagent/instrumentation/awssdk/v1_11/RdsClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.javaagent.instrumentation.awssdk.v1_11; | ||
|
||
import com.amazonaws.services.rds.AmazonRDSClientBuilder; | ||
import io.opentelemetry.instrumentation.awssdk.v1_11.AbstractRdsClientTest; | ||
import io.opentelemetry.instrumentation.testing.junit.AgentInstrumentationExtension; | ||
import io.opentelemetry.instrumentation.testing.junit.InstrumentationExtension; | ||
import org.junit.jupiter.api.extension.RegisterExtension; | ||
|
||
class RdsClientTest extends AbstractRdsClientTest { | ||
@RegisterExtension | ||
static final InstrumentationExtension testing = AgentInstrumentationExtension.create(); | ||
|
||
@Override | ||
protected InstrumentationExtension testing() { | ||
return testing; | ||
} | ||
|
||
@Override | ||
public AmazonRDSClientBuilder configureClient(AmazonRDSClientBuilder client) { | ||
return client; | ||
} | ||
} |
Oops, something went wrong.