Parent Directory | Revision Log
initial import of cruft around TR-069
1 | Name: SetParameterAttributes fault test |
2 | Scenario: |
3 | - Send GetParameterAttributes from ".a.c.a" (non-existant) |
4 | - Expect to receive error 9005. |
5 | - Send SetParameterAttributes to change AccessList attribute of ".a.d" to |
6 | "Sub" (not valid access list name). |
7 | - Expect to receive error 9003. |
8 | - Send SetParameterAttributes to ".a.c.a" (non-existant) |
9 | - Expect to receive error 9005. |
10 | Include: test_files/inform.txt |
11 | Include: test_files/inform_response.txt |
12 | Request: <soap:Envelope |
13 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" |
14 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
15 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> |
16 | <soap:Header> |
17 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> |
18 | </soap:Header> |
19 | <soap:Body> |
20 | <cwmp:GetParameterAttributes> |
21 | <cwmp:ParameterNames> |
22 | <string>.a.c.a</string> |
23 | </cwmp:ParameterNames> |
24 | </cwmp:GetParameterAttributes> |
25 | </soap:Body> |
26 | </soap:Envelope> |
27 | 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"> |
28 | <soap:Header> |
29 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> |
30 | </soap:Header> |
31 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
32 | <soap:Fault> |
33 | <faultcode xsi:type="xsd:string">Client</faultcode> |
34 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> |
35 | <detail> |
36 | <cwmp:Fault> |
37 | <FaultCode xsi:type="xsd:int">9005</FaultCode> |
38 | <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString> |
39 | </cwmp:Fault> |
40 | </detail> |
41 | </soap:Fault> |
42 | </soap:Body> |
43 | </soap:Envelope> |
44 | |
45 | Request: <soap:Envelope |
46 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" |
47 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
48 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> |
49 | <soap:Header> |
50 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> |
51 | </soap:Header> |
52 | <soap:Body> |
53 | <cwmp:SetParameterAttributes> |
54 | <cwmp:ParameterList> |
55 | <cwmp:SetParameterAttributesStruct> |
56 | <cwmp:Name>.a.d</cwmp:Name> |
57 | <cwmp:NotificationChange>1</cwmp:NotificationChange> |
58 | <cwmp:Notification>2</cwmp:Notification> |
59 | <cwmp:AccessListChange>1</cwmp:AccessListChange> |
60 | <cwmp:AccessList> |
61 | <xsd:string>Sub</xsd:string> |
62 | </cwmp:AccessList> |
63 | </cwmp:SetParameterAttributesStruct> |
64 | </cwmp:ParameterList> |
65 | </cwmp:SetParameterAttributes> |
66 | </soap:Body> |
67 | </soap:Envelope> |
68 | 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"> |
69 | <soap:Header> |
70 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> |
71 | </soap:Header> |
72 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
73 | <soap:Fault> |
74 | <faultcode xsi:type="xsd:string">Client</faultcode> |
75 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> |
76 | <detail> |
77 | <cwmp:Fault> |
78 | <FaultCode xsi:type="xsd:int">9003</FaultCode> |
79 | <FaultString xsi:type="xsd:string">Invalid arguments</FaultString> |
80 | </cwmp:Fault> |
81 | </detail> |
82 | </soap:Fault> |
83 | </soap:Body> |
84 | </soap:Envelope> |
85 | |
86 | Request: <soap:Envelope |
87 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" |
88 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" |
89 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> |
90 | <soap:Header> |
91 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> |
92 | </soap:Header> |
93 | <soap:Body> |
94 | <cwmp:SetParameterAttributes> |
95 | <cwmp:ParameterList> |
96 | <cwmp:SetParameterAttributesStruct> |
97 | <cwmp:Name>.a.c.a</cwmp:Name> |
98 | <cwmp:NotificationChange>1</cwmp:NotificationChange> |
99 | <cwmp:Notification>2</cwmp:Notification> |
100 | <cwmp:AccessListChange>1</cwmp:AccessListChange> |
101 | <cwmp:AccessList> |
102 | </cwmp:AccessList> |
103 | </cwmp:SetParameterAttributesStruct> |
104 | </cwmp:ParameterList> |
105 | </cwmp:SetParameterAttributes> |
106 | </soap:Body> |
107 | </soap:Envelope> |
108 | 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"> |
109 | <soap:Header> |
110 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> |
111 | </soap:Header> |
112 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> |
113 | <soap:Fault> |
114 | <faultcode xsi:type="xsd:string">Client</faultcode> |
115 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> |
116 | <detail> |
117 | <cwmp:Fault> |
118 | <FaultCode xsi:type="xsd:int">9005</FaultCode> |
119 | <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString> |
120 | </cwmp:Fault> |
121 | </detail> |
122 | </soap:Fault> |
123 | </soap:Body> |
124 | </soap:Envelope> |
125 | |
126 | Include: test_files/session_end.txt |
ViewVC Help | |
Powered by ViewVC 1.1.26 |