-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add smoke test for websphere, update smoke test server versions (open…
…-telemetry#4613) * Add smoke test for websphere, update smoke test server versions * update workflows * fix workflow * Apply suggestions from code review Co-authored-by: Trask Stalnaker <[email protected]> * revert accidental change Co-authored-by: Trask Stalnaker <[email protected]>
- Loading branch information
Showing
18 changed files
with
179 additions
and
37 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
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
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
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
42 changes: 42 additions & 0 deletions
42
smoke-tests/src/test/groovy/io/opentelemetry/smoketest/WebsphereSmokeTest.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,42 @@ | ||
/* | ||
* Copyright The OpenTelemetry Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package io.opentelemetry.smoketest | ||
|
||
import java.time.Duration | ||
|
||
abstract class WebsphereSmokeTest extends AppServerTest { | ||
|
||
protected String getTargetImagePrefix() { | ||
"ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-servlet-websphere" | ||
} | ||
|
||
@Override | ||
protected TargetWaitStrategy getWaitStrategy() { | ||
return new TargetWaitStrategy.Log(Duration.ofMinutes(3), ".*Server server1 open for e-business.*") | ||
} | ||
|
||
@Override | ||
protected String getSpanName(String path) { | ||
switch (path) { | ||
case "/app/hello.txt": | ||
case "/app/file-that-does-not-exist": | ||
return "HTTP GET" | ||
} | ||
return super.getSpanName(path) | ||
} | ||
|
||
@Override | ||
boolean testRequestOutsideDeployedApp() { | ||
false | ||
} | ||
} | ||
|
||
@AppServer(version = "8.5.5.20", jdk = "8-openj9") | ||
class Websphere8Jdk8Openj9 extends WebsphereSmokeTest { | ||
} | ||
@AppServer(version = "9.0.5.9", jdk = "8-openj9") | ||
class Websphere9Jdk8Openj9 extends WebsphereSmokeTest { | ||
} |
Oops, something went wrong.