Skip to content

Commit

Permalink
Update test after new opentelemetry release
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale authored and ForestEckhardt committed Jan 18, 2023
1 parent 8ca056a commit 04abfd1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions java/java_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func testJavaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {

var logs fmt.Stringer
image, logs, err = pack.Build.
WithPullPolicy("never").
WithPullPolicy("if-not-present").
WithEnv(map[string]string{
"BP_OPENTELEMETRY_ENABLED": "true",
}).
Expand All @@ -393,8 +393,7 @@ func testJavaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {
"paketo-buildpacks/java",
"gcr.io/paketo-buildpacks/opentelemetry",
).
WithVolumes(fmt.Sprintf("%s/.gradle:/home/cnb/.gradle:rw", home)).
WithGID("121").
WithGID("123").
Execute(name, source)
Expect(err).ToNot(HaveOccurred(), logs.String)

Expand All @@ -403,7 +402,7 @@ func testJavaWithBuilder(builder string) func(*testing.T, spec.G, spec.S) {
Expect(logs).To(ContainLines(ContainSubstring("Paketo Buildpack for Gradle")))
Expect(logs).To(ContainLines(ContainSubstring("Paketo Buildpack for Executable JAR")))
Expect(logs).To(ContainLines(ContainSubstring("Paketo Buildpack for Spring Boot")))
Expect(logs).To(ContainLines(ContainSubstring("Paketo OpenTelemetry Buildpack")))
Expect(logs).To(ContainLines(ContainSubstring("Paketo Buildpack for OpenTelemetry")))

container, err = docker.Container.Run.
WithPublish("8080").
Expand Down

0 comments on commit 04abfd1

Please sign in to comment.