[spring-extensions] branch master updated: Fix test by adjusting date and using test vhost.

Scott Cantor cantor.2 at osu.edu
Wed May 13 22:52:29 UTC 2020


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository spring-extensions.

View the commit online:
http://git.shibboleth.net/view/?p=spring-extensions.git;a=commit;h=4d1488749d265fd9c165de97c19549a66d6f1638

The following commit(s) were added to refs/heads/master by this push:
       new  4d14887   Fix test by adjusting date and using test vhost.
4d14887 is described below

commit 4d1488749d265fd9c165de97c19549a66d6f1638
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 13 18:51:56 2020 -0400

    Fix test by adjusting date and using test vhost.
---
 .../java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java b/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
index 57e024b..8dde2ed 100644
--- a/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
+++ b/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
@@ -116,14 +116,14 @@ public class HTTPResourceTest {
         // Chose a file unlikely to change. Do not use the svn thing because the date will not be there
 
         final HTTPResource parent =
-                new HTTPResource(client, "http://shibboleth.net/downloads/identity-provider/2.0.0/");
+                new HTTPResource(client, "http://test.shibboleth.net/downloads/identity-provider/2.0.0/");
         final HTTPResource child = parent.createRelative("shibboleth-idp-2.0.0-bin.zip");
 
         final long when = child.lastModified();
         final long size = child.contentLength();
         final String whenAsString = Instant.ofEpochMilli(when).toString();
 
-        Assert.assertEquals(when, 1205848652000L, "Expected date of " + whenAsString + " did not match)");
+        Assert.assertEquals(when, 1588006169000L, "Expected date of " + whenAsString + " did not match)");
         Assert.assertEquals(size, 20784226L, "Size mismatch");
     }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list