Skip to content

Commit

Permalink
WINDUPRULE-1008 fix hsearch ruleset broken link (#981)
Browse files Browse the repository at this point in the history
* WINDUPRULE-1008 fix hsearch ruleset broken link

* WINDUPRULE-1008 broken link fix

* Include windup-rules-yaml to the tests as an addon (#969)

* WINDUPRULE-1008 Add stacktrace printing

* WINDUPRULE-1008 Exclude hsearch-00118 'Lucene native faceting' link from checks

---------

Co-authored-by: Carlos E. Feria Vila <carlosthe19916@gmail.com>
Co-authored-by: mrizzi <mrizzi@redhat.com>
  • Loading branch information
3 people committed Jun 5, 2023
1 parent 261679d commit c3938aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rules/rules-reviewed/eap7/eap6/hsearch.windup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@
<link
href="https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.0/html-single/migration_guide/#migrate_miscellaneous_hibernate_search_changes"
title="Miscellaneous Changes in Hibernate Search 5.x" />
<link href="http://in.relation.to/2015/05/11/hibernate-search-530-beta-1-with-native-lucene-faceting" title="Lucene native faceting" />
<link href="https://in.relation.to/2015/05/11/hibernate-search-530-beta-1-with-native-lucene-faceting/" title="Lucene native faceting" />
<link href="http://docs.jboss.org/hibernate/search/5.5/reference/en-US/html_single/#query-faceting" title="Query faceting" />
<tag>hibernate-search</tag>
</hint>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public class WindupRulesLinksTest {
private static final List<String> CERT_FAILURE_LINKS = new ArrayList<>();
static {
CERT_FAILURE_LINKS.add("https://oracle.com/technical-resources/articles/java/jaxrs20.html");
CERT_FAILURE_LINKS.add("https://in.relation.to/2015/05/11/hibernate-search-530-beta-1-with-native-lucene-faceting/");
}

@Parameterized.Parameters(name = "{index}: Test {0}")
Expand Down Expand Up @@ -170,7 +171,7 @@ private boolean isValidLink(final String link)
else LOG.error(String.format("Response code %d for %s [%dms]", CACHE_ANALYZED_LINKS.get(link), link, System.currentTimeMillis() - starTime));
return validLink;
} catch (IOException e) {
LOG.error(String.format("'%s' exception connecting to %s", e.getMessage(), link));
LOG.error(String.format("'%s' exception connecting to %s", e.getMessage(), link), e);
return false;
}
}
Expand Down

0 comments on commit c3938aa

Please sign in to comment.