You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by rf...@apache.org on 2021/04/22 21:07:59 UTC

[maven-doxia-linkcheck] branch stabilize created (now 7f5b9a3)

This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a change to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-doxia-linkcheck.git.


      at 7f5b9a3  Fix test based on new policy for apache.org

This branch includes the following new commits:

     new 7f5b9a3  Fix test based on new policy for apache.org

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-doxia-linkcheck] 01/01: Fix test based on new policy for apache.org

Posted by rf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rfscholte pushed a commit to branch stabilize
in repository https://gitbox.apache.org/repos/asf/maven-doxia-linkcheck.git

commit 7f5b9a36c5ff4856ca4e2e770f2bd8e9636d077c
Author: rfscholte <rf...@apache.org>
AuthorDate: Thu Apr 22 23:07:39 2021 +0200

    Fix test based on new policy for apache.org
---
 .../maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java b/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
index e7447c7..0d6f67f 100644
--- a/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
+++ b/src/test/java/org/apache/maven/doxia/linkcheck/validation/HTTPLinkValidatorTest.java
@@ -53,7 +53,9 @@ public class HTTPLinkValidatorTest extends TestCase
 
             this.hlv = new OnlineHTTPLinkValidator();
 
-            assertEquals( LinkcheckFileResult.VALID_LEVEL, checkLink( "http://www.apache.org" ).getStatus() );
+            // http://www.apache.org is being redirected to https://www.apache.org
+            assertEquals( LinkcheckFileResult.WARNING_LEVEL, checkLink( "http://www.apache.org" ).getStatus() );
+            assertEquals( LinkcheckFileResult.VALID_LEVEL, checkLink( "https://www.apache.org" ).getStatus() );
             assertEquals( LinkcheckFileResult.ERROR_LEVEL, checkLink( "http://www.example.com>);" ).getStatus() );
         }
         else