Skip to content

Commit

Permalink
Update tests to reflect current reality
Browse files Browse the repository at this point in the history
The forwardemail.net service discontinued support for .sc domains,
so our mail handling for these domains switched to mailtie.com.

The loci.wisc.edu moved to being hosted by UW-Madison IT;
unfortunately, they did not preserve the many legacy redirects I
had set up, and were not too helpful in our email exchanges back
and forth attempting to address the situation, so we gave up. :(

Finally, the folder structure of wsr.imagej.net has evolved a bit,
since the imagej.nih.gov/ij website moved to imagej.net/ij.
  • Loading branch information
ctrueden committed Dec 6, 2023
1 parent e31ca3b commit 1a3923f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 47 deletions.
3 changes: 1 addition & 2 deletions fiji.sc.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Check IP address:

$ host fiji.sc | sort
fiji.sc has address 144.92.48.190
fiji.sc mail is handled by 10 mx1.forwardemail.net.
fiji.sc mail is handled by 10 mx2.forwardemail.net.
fiji.sc mail is handled by 10 mx.mailtie.com.

Check www redirect:

Expand Down
3 changes: 1 addition & 2 deletions image.sc.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Check IP address:

$ host image.sc | sort
image.sc has address 144.92.48.194
image.sc mail is handled by 10 mx1.forwardemail.net.
image.sc mail is handled by 10 mx2.forwardemail.net.
image.sc mail is handled by 10 mx.mailtie.com.

Check HTTP-to-HTTPS redirect:

Expand Down
42 changes: 3 additions & 39 deletions loci.wisc.edu.t
Original file line number Diff line number Diff line change
@@ -1,40 +1,4 @@
Check IP address:
Check front page:

$ host loci.wisc.edu | sort
loci.wisc.edu has address 144.92.48.134
loci.wisc.edu mail is handled by 10 mta1.wiscmail.wisc.edu.
loci.wisc.edu mail is handled by 10 mta2.wiscmail.wisc.edu.
loci.wisc.edu mail is handled by 10 mta3.wiscmail.wisc.edu.
loci.wisc.edu mail is handled by 10 mta4.wiscmail.wisc.edu.
loci.wisc.edu mail is handled by 10 mta5.wiscmail.wisc.edu.
loci.wisc.edu mail is handled by 5 smtp.wiscmail.wisc.edu.

$ host www.loci.wisc.edu
www.loci.wisc.edu has address 144.92.48.134

Check www redirect:

$ curl -Is http://www.loci.wisc.edu | grep '^\(HTTP\|Location\)'
HTTP/1.1 301 Moved Permanently
Location: https://loci.wisc.edu/

Check HTTP-to-HTTPS redirect:

$ curl -Is http://loci.wisc.edu/.hello | grep '^\(HTTP\|Location\)'
HTTP/1.1 301 Moved Permanently
Location: https://loci.wisc.edu/.hello

Check hello access:

$ curl -s https://loci.wisc.edu/.hello
loci.wisc.edu on himalayan

Check site-specific redirects:

$ "$TESTDIR/check-redirects.sh" "$TESTDIR/redirects-loci.wisc.edu.txt"
DONE

Check legacy redirects:

$ "$TESTDIR/check-redirects.sh" "$TESTDIR/redirects-legacy.txt" -d loci.wisc.edu
DONE
$ curl -Ns https://loci.wisc.edu/ | grep '<title>' | sed 's/ &.*</</' | xargs
<title>Laboratory for Optical and Computational Instrumentation</title>
3 changes: 1 addition & 2 deletions redirects-imagej.net.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/mediawiki/phase3/Foo https://imagej.net/Foo
/wiki/Foo https://imagej.net/Foo

# ImageJ1 links
# ImageJ website links
/ImageJ.jnlp https://imagej.net/ij/ImageJ.jnlp
/applet https://imagej.net/ij/applet
/applet2 https://imagej.net/ij/applet2
Expand All @@ -30,7 +30,6 @@
/docs https://imagej.net/ij/docs
/download https://imagej.net/ij/download
/download.html https://imagej.net/ij/download.html
/favicon.ico https://imagej.net/ij/favicon.ico
/features.html https://imagej.net/ij/features.html
/ij https://imagej.net/ij
/ij.jar https://imagej.net/ij/ij.jar
Expand Down
7 changes: 5 additions & 2 deletions wsr.imagej.net.t
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,22 @@ Check top-level directory index:
2015%20Conference/
?C=D;O=A
api/
backup/
developer/
distros/
docs/
download/
icons/
ij/
images.mirror.imagej.net/
images.wsr.imagej.net/
images/
jars/
macros/
nih-image/
notes.html
plugins/
rsb/
source/
src/
style.css
temp/
upgrade/

0 comments on commit 1a3923f

Please sign in to comment.