2 parents 9a1b379 + c67c462 commit ed788b6Copy full SHA for ed788b6
1 file changed
tests/functions_user/whois_test.php
@@ -46,6 +46,15 @@ public static function ips_data()
46
public function test_ip_whois($ip)
47
{
48
$ip_whois = user_ipwhois($ip);
49
+
50
+ if (preg_match('/%ERROR:201:\s*access denied/i', $ip_whois)
51
+ || stripos($ip_whois, 'daily limit of controlled objects') !== false
52
+ || stripos($ip_whois, 'Access from your host has been temporarily denied') !== false
53
+ )
54
+ {
55
+ $this->markTestSkipped('WHOIS provider temporarily denied access due to rate limiting (RIPE ERROR:201).');
56
+ }
57
58
$this->assertStringNotContainsString('Query terms are ambiguous', $ip_whois);
59
$this->assertStringNotContainsString('no entries found', $ip_whois);
60
$this->assertStringNotContainsString('ERROR', $ip_whois);
0 commit comments