Guest User

Untitled

a guest
Mar 23rd, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use Test::Network;
  5.  
  6. my $host = "wegenforum.nl";
  7. pings $host;
  8. accepts $host, 21, 22, 80, 113, 4949;
  9.  
  10. ssh $host, "3a:c6:28:d0:4b:56:a6:e5:cb:44:6b:09:84:d7:f7:0b";
  11.  
  12. my @forum = qw(
  13. wegenforum.nl
  14. www.wegenforum.nl
  15. wegenforum.be
  16. www.wegenforum.be
  17. );
  18.  
  19. redirects "http://$_/", "https://www.wegenforum.nl/"
  20. for @forum;
  21.  
  22. redirects "https://$_/", "https://www.wegenforum.nl/"
  23. for grep $_ ne "www.wegenforum.nl", @forum;
  24.  
  25. contains "https://www.wegenforum.nl/", "<title>";
  26.  
  27. done_testing;
  28.  
  29. # vim: set ft=perl
Advertisement
Add Comment
Please, Sign In to add comment