-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug: replace opentelemetry-extension-aws (#2439)
- Loading branch information
Showing
3 changed files
with
69 additions
and
21 deletions.
There are no files selected for viewing
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
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
33 changes: 33 additions & 0 deletions
33
...y/io/micronaut/starter/core/test/cloud/aws/TracingOpentelemetryXrayIntegrationSpec.groovy
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,33 @@ | ||
package io.micronaut.starter.core.test.cloud.aws | ||
|
||
import io.micronaut.starter.application.ApplicationType | ||
import io.micronaut.starter.feature.opentelemetry.OpenTelemetryXray | ||
import io.micronaut.starter.options.BuildTool | ||
import io.micronaut.starter.options.Language | ||
import io.micronaut.starter.options.TestFramework | ||
import io.micronaut.starter.test.CommandSpec | ||
|
||
class TracingOpentelemetryXrayIntegrationSpec extends CommandSpec { | ||
|
||
@Override | ||
String getTempDirectoryPrefix() { | ||
"tracing-opentelemetry-xray-function" | ||
} | ||
|
||
void 'App with tracing-opentelemetry-xray features builds successfully'() { | ||
given: | ||
ApplicationType applicationType = ApplicationType.DEFAULT | ||
Language lang = Language.JAVA | ||
BuildTool build = BuildTool.GRADLE_KOTLIN | ||
TestFramework testFramework = TestFramework.JUNIT | ||
|
||
List<String> features = [OpenTelemetryXray.NAME] | ||
generateProject(lang, build, features, applicationType, testFramework) | ||
|
||
when: | ||
String output = executeBuild(build, "test") | ||
|
||
then: | ||
output.contains("BUILD SUCCESS") | ||
} | ||
} |