line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IO::EPP::Test::CNic; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=encoding utf8 |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
IO::EPP::Test::CNic |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 SYNOPSIS |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
Call IO::EPP::CNic with parameter "test_mode=1" |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 DESCRIPTION |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Module for testing IO::EPP::CNic, |
16
|
|
|
|
|
|
|
emulates answers of CentralNic server |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 AUTHORS |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Vadim Likhota |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
1
|
|
582
|
use IO::EPP::Test::Base; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
25
|
|
|
|
|
|
|
|
26
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
27
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
28
|
|
|
|
|
|
|
|
29
|
1
|
|
|
1
|
|
5
|
no utf8; # !!! |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
3
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub req { |
32
|
8
|
|
|
8
|
0
|
13
|
my ( $obj, $out_data, undef ) = @_; |
33
|
|
|
|
|
|
|
|
34
|
8
|
|
|
|
|
8
|
my $in_data; |
35
|
|
|
|
|
|
|
|
36
|
8
|
100
|
100
|
|
|
37
|
if ( !$out_data or $out_data =~ m|]+/>| ) { |
37
|
3
|
|
|
|
|
5
|
$in_data = hello( $out_data ); |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
else { |
40
|
5
|
|
|
|
|
13
|
return IO::EPP::Test::Base::req( @_ ); |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
3
|
|
|
|
|
7
|
return $in_data; |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub hello { |
48
|
3
|
|
|
3
|
0
|
6
|
my $dt = IO::EPP::Test::Base::get_dates(); |
49
|
|
|
|
|
|
|
|
50
|
3
|
|
|
|
|
22
|
return qq|CentralNic EPP server EPP.CENTRALNIC.COM$dt1.0enurn:ietf:params:xml:ns:domain-1.0urn:ietf:params:xml:ns:contact-1.0urn:ietf:params:xml:ns:host-1.0urn:ietf:params:xml:ns:rgp-1.0urn:ietf:params:xml:ns:secDNS-1.1urn:ietf:params:xml:ns:idn-1.0urn:ietf:params:xml:ns:fee-0.4urn:ietf:params:xml:ns:fee-0.5urn:ietf:params:xml:ns:launch-1.0urn:ietf:params:xml:ns:regtype-0.1urn:ietf:params:xml:ns:auxcontact-0.1urn:ietf:params:xml:ns:artRecord-0.2http://www.nic.coop/contactCoopExt-1.0|; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |