/[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 167 by dpavlin, Sun Oct 28 11:53:01 2007 UTC revision 168 by dpavlin, Sun Oct 28 12:21:53 2007 UTC
# Line 23  isa_ok( $response, 'CWMP::Response' ); Line 23  isa_ok( $response, 'CWMP::Response' );
23  sub check_response {  sub check_response {
24          my $command = shift || die "no command?";          my $command = shift || die "no command?";
25    
26          ok( my $xml = $response->$command({ ID => 42 }), "generate response for $command" );          my $state = {
27                    ID => 42,
28            };
29    
30            ok( my $xml = $response->$command( $state, @_ ), "generate response $command" . dump(@_) );
31    
32          my $file = "$abs_path/response/$command.xml";          my $file = "$abs_path/response/$command.xml";
33    
# Line 40  sub check_response { Line 44  sub check_response {
44  check_response( 'InformResponse' );  check_response( 'InformResponse' );
45  check_response( 'GetRPCMethods' );  check_response( 'GetRPCMethods' );
46  check_response( 'Reboot' );  check_response( 'Reboot' );
47  check_response( 'GetParameterNames' );  check_response( 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.SerialNumber', 0 );
48  check_response( 'GetParameterValues' );  check_response( 'GetParameterValues' );

Legend:
Removed from v.167  
changed lines
  Added in v.168

  ViewVC Help
Powered by ViewVC 1.1.26