Skip to content

Commit

Permalink
correct custom target notification expectations for 3.0 event emissio…
Browse files Browse the repository at this point in the history
…n order
  • Loading branch information
andrewazores committed Nov 28, 2023
1 parent 77187e6 commit e7f0e68
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/test/java/itest/CustomTargetsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,13 @@ void shouldBeAbleToDefineTarget()
// storedCredential.numMatchingTargets, Matchers.equalTo(Integer.valueOf(1)));

JsonObject result2 = resultFuture2.get();
JsonObject modifiedDiscoveryEvent = result2.getJsonObject("message").getJsonObject("event");
JsonObject foundDiscoveryEvent = result2.getJsonObject("message").getJsonObject("event");
MatcherAssert.assertThat(foundDiscoveryEvent.getString("kind"), Matchers.equalTo("FOUND"));
MatcherAssert.assertThat(
modifiedDiscoveryEvent.getString("kind"), Matchers.equalTo("FOUND"));
MatcherAssert.assertThat(
modifiedDiscoveryEvent.getJsonObject("serviceRef").getString("connectUrl"),
foundDiscoveryEvent.getJsonObject("serviceRef").getString("connectUrl"),
Matchers.equalTo(SELF_JMX_URL));
MatcherAssert.assertThat(
modifiedDiscoveryEvent.getJsonObject("serviceRef").getString("alias"),
foundDiscoveryEvent.getJsonObject("serviceRef").getString("alias"),
Matchers.equalTo(alias));

HttpResponse<Buffer> listResponse =
Expand Down

0 comments on commit e7f0e68

Please sign in to comment.