Parent Directory | Revision Log
initial import of cruft around TR-069
1 | dpavlin | 2 | Name: AddObject/DeleteObject tests |
2 | Scenario: | ||
3 | - Send GetParameterValues from ".a.c.2.d" (existing) and ".a.c.8.d" | ||
4 | (non-existing). | ||
5 | - Expect to receive one fault on the non-existing parameter. | ||
6 | - Send AddObject on ".a.c.". | ||
7 | - Expect to receive a new index (8). | ||
8 | - Send GetParameterValues from ".a.c.2.d" and ".a.c.8.d". | ||
9 | - Expect to receive 2 values. | ||
10 | - Send DeleteObject on the new object ".a.c.8." | ||
11 | - Expect to receive OK status. | ||
12 | - Send GetParameterValues from ".a.c.2.d" (existing) and ".a.c.8.d" | ||
13 | (non-existing). | ||
14 | - Expect to receive one fault on the non-existing parameter. | ||
15 | Include: test_files/inform.txt | ||
16 | Include: test_files/inform_response.txt | ||
17 | Include: test_files/get_mio_parameter_values.txt | ||
18 | Include: test_files/get_mio_parameter_values_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.c.</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 | <cwmp:AddObjectResponse> | ||
39 | <InstanceNumber xsi:type="xsd:unsignedInt">8</InstanceNumber> | ||
40 | <Status xsi:type="xsd:int">0</Status> | ||
41 | </cwmp:AddObjectResponse> | ||
42 | </soap:Body> | ||
43 | </soap:Envelope> | ||
44 | |||
45 | Include: test_files/get_mio_parameter_values.txt | ||
46 | 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"> | ||
47 | <soap:Header> | ||
48 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
49 | </soap:Header> | ||
50 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
51 | <cwmp:GetParameterValuesResponse> | ||
52 | <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterValueStruct[2]"> | ||
53 | <ParameterValueStruct xsi:type="cwmp:ParameterValueStruct"> | ||
54 | <Name xsi:type="xsd:string">.a.c.2.d</Name> | ||
55 | <Value xsi:type="xsd:dateTime">2005-04-07T06:39:31Z</Value> | ||
56 | </ParameterValueStruct> | ||
57 | <ParameterValueStruct xsi:type="cwmp:ParameterValueStruct"> | ||
58 | <Name xsi:type="xsd:string">.a.c.8.d</Name> | ||
59 | <Value xsi:type="xsd:dateTime">2005-04-07T06:39:31Z</Value> | ||
60 | </ParameterValueStruct> | ||
61 | </ParameterList> | ||
62 | </cwmp:GetParameterValuesResponse> | ||
63 | </soap:Body> | ||
64 | </soap:Envelope> | ||
65 | |||
66 | Request: <soap:Envelope | ||
67 | xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" | ||
68 | soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" | ||
69 | xmlns:cwmp="urn:dslforum-org:cwmp-1-0"> | ||
70 | <soap:Header> | ||
71 | <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID> | ||
72 | </soap:Header> | ||
73 | <soap:Body> | ||
74 | <cwmp:DeleteObject> | ||
75 | <cwmp:ObjectName>.a.c.8.</cwmp:ObjectName> | ||
76 | <cwmp:ParameterKey>Some Parameter Key</cwmp:ParameterKey> | ||
77 | </cwmp:DeleteObject> | ||
78 | </soap:Body> | ||
79 | </soap:Envelope> | ||
80 | 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"> | ||
81 | <soap:Header> | ||
82 | <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID> | ||
83 | </soap:Header> | ||
84 | <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> | ||
85 | <cwmp:DeleteObjectResponse> | ||
86 | <Status xsi:type="xsd:int">0</Status> | ||
87 | </cwmp:DeleteObjectResponse> | ||
88 | </soap:Body> | ||
89 | </soap:Envelope> | ||
90 | |||
91 | Include: test_files/get_mio_parameter_values.txt | ||
92 | Include: test_files/get_mio_parameter_values_response.txt | ||
93 | Include: test_files/session_end.txt |
ViewVC Help | |
Powered by ViewVC 1.1.26 |