[Rt-commit] rtir branch, 5.0/fix-net-whois-test-functionality, updated. 4.0.1rc1-200-g67d6ab77

Aaron Trevena ast at bestpractical.com
Tue Jun 23 10:05:21 EDT 2020


The branch, 5.0/fix-net-whois-test-functionality has been updated
       via  67d6ab774acf97d821bcdb6344f29c34c1694109 (commit)
      from  054c86861a28c84ba9d8acfcefd74b30688182bb (commit)

Summary of changes:
 t/tools/lookup.t | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

- Log -----------------------------------------------------------------
commit 67d6ab774acf97d821bcdb6344f29c34c1694109
Author: Aaron Trevena <ast at bestpractical.com>
Date:   Tue Jun 23 15:05:02 2020 +0100

    Added ip whois lookup test

diff --git a/t/tools/lookup.t b/t/tools/lookup.t
index fa86ec81..929f8666 100644
--- a/t/tools/lookup.t
+++ b/t/tools/lookup.t
@@ -56,5 +56,23 @@ SKIP:{
 }
 }
 
+diag "Test IP Lookup";
+{
+    $agent->get_ok("/RTIR/Tools/ScriptedAction.html?loop=IP", "Loaded Lookup page");
+
+  SKIP:{
+        skip "No network", 2 if $no_network;
+        $agent->form_name('ScriptedAction');
+        $agent->field('IPs', '45.33.11.14');
+        $agent->field('field', 'organisation');
+        $agent->select('server', 'whois.iana.org');
+        $agent->click;
+        $agent->content_contains('Address test results');
+        $agent->content_contains('45.33.11.14: Administered by ARIN');
+    }
+
+}
+
+
 undef $agent;
 done_testing;

-----------------------------------------------------------------------


More information about the rt-commit mailing list