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

Annotation of /google/test_files/test-set_parameter_values-fault.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Sat May 19 15:15:14 2007 UTC (17 years ago) by dpavlin
File MIME type: text/plain
File size: 3880 byte(s)
initial import of cruft around TR-069

1 dpavlin 2 Name: SetParameterValues fault test
2     Scenario:
3     - Send GetParameterValues from ".a.d", "a.b.a" and "a.b.c".
4     - Expect to receive stored data.
5     - Send SetParameterValues to change values of ".a.d", "a.c.a", "a.b.c" and "a"
6     ("a.c.a" does not exist, "a.b.c" is read-only, "a" is an object).
7     - Expect to receive fault with "a.c.a", "a.b.c" and "a".
8     - Send GetParameterValues from ".a.d", "a.b.a" and "a.b.c".
9     - Expect to receive original data.
10     Include: test_files/inform.txt
11     Include: test_files/inform_response.txt
12     Include: test_files/get_parameter_values.txt
13     Include: test_files/get_parameter_values_response.txt
14     Request: <soap:Envelope
15     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
16     soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
17     xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
18     <soap:Header>
19     <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
20     </soap:Header>
21     <soap:Body>
22     <cwmp:SetParameterValues>
23     <cwmp:ParameterList>
24     <cwmp:ParameterValueStruct>
25     <cwmp:Name>.a.d</cwmp:Name>
26     <cwmp:Value>a new string</cwmp:Value>
27     </cwmp:ParameterValueStruct>
28     <cwmp:ParameterValueStruct>
29     <cwmp:Name>.a.c.a</cwmp:Name>
30     <cwmp:Value>54321</cwmp:Value>
31     </cwmp:ParameterValueStruct>
32     <cwmp:ParameterValueStruct>
33     <cwmp:Name>.a.b.c</cwmp:Name>
34     <cwmp:Value>123</cwmp:Value>
35     </cwmp:ParameterValueStruct>
36     <cwmp:ParameterValueStruct>
37     <cwmp:Name>.a.</cwmp:Name>
38     <cwmp:Value>123</cwmp:Value>
39     </cwmp:ParameterValueStruct>
40     </cwmp:ParameterList>
41     </cwmp:SetParameterValues>
42     </soap:Body>
43     </soap:Envelope>
44     Response: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:cwmp="urn:dslforum-org:cwmp-1-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
45     <soap:Header>
46     <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
47     </soap:Header>
48     <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
49     <soap:Fault>
50     <faultcode xsi:type="xsd:string">Client</faultcode>
51     <faultstring xsi:type="xsd:string">CWMP fault</faultstring>
52     <detail>
53     <cwmp:Fault>
54     <FaultCode xsi:type="xsd:int">9003</FaultCode>
55     <FaultString xsi:type="xsd:string">Invalid arguments</FaultString>
56     <SetParameterValuesFault>
57     <ParameterName xsi:type="xsd:string">.a.c.a</ParameterName>
58     <FaultCode xsi:type="xsd:int">9005</FaultCode>
59     <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString>
60     </SetParameterValuesFault>
61     <SetParameterValuesFault>
62     <ParameterName xsi:type="xsd:string">.a.b.c</ParameterName>
63     <FaultCode xsi:type="xsd:int">9008</FaultCode>
64     <FaultString xsi:type="xsd:string">Attempt to set a non-writable parameter</FaultString>
65     </SetParameterValuesFault>
66     <SetParameterValuesFault>
67     <ParameterName xsi:type="xsd:string">.a.</ParameterName>
68     <FaultCode xsi:type="xsd:int">9006</FaultCode>
69     <FaultString xsi:type="xsd:string">Invalid parameter type</FaultString>
70     </SetParameterValuesFault>
71     </cwmp:Fault>
72     </detail>
73     </soap:Fault>
74     </soap:Body>
75     </soap:Envelope>
76    
77     Include: test_files/get_parameter_values.txt
78     Include: test_files/get_parameter_values_response.txt
79     Include: test_files/session_end.txt

  ViewVC Help
Powered by ViewVC 1.1.26