/[cwmp]/google/test_files/test-set_parameter_attributes.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

Contents of /google/test_files/test-set_parameter_attributes.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Sat May 19 15:15:14 2007 UTC (16 years, 11 months ago) by dpavlin
File MIME type: text/plain
File size: 13536 byte(s)
initial import of cruft around TR-069

1 Name: SetParameterAttributes test
2 Scenario:
3 - Send GetParameterAttributes from ".a.d", "a.b.a" and "a.c.2.d".
4 - Expect to receive default attributes.
5 - Send SetParameterAttributes to change attributes of ".a.d", "a.b.a" and
6 "a.c.2.d".
7 - Expect to receive OK status.
8 - Send GetParameterAttributes from ".a.d", "a.b.a" and "a.c.2.d".
9 - Expect to receive changed attributes.
10 - Send GetParameterAttributes from ".a.b." (including its children).
11 - Expect to receive changed attributes.
12 - Send SetParameterAttributes to change attributes of ".a.b." (including its
13 children).
14 - Expect to receive OK status.
15 - Send GetParameterAttributes from ".a.b." (including its children)
16 - Expect to receive changed attributes.
17 Include: test_files/inform.txt
18 Include: test_files/inform_response.txt
19 Include: test_files/get_parameter_attributes.txt
20 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">
21 <soap:Header>
22 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
23 </soap:Header>
24 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
25 <cwmp:GetParameterAttributesResponse>
26 <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterAttributeStruct[3]">
27 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
28 <Name xsi:type="xsd:string">.a.d</Name>
29 <Notification xsi:type="xsd:int">0</Notification>
30 <AccessList>
31 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
32 </AccessList>
33 </ParameterAttributeStruct>
34 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
35 <Name xsi:type="xsd:string">.a.b.a</Name>
36 <Notification xsi:type="xsd:int">0</Notification>
37 <AccessList>
38 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
39 </AccessList>
40 </ParameterAttributeStruct>
41 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
42 <Name xsi:type="xsd:string">.a.c.2.d</Name>
43 <Notification xsi:type="xsd:int">0</Notification>
44 <AccessList>
45 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
46 </AccessList>
47 </ParameterAttributeStruct>
48 </ParameterList>
49 </cwmp:GetParameterAttributesResponse>
50 </soap:Body>
51 </soap:Envelope>
52
53 Request: <soap:Envelope
54 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
55 soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
56 xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
57 <soap:Header>
58 <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
59 </soap:Header>
60 <soap:Body>
61 <cwmp:SetParameterAttributes>
62 <cwmp:ParameterList>
63 <cwmp:SetParameterAttributesStruct>
64 <cwmp:Name>.a.d</cwmp:Name>
65 <cwmp:NotificationChange>1</cwmp:NotificationChange>
66 <cwmp:Notification>2</cwmp:Notification>
67 <cwmp:AccessListChange>1</cwmp:AccessListChange>
68 <cwmp:AccessList>
69 <xsd:string>Subscriber</xsd:string>
70 </cwmp:AccessList>
71 </cwmp:SetParameterAttributesStruct>
72 <cwmp:SetParameterAttributesStruct>
73 <cwmp:Name>.a.b.a</cwmp:Name>
74 <cwmp:NotificationChange>0</cwmp:NotificationChange>
75 <cwmp:Notification>1</cwmp:Notification>
76 <cwmp:AccessListChange>1</cwmp:AccessListChange>
77 <cwmp:AccessList>
78 </cwmp:AccessList>
79 </cwmp:SetParameterAttributesStruct>
80 <cwmp:SetParameterAttributesStruct>
81 <cwmp:Name>.a.c.2.d</cwmp:Name>
82 <cwmp:NotificationChange>1</cwmp:NotificationChange>
83 <cwmp:Notification>2</cwmp:Notification>
84 <cwmp:AccessList>
85 </cwmp:AccessList>
86 </cwmp:SetParameterAttributesStruct>
87 </cwmp:ParameterList>
88 </cwmp:SetParameterAttributes>
89 </soap:Body>
90 </soap:Envelope>
91 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">
92 <soap:Header>
93 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
94 </soap:Header>
95 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
96 <cwmp:SetParameterAttributesResponse/>
97 </soap:Body>
98 </soap:Envelope>
99
100 Include: test_files/get_parameter_attributes.txt
101 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">
102 <soap:Header>
103 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
104 </soap:Header>
105 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
106 <cwmp:GetParameterAttributesResponse>
107 <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterAttributeStruct[3]">
108 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
109 <Name xsi:type="xsd:string">.a.d</Name>
110 <Notification xsi:type="xsd:int">2</Notification>
111 <AccessList>
112 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
113 </AccessList>
114 </ParameterAttributeStruct>
115 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
116 <Name xsi:type="xsd:string">.a.b.a</Name>
117 <Notification xsi:type="xsd:int">0</Notification>
118 <AccessList/>
119 </ParameterAttributeStruct>
120 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
121 <Name xsi:type="xsd:string">.a.c.2.d</Name>
122 <Notification xsi:type="xsd:int">2</Notification>
123 <AccessList>
124 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
125 </AccessList>
126 </ParameterAttributeStruct>
127 </ParameterList>
128 </cwmp:GetParameterAttributesResponse>
129 </soap:Body>
130 </soap:Envelope>
131
132 Request: <soap:Envelope
133 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
134 soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
135 xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
136 <soap:Header>
137 <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
138 </soap:Header>
139 <soap:Body>
140 <cwmp:GetParameterAttributes>
141 <cwmp:ParameterNames>
142 <xsd:string>.a.b.</xsd:string>
143 </cwmp:ParameterNames>
144 </cwmp:GetParameterAttributes>
145 </soap:Body>
146 </soap:Envelope>
147
148 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">
149 <soap:Header>
150 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
151 </soap:Header>
152 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
153 <cwmp:GetParameterAttributesResponse>
154 <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterAttributeStruct[3]">
155 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
156 <Name xsi:type="xsd:string">.a.b.a</Name>
157 <Notification xsi:type="xsd:int">0</Notification>
158 <AccessList/>
159 </ParameterAttributeStruct>
160 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
161 <Name xsi:type="xsd:string">.a.b.b</Name>
162 <Notification xsi:type="xsd:int">0</Notification>
163 <AccessList>
164 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
165 </AccessList>
166 </ParameterAttributeStruct>
167 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
168 <Name xsi:type="xsd:string">.a.b.c</Name>
169 <Notification xsi:type="xsd:int">0</Notification>
170 <AccessList>
171 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
172 </AccessList>
173 </ParameterAttributeStruct>
174 </ParameterList>
175 </cwmp:GetParameterAttributesResponse>
176 </soap:Body>
177 </soap:Envelope>
178
179 Request: <soap:Envelope
180 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
181 soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
182 xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
183 <soap:Header>
184 <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
185 </soap:Header>
186 <soap:Body>
187 <cwmp:SetParameterAttributes>
188 <cwmp:ParameterList>
189 <cwmp:SetParameterAttributesStruct>
190 <cwmp:Name>.a.b.</cwmp:Name>
191 <cwmp:NotificationChange>1</cwmp:NotificationChange>
192 <cwmp:Notification>2</cwmp:Notification>
193 <cwmp:AccessListChange>1</cwmp:AccessListChange>
194 <cwmp:AccessList>
195 <xsd:string>Subscriber</xsd:string>
196 </cwmp:AccessList>
197 </cwmp:SetParameterAttributesStruct>
198 </cwmp:ParameterList>
199 </cwmp:SetParameterAttributes>
200 </soap:Body>
201 </soap:Envelope>
202 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">
203 <soap:Header>
204 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
205 </soap:Header>
206 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
207 <cwmp:SetParameterAttributesResponse/>
208 </soap:Body>
209 </soap:Envelope>
210
211 Request: <soap:Envelope
212 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
213 soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
214 xmlns:cwmp="urn:dslforum-org:cwmp-1-0">
215 <soap:Header>
216 <cwmp:ID soap:mustUnderstand="1">1234</cwmp:ID>
217 </soap:Header>
218 <soap:Body>
219 <cwmp:GetParameterAttributes>
220 <cwmp:ParameterNames>
221 <xsd:string>.a.b.</xsd:string>
222 </cwmp:ParameterNames>
223 </cwmp:GetParameterAttributes>
224 </soap:Body>
225 </soap:Envelope>
226
227 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">
228 <soap:Header>
229 <cwmp:ID soap:mustUnderstand="1" xsi:type="xsd:string">1234</cwmp:ID>
230 </soap:Header>
231 <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
232 <cwmp:GetParameterAttributesResponse>
233 <ParameterList xsi:type="soap-enc:Array" soap-enc:arrayType="cwmp:ParameterAttributeStruct[3]">
234 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
235 <Name xsi:type="xsd:string">.a.b.a</Name>
236 <Notification xsi:type="xsd:int">2</Notification>
237 <AccessList>
238 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
239 </AccessList>
240 </ParameterAttributeStruct>
241 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
242 <Name xsi:type="xsd:string">.a.b.b</Name>
243 <Notification xsi:type="xsd:int">2</Notification>
244 <AccessList>
245 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
246 </AccessList>
247 </ParameterAttributeStruct>
248 <ParameterAttributeStruct xsi:type="cwmp:ParameterAttributeStruct">
249 <Name xsi:type="xsd:string">.a.b.c</Name>
250 <Notification xsi:type="xsd:int">2</Notification>
251 <AccessList>
252 <xsd:string xsi:type="xsd:string">Subscriber</xsd:string>
253 </AccessList>
254 </ParameterAttributeStruct>
255 </ParameterList>
256 </cwmp:GetParameterAttributesResponse>
257 </soap:Body>
258 </soap:Envelope>
259
260 Include: test_files/session_end.txt

  ViewVC Help
Powered by ViewVC 1.1.26