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

Scott Cantor cantor.2 at osu.edu
Wed May 13 22:53:51 UTC 2020


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

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

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

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

commit a755fa57169dff1097ed70fcf01067dc7d1f3cfe
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 f0c6bd5..2305f7c 100644
--- a/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
+++ b/src/test/java/net/shibboleth/ext/spring/resource/HTTPResourceTest.java
@@ -123,14 +123,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 = new DateTime(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