/[cwmp]/google/trunk/t/20-response.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /google/trunk/t/20-response.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 46 by dpavlin, Tue Jun 19 19:50:29 2007 UTC revision 71 by dpavlin, Wed Jun 20 23:35:04 2007 UTC
# Line 4  use warnings; Line 4  use warnings;
4    
5  my $debug = shift @ARGV;  my $debug = shift @ARGV;
6    
7  use Test::More tests => 7;  use Test::More tests => 11;
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9  use blib;  use blib;
10    
# Line 28  sub is_like { Line 28  sub is_like {
28          like( $xml, qr{^\Q$template_xml\E$}, $command . ' xml' );          like( $xml, qr{^\Q$template_xml\E$}, $command . ' xml' );
29  }  }
30    
31  is_like( 'Inform', <<__SOAP__  is_like( 'InformResponse', <<__SOAP__
32  <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">  <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
33    <soap:Header>    <soap:Header>
34      <cwmp:ID mustUnderstand="1">42</cwmp:ID>      <cwmp:ID mustUnderstand="1">42</cwmp:ID>
35        <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
36    </soap:Header>    </soap:Header>
37    <soap:Body>    <soap:Body>
38      <cwmp:InformResponse>      <cwmp:InformResponse>
# Line 46  is_like( 'GetRPCMethods', <<__SOAP__ Line 47  is_like( 'GetRPCMethods', <<__SOAP__
47  <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">  <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
48    <soap:Header>    <soap:Header>
49      <cwmp:ID mustUnderstand="1">42</cwmp:ID>      <cwmp:ID mustUnderstand="1">42</cwmp:ID>
50        <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
51    </soap:Header>    </soap:Header>
52    <soap:Body>    <soap:Body>
53      <GetRPCMethods />      <GetRPCMethods />
54    </soap:Body>    </soap:Body>
55  </soap:Envelope>  </soap:Envelope>
56  __SOAP__  __SOAP__
57    );
58    
59    is_like( 'Reboot', <<__SOAP__
60    <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
61      <soap:Header>
62        <cwmp:ID mustUnderstand="1">42</cwmp:ID>
63        <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
64      </soap:Header>
65      <soap:Body>
66        <Reboot />
67      </soap:Body>
68    </soap:Envelope>
69    __SOAP__
70    );
71    
72    is_like( 'GetParameterNames', <<__SOAP__
73    <soap:Envelope xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
74      <soap:Header>
75        <cwmp:ID mustUnderstand="1">42</cwmp:ID>
76        <cwmp:NoMoreRequests>0</cwmp:NoMoreRequests>
77      </soap:Header>
78      <soap:Body>
79        <cwmp:GetParameterNames>
80          <cwmp:ParameterPath></cwmp:ParameterPath>
81          <cwmp:NextLevel>0</cwmp:NextLevel>
82        </cwmp:GetParameterNames>
83      </soap:Body>
84    </soap:Envelope>
85    __SOAP__
86  );  );

Legend:
Removed from v.46  
changed lines
  Added in v.71

  ViewVC Help
Powered by ViewVC 1.1.26