-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Maven/Groovy builds with zipkin and jaeger (#2483)
We had an api dependency on micronaut-core-processor which meant it was ending up on the runtime classpath. This was fixed here micronaut-projects/micronaut-tracing#553 (comment) However for Maven and Groovy this causes a failure as it no longer ends up getting pulled onto the provided configuration. Once this fix is released, we can remove the skips from the jaeger and zipkin guides here: micronaut-projects/micronaut-guides@798040a#diff-429b78dd62241a22ac3b663ca2d045441a9326121c3b6bbf19f5859d94c2e3d8
- Loading branch information
Showing
7 changed files
with
94 additions
and
15 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
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
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
29 changes: 29 additions & 0 deletions
29
...features/src/test/groovy/io/micronaut/starter/core/test/feature/tracing/JaegerSpec.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,29 @@ | ||
package io.micronaut.starter.core.test.feature.tracing | ||
|
||
import io.micronaut.starter.feature.tracing.Jaeger | ||
import io.micronaut.starter.options.BuildTool | ||
import io.micronaut.starter.options.Language | ||
import io.micronaut.starter.test.CommandSpec | ||
import io.micronaut.starter.test.LanguageBuildCombinations | ||
|
||
class JaegerSpec extends CommandSpec { | ||
|
||
void 'test jaeger feature for #lang and #buildTool'(Language lang, BuildTool buildTool) { | ||
given: | ||
generateProject(lang, buildTool, [Jaeger.NAME]) | ||
|
||
when: | ||
String output = executeBuild(buildTool, "test") | ||
|
||
then: | ||
output.contains("BUILD SUCCESS") | ||
|
||
where: | ||
[lang, buildTool] << LanguageBuildCombinations.combinations() | ||
} | ||
|
||
@Override | ||
String getTempDirectoryPrefix() { | ||
return "jaeger-tracing-app" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...features/src/test/groovy/io/micronaut/starter/core/test/feature/tracing/ZipkinSpec.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,30 @@ | ||
package io.micronaut.starter.core.test.feature.tracing | ||
|
||
import io.micronaut.starter.feature.tracing.Zipkin | ||
import io.micronaut.starter.options.BuildTool | ||
import io.micronaut.starter.options.Language | ||
import io.micronaut.starter.test.CommandSpec | ||
import io.micronaut.starter.test.LanguageBuildCombinations | ||
|
||
class ZipkinSpec extends CommandSpec { | ||
|
||
void 'test zipkin feature for #lang and #buildTool'(Language lang, BuildTool buildTool) { | ||
given: | ||
println dir | ||
generateProject(lang, buildTool, [Zipkin.NAME]) | ||
|
||
when: | ||
String output = executeBuild(buildTool, "test") | ||
|
||
then: | ||
output.contains("BUILD SUCCESS") | ||
|
||
where: | ||
[lang, buildTool] << LanguageBuildCombinations.combinations() | ||
} | ||
|
||
@Override | ||
String getTempDirectoryPrefix() { | ||
return "zipkin-tracing-app" | ||
} | ||
} |