Parent Directory | Revision Log
initial import of cruft around TR-069
1 | dpavlin | 2 | Name: AddObject/DeleteObject faults tests |
2 | Scenario: | ||
3 | - Send AddObject on ".a.e." (non-existing object). | ||
4 | - Expect to receive name fault. | ||
5 | - Send AddObject on ".a.b.b" (simple object). | ||
6 | - Expect to receive type fault. | ||
7 | - Send AddObject on ".a.c." | ||
8 | - Expect to receive OK status. | ||
9 | - Send AddObject on ".a.c.". | ||
10 | - Expect to receive resource fault. | ||
11 | - Send DeleteObject on ".a.e." (non-existing object). | ||
12 | - Expect to receive name fault. | ||
13 | - Send DeleteObject on ".a.b.b" (simple object). | ||
14 | - Expect to receive type fault. | ||
15 | - Send DeleteObject on ".a.c.7." (non-existing instance). | ||
16 | - Expect to receive name fault. | ||
17 | Include: test_files/inform.txt | ||
18 | Include: test_files/inform_response.txt | ||
19 | Request: <soap:Envelope | ||
20 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
21 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
22 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
23 | <soap:Header> | ||
24 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
25 | </soap:Header> | ||
26 | <soap:Body> | ||
27 | <cwmp:AddObject> | ||
28 | <cwmp:ObjectName>.a.e.</cwmp:ObjectName> | ||
29 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
30 | </cwmp:AddObject> | ||
31 | </soap:Body> | ||
32 | </soap:Envelope> | ||
33 | 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"> | ||
34 | <soap:Header> | ||
35 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
36 | </soap:Header> | ||
37 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
38 | <soap:Fault> | ||
39 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
40 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
41 | <detail> | ||
42 | <cwmp:Fault> | ||
43 | <FaultCode xsi:type="xsd:int">9005</FaultCode> | ||
44 | <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString> | ||
45 | </cwmp:Fault> | ||
46 | </detail> | ||
47 | </soap:Fault> | ||
48 | </soap:Body> | ||
49 | </soap:Envelope> | ||
50 | |||
51 | Request: <soap:Envelope | ||
52 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
53 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
54 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
55 | <soap:Header> | ||
56 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
57 | </soap:Header> | ||
58 | <soap:Body> | ||
59 | <cwmp:AddObject> | ||
60 | <cwmp:ObjectName>.a.b.b</cwmp:ObjectName> | ||
61 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
62 | </cwmp:AddObject> | ||
63 | </soap:Body> | ||
64 | </soap:Envelope> | ||
65 | 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"> | ||
66 | <soap:Header> | ||
67 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
68 | </soap:Header> | ||
69 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
70 | <soap:Fault> | ||
71 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
72 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
73 | <detail> | ||
74 | <cwmp:Fault> | ||
75 | <FaultCode xsi:type="xsd:int">9003</FaultCode> | ||
76 | <FaultString xsi:type="xsd:string">Invalid arguments</FaultString> | ||
77 | </cwmp:Fault> | ||
78 | </detail> | ||
79 | </soap:Fault> | ||
80 | </soap:Body> | ||
81 | </soap:Envelope> | ||
82 | |||
83 | Request: <soap:Envelope | ||
84 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
85 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
86 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
87 | <soap:Header> | ||
88 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
89 | </soap:Header> | ||
90 | <soap:Body> | ||
91 | <cwmp:AddObject> | ||
92 | <cwmp:ObjectName>.a.c.</cwmp:ObjectName> | ||
93 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
94 | </cwmp:AddObject> | ||
95 | </soap:Body> | ||
96 | </soap:Envelope> | ||
97 | 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"> | ||
98 | <soap:Header> | ||
99 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
100 | </soap:Header> | ||
101 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
102 | <cwmp:AddObjectResponse> | ||
103 | <InstanceNumber xsi:type="xsd:unsignedInt">8</InstanceNumber> | ||
104 | <Status xsi:type="xsd:int">0</Status> | ||
105 | </cwmp:AddObjectResponse> | ||
106 | </soap:Body> | ||
107 | </soap:Envelope> | ||
108 | |||
109 | Request: <soap:Envelope | ||
110 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
111 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
112 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
113 | <soap:Header> | ||
114 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
115 | </soap:Header> | ||
116 | <soap:Body> | ||
117 | <cwmp:AddObject> | ||
118 | <cwmp:ObjectName>.a.c.</cwmp:ObjectName> | ||
119 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
120 | </cwmp:AddObject> | ||
121 | </soap:Body> | ||
122 | </soap:Envelope> | ||
123 | 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"> | ||
124 | <soap:Header> | ||
125 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
126 | </soap:Header> | ||
127 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
128 | <soap:Fault> | ||
129 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
130 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
131 | <detail> | ||
132 | <cwmp:Fault> | ||
133 | <FaultCode xsi:type="xsd:int">9004</FaultCode> | ||
134 | <FaultString xsi:type="xsd:string">Resources exceeded</FaultString> | ||
135 | </cwmp:Fault> | ||
136 | </detail> | ||
137 | </soap:Fault> | ||
138 | </soap:Body> | ||
139 | </soap:Envelope> | ||
140 | |||
141 | Request: <soap:Envelope | ||
142 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
143 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
144 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
145 | <soap:Header> | ||
146 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
147 | </soap:Header> | ||
148 | <soap:Body> | ||
149 | <cwmp:DeleteObject> | ||
150 | <cwmp:ObjectName>.a.e.</cwmp:ObjectName> | ||
151 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
152 | </cwmp:DeleteObject> | ||
153 | </soap:Body> | ||
154 | </soap:Envelope> | ||
155 | 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"> | ||
156 | <soap:Header> | ||
157 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
158 | </soap:Header> | ||
159 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
160 | <soap:Fault> | ||
161 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
162 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
163 | <detail> | ||
164 | <cwmp:Fault> | ||
165 | <FaultCode xsi:type="xsd:int">9005</FaultCode> | ||
166 | <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString> | ||
167 | </cwmp:Fault> | ||
168 | </detail> | ||
169 | </soap:Fault> | ||
170 | </soap:Body> | ||
171 | </soap:Envelope> | ||
172 | |||
173 | Request: <soap:Envelope | ||
174 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
175 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
176 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
177 | <soap:Header> | ||
178 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
179 | </soap:Header> | ||
180 | <soap:Body> | ||
181 | <cwmp:DeleteObject> | ||
182 | <cwmp:ObjectName>.a.b.b</cwmp:ObjectName> | ||
183 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
184 | </cwmp:DeleteObject> | ||
185 | </soap:Body> | ||
186 | </soap:Envelope> | ||
187 | 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"> | ||
188 | <soap:Header> | ||
189 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
190 | </soap:Header> | ||
191 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
192 | <soap:Fault> | ||
193 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
194 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
195 | <detail> | ||
196 | <cwmp:Fault> | ||
197 | <FaultCode xsi:type="xsd:int">9003</FaultCode> | ||
198 | <FaultString xsi:type="xsd:string">Invalid arguments</FaultString> | ||
199 | </cwmp:Fault> | ||
200 | </detail> | ||
201 | </soap:Fault> | ||
202 | </soap:Body> | ||
203 | </soap:Envelope> | ||
204 | |||
205 | Request: <soap:Envelope | ||
206 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
207 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
208 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
209 | <soap:Header> | ||
210 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
211 | </soap:Header> | ||
212 | <soap:Body> | ||
213 | <cwmp:DeleteObject> | ||
214 | <cwmp:ObjectName>.a.c.7.</cwmp:ObjectName> | ||
215 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
216 | </cwmp:DeleteObject> | ||
217 | </soap:Body> | ||
218 | </soap:Envelope> | ||
219 | 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"> | ||
220 | <soap:Header> | ||
221 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
222 | </soap:Header> | ||
223 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
224 | <soap:Fault> | ||
225 | <faultcode xsi:type="xsd:string">Client</faultcode> | ||
226 | <faultstring xsi:type="xsd:string">CWMP fault</faultstring> | ||
227 | <detail> | ||
228 | <cwmp:Fault> | ||
229 | <FaultCode xsi:type="xsd:int">9005</FaultCode> | ||
230 | <FaultString xsi:type="xsd:string">Invalid parameter name</FaultString> | ||
231 | </cwmp:Fault> | ||
232 | </detail> | ||
233 | </soap:Fault> | ||
234 | </soap:Body> | ||
235 | </soap:Envelope> | ||
236 | |||
237 | Include: test_files/session_end.txt |
ViewVC Help | |
Powered by ViewVC 1.1.26 |