File tree Expand file tree Collapse file tree 2 files changed +15
-15
lines changed
smoke-tests/src/test/java/org/hypertrace/agent/smoketest Expand file tree Collapse file tree 2 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -77,14 +77,14 @@ public void get() throws IOException {
77
77
Assertions .assertEquals (response .body ().string (), "Hi!" );
78
78
Assertions .assertEquals (1 , countSpansByName (traces , "/greeting" ));
79
79
Assertions .assertEquals (1 , countSpansByName (traces , "webcontroller.greeting" ));
80
- Assertions .assertEquals (
81
- 3 ,
80
+ Assertions .assertTrue (
82
81
getSpanStream (traces )
83
- .flatMap (span -> span .getAttributesList ().stream ())
84
- .filter (attribute -> attribute .getKey ().equals (OTEL_LIBRARY_VERSION_ATTRIBUTE ))
85
- .map (attribute -> attribute .getValue ().getStringValue ())
86
- .filter (value -> value .equals (currentAgentVersion ))
87
- .count ());
82
+ .flatMap (span -> span .getAttributesList ().stream ())
83
+ .filter (attribute -> attribute .getKey ().equals (OTEL_LIBRARY_VERSION_ATTRIBUTE ))
84
+ .map (attribute -> attribute .getValue ().getStringValue ())
85
+ .filter (value -> value .equals (currentAgentVersion ))
86
+ .count ()
87
+ > 0 );
88
88
Assertions .assertEquals (
89
89
0 ,
90
90
getSpanStream (traces )
Original file line number Diff line number Diff line change 34
34
// key = "SMOKETEST_JAVAAGENT_PATH",
35
35
// value =
36
36
//
37
- // "/Users/ploffay/projects/hypertrace/opentelemetry-java-agent /javaagent/build/libs/hypertrace-agent-0.2.2-SNAPSHOT -all.jar")
37
+ // "/Users/ploffay/projects/hypertrace/javaagent /javaagent/build/libs/hypertrace-agent-0.3.2 -all.jar")
38
38
public class SpringBootSmokeTest extends AbstractSmokeTest {
39
39
40
40
@ Override
@@ -91,14 +91,14 @@ public void get() throws IOException {
91
91
Assertions .assertEquals (response .body ().string (), "Hi!" );
92
92
Assertions .assertEquals (1 , countSpansByName (traces , "/greeting" ));
93
93
Assertions .assertEquals (1 , countSpansByName (traces , "webcontroller.greeting" ));
94
- Assertions .assertEquals (
95
- 3 ,
94
+ Assertions .assertTrue (
96
95
getSpanStream (traces )
97
- .flatMap (span -> span .getAttributesList ().stream ())
98
- .filter (attribute -> attribute .getKey ().equals (OTEL_LIBRARY_VERSION_ATTRIBUTE ))
99
- .map (attribute -> attribute .getValue ().getStringValue ())
100
- .filter (value -> value .equals (currentAgentVersion ))
101
- .count ());
96
+ .flatMap (span -> span .getAttributesList ().stream ())
97
+ .filter (attribute -> attribute .getKey ().equals (OTEL_LIBRARY_VERSION_ATTRIBUTE ))
98
+ .map (attribute -> attribute .getValue ().getStringValue ())
99
+ .filter (value -> value .equals (currentAgentVersion ))
100
+ .count ()
101
+ > 0 );
102
102
Assertions .assertTrue (
103
103
getSpanStream (traces )
104
104
.flatMap (span -> span .getAttributesList ().stream ())
You can’t perform that action at this time.
0 commit comments