1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of the License "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // Streaming CAF Integration Tests |
|
17 |
|
18 PRINT Run PREQ782 Streaming CAF Integration Tests |
|
19 |
|
20 // Load Suite |
|
21 LOAD_SUITE tscaf |
|
22 |
|
23 |
|
24 //! @SYMTestCaseID SEC-SCAF-MISC-0001 |
|
25 //! @SYMTestCaseDesc StartupComms |
|
26 |
|
27 START_TESTCASE SEC-SCAF-MISC-0001 |
|
28 RUN_TEST_STEP 100 tscaf StartupCommsStep |
|
29 END_TESTCASE SEC-SCAF-MISC-0001 |
|
30 |
|
31 |
|
32 //********************** SEC-SCAF-A : CONSUMER INTERFACE ********************** |
|
33 |
|
34 //! @SYMTestCaseID SEC-SCAF-A001 |
|
35 //! @SYMTestCaseDesc Key stream decoder construction with a supported protected key stream description |
|
36 //! (keystreamdecoder_positiveconstruct) |
|
37 //! @SYMPREQ PREQ782 |
|
38 //! @SYMREQ REQ7772, REQ7776, REQ7781, REQ7784, REQ7954 |
|
39 //! @SYMTestPriority Critical |
|
40 //! @SYMTestStatus Implemented |
|
41 //! @SYMTestActions Preconditions: |
|
42 //! • There are the necessary ROM based test stream agent plug-ins present that support |
|
43 //! the SDP media description supplied during construction of the key stream decoder. |
|
44 //! |
|
45 //! Test Actions: |
|
46 //! • Generate a protected key stream description. |
|
47 //! • Generate an SDP media description for the key stream. |
|
48 //! • Construct the key stream decoder using the protected stream description and SDP |
|
49 //! media description objects previously generated. |
|
50 //! • Destroy the key stream decoder object. |
|
51 //! |
|
52 //! @SYMTestExpectedResults • The key stream decoder is successfully created and destroyed. |
|
53 //! @SYMTestType CIT |
|
54 |
|
55 START_TESTCASE SEC-SCAF-A001 |
|
56 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program |
|
57 RUN_TEST_STEP 100 tscaf SCAFKeyStreamDecoderConstruct z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positiveconstruct |
|
58 END_TESTCASE SEC-SCAF-A001 |
|
59 |
|
60 |
|
61 |
|
62 //! @SYMTestCaseID SEC-SCAF-A004 |
|
63 //! @SYMTestCaseDesc Querying attributes related to a key stream decoder |
|
64 //! (keystreamdecoder_positivequery) |
|
65 //! @SYMPREQ PREQ782 |
|
66 //! @SYMREQ REQ7772, REQ7776, REQ7784, REQ7954 |
|
67 //! @SYMTestPriority Critical |
|
68 //! @SYMTestStatus Implemented |
|
69 //! @SYMTestActions Preconditions: |
|
70 //! • The necessary ROM based test stream agent plug-in is present that supports the SDP |
|
71 //! media description |
|
72 //! supplied during construction of the key stream decoder. |
|
73 //! • There are two Rights Objects files (serviceProtectedRO and programProtectedRO) in |
|
74 //! the private folder of the supporting test stream agent. |
|
75 //! • The Rights Issuer URI of the serviceProtectedRO is set to “IssuerUriServiceProtectedRO” |
|
76 //! and programProtectedRO is set to “IssuerUriProgramProtectedRO” |
|
77 //! |
|
78 //! Test Actions: |
|
79 //! • Generate a protected key stream description. |
|
80 //! • Generate an SDP media description for the key stream with an attribute requiring |
|
81 //! programProtectedRO |
|
82 //! • Construct the key stream decoder using the protected stream description and SDP media |
|
83 //! description objects previously generated. |
|
84 //! • Query the stream agent to determine whether the program is protected. |
|
85 //! • Query the stream agent to determine whether the whole service is protected. |
|
86 //! • Query the stream agent to retrieve the Rights Issuer URI. |
|
87 //! • Destroy the key stream decoder object. |
|
88 //! |
|
89 //! @SYMTestExpectedResults • The key stream decoder is successfully created. |
|
90 //! • The program is protected but the whole service is not. |
|
91 //! • The Rights Issuer URI retrieved is “IssuerUriProgramProtectedRO” |
|
92 //! |
|
93 //! @SYMTestType CIT |
|
94 |
|
95 START_TESTCASE SEC-SCAF-A004 |
|
96 |
|
97 // Copy the necessary 'Program' Protected rights objects into the stream agent's private directory |
|
98 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program |
|
99 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positivequery_programprotectedRO |
|
100 |
|
101 // Copy the necessary 'Service' Protected rights objects into the stream agent's private directory |
|
102 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Service |
|
103 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_positivequery_serviceprotectedRO |
|
104 |
|
105 END_TESTCASE SEC-SCAF-A004 |
|
106 |
|
107 //! @SYMTestCaseID SEC-SCAF-A007 |
|
108 //! @SYMTestCaseDesc Concurrent key stream decoder construction and querying |
|
109 //! (keystreamdecoder_concurrentquery) |
|
110 //! @SYMPREQ PREQ782 |
|
111 //! @SYMREQ REQ7772, REQ7776, REQ7781, REQ7784, REQ7954 |
|
112 //! @SYMTestPriority Critical |
|
113 //! @SYMTestStatus Implemented |
|
114 //! @SYMTestActions Preconditions: |
|
115 //! The following test actions should be carried out concurrently in 3 separate threads: |
|
116 //! • Generate a protected key stream description. |
|
117 //! • Generate an SDP media description. Thread A should generate an SDP media description |
|
118 //! supported by test stream agent plug-in A and Threads B & C should generate SDP media |
|
119 //! description objects supported by test stream agent plug-in B. |
|
120 //! • Construct a key stream decoder object using the generated protected key stream |
|
121 //! description and SDP media description objects. |
|
122 //! • When the key stream decoder has been constructed, query the attributes associated |
|
123 //! with the stream agent. |
|
124 //! • Destroy the key stream decoder object. |
|
125 //! |
|
126 //! @SYMTestExpectedResults • Each key stream decoder object should construct successfully. |
|
127 //! • Checking the implementation attributes reveals that Thread A has invoked test stream |
|
128 //! agent A and Thread B & C have invoked test stream agent B. |
|
129 //! |
|
130 //! @SYMTestType CIT |
|
131 |
|
132 START_TESTCASE SEC-SCAF-A007 |
|
133 |
|
134 // Copy the necessary rights objects into the stream agent's private directory |
|
135 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_ServiceProgram |
|
136 |
|
137 CONCURRENT |
|
138 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_concurrentquery_threadA |
|
139 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_concurrentquery_threadB |
|
140 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini keystreamdecoder_concurrentquery_threadC |
|
141 CONSECUTIVE |
|
142 |
|
143 END_TESTCASE SEC-SCAF-A007 |
|
144 |
|
145 |
|
146 |
|
147 //! @SYMTestCaseID SEC-SCAF-A008 |
|
148 //! @SYMTestCaseDesc Concurrent multi-thread usage of multiple key stream decoders |
|
149 //! (multikeystreamdecoders) |
|
150 //! @SYMPREQ PREQ782 |
|
151 //! @SYMREQ REQ7772, REQ7775, REQ7776, REQ7781, REQ7784, REQ7954 |
|
152 //! @SYMTestPriority Critical |
|
153 //! @SYMTestStatus Implemented |
|
154 //! @SYMTestActions Preconditions: |
|
155 //! The following test actions should be carried out concurrently in 3 separate threads: |
|
156 //! • Generate a protected key stream description. |
|
157 //! • Generate an SDP media description (SDPa) for the key stream with an attribute |
|
158 //! requiring serviceProtectedRO. |
|
159 //! • Construct a key stream decoder object using the generated protected key stream |
|
160 //! description and SDP media description object SDPa – decoderA. |
|
161 //! • Generate another SDP media description (SDPb) for the key stream with an attribute |
|
162 //! requiring programProtectedRO. |
|
163 //! • Construct another key stream decoder object using the generated protected key stream |
|
164 //! description and SDP media description object SDPb – decoderB. |
|
165 //! • Query decoderA to retrieve the ‘Rights Issuer URI’ attribute from the invoked |
|
166 //! stream agent. |
|
167 //! • Query decoderB to retrieve the ‘Rights Issuer URI’ attribute from the invoked |
|
168 //! stream agent. |
|
169 //! • Destroy both key stream decoder objects. |
|
170 //! |
|
171 //! @SYMTestExpectedResults • Each key stream decoder object should construct successfully. |
|
172 //! • The Rights Issuer URI attribute value retrieved from decoderA is |
|
173 //! “IssuerUriServiceProtectedRO” |
|
174 //! • The Rights Issuer URI attribute value retrieved from decoderB is |
|
175 //! “IssuerUriProgramProtectedRO” |
|
176 //! |
|
177 //! @SYMTestType CIT |
|
178 |
|
179 START_TESTCASE SEC-SCAF-A008 |
|
180 |
|
181 // Copy the necessary rights objects into the stream agent's private directory |
|
182 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_ServiceProgram |
|
183 |
|
184 // 2 Key Stream Decoders, Invoking the same stream agent |
|
185 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_singlethread_singleagent |
|
186 |
|
187 // 2 Key Stream Decoders, Invoking different stream agents |
|
188 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_singlethread_multiagents |
|
189 |
|
190 // 3 concurrent threads, 2 key stream decoders per thread invoking the same agent |
|
191 CONCURRENT |
|
192 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_singleagent_threadA |
|
193 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_singleagent_threadB |
|
194 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_singleagent_threadC |
|
195 CONSECUTIVE |
|
196 |
|
197 // 3 concurrent threads, 2 key stream decoders per thread invoking different agents |
|
198 CONCURRENT |
|
199 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_multiagents_threadA |
|
200 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_multiagents_threadB |
|
201 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_multiagents_threadC |
|
202 CONSECUTIVE |
|
203 |
|
204 END_TESTCASE SEC-SCAF-A008 |
|
205 |
|
206 |
|
207 |
|
208 //****************** TEST STREAM AGENT UNIT TESTING ******************* |
|
209 |
|
210 //! @SYMTestCaseID SEC-SCAF-S001 |
|
211 //! @SYMTestCaseDesc A unit test step which tests the Test Streaming Agent |
|
212 //! (StreamingTestAgent) |
|
213 //! @SYMREQ Req-b |
|
214 //! @SYMTestPriority Low |
|
215 //! @SYMTestActions A connection is established with the Test Agent Server via its client side and the closed. |
|
216 //! @SYMTestExpectedResults Successful connection and disconnectiom to/from the Test Streaming Agent Server. |
|
217 //! @SYMDevelopedForRelease Oghma |
|
218 |
|
219 START_TESTCASE SEC-SCAF-S001 |
|
220 RUN_TEST_STEP 100 tscaf SCAFTestAgentServer |
|
221 END_TESTCASE SEC-SCAF-S001 |
|
222 |
|
223 |
|
224 |
|
225 //************ SEC-SCAF-C : INTEROPERABILITY WITH DECODING STACK *********** |
|
226 |
|
227 |
|
228 //! @SYMTestCaseID SEC-SCAF-C001 |
|
229 //! @SYMTestCaseDesc Usage of key stream sink |
|
230 //! (keystreamsinks) |
|
231 //! @SYMPREQ PREQ782 |
|
232 //! @SYMREQ REQ7774, REQ7778, REQ7786 |
|
233 //! @SYMTestPriority Critical |
|
234 //! @SYMTestStatus Implemented |
|
235 //! @SYMTestActions Preconditions: |
|
236 //! • There are the necessary ROM based test stream agent plug-ins present that support |
|
237 //! the SDP media description supplied during construction of each key stream decoder. |
|
238 //! • There is a Right Object file in the private folder of the supporting test stream agent. |
|
239 //! |
|
240 //! Test Actions: |
|
241 //! • Create a key stream sink |
|
242 //! • Create a plain key and encrypt it with the key extracted from the RO |
|
243 //! • Connect to the Test Agent |
|
244 //! • Send the key stream sink |
|
245 //! • Send the encrypted string (a simple key stream) |
|
246 //! • The test agent server decrypts the key stream by using the key from the RO. |
|
247 //! • The test agent server processes the decrypted key (the key is written into a file |
|
248 //! defined in the key stream sink) |
|
249 //! • Check whether the right plain key is written down |
|
250 //! • Destroy the key stream decoder object. |
|
251 //! |
|
252 //! @SYMTestExpectedResults • The plain string is found in the predefined location. |
|
253 //! |
|
254 //! @SYMTestType CIT |
|
255 |
|
256 START_TESTCASE SEC-SCAF-C001 |
|
257 RUN_TEST_STEP 100 tscaf SCAFKeyStreamSink z:\tcaf\tscaf\tscaf.ini sdp_service_protected |
|
258 END_TESTCASE SEC-SCAF-C001 |
|
259 |
|
260 |
|
261 |
|
262 //! @SYMTestCaseID SEC-SCAF-C002 |
|
263 //! @SYMTestCaseDesc Usage of key stream sinks in concurrent sessions |
|
264 //! (concurrent_keystreamsinks) |
|
265 //! @SYMPREQ PREQ782 |
|
266 //! @SYMREQ REQ7774, REQ7778, REQ7786 |
|
267 //! @SYMTestPriority Critical |
|
268 //! @SYMTestStatus Preconditions: |
|
269 //! • There are the necessary ROM based test stream agent plug-ins present that support |
|
270 //! the SDP media description supplied during construction of each key stream decoder. |
|
271 //! • There are two Rights Object files (serviceProtectedRO and programProtectedRO) in the |
|
272 //! private folder of each test stream agent. |
|
273 //! |
|
274 //! Test Actions: |
|
275 //! • Generate a protected key stream description. |
|
276 //! • Generate an SDP media description (SDPa) for the key stream with an attribute requiring |
|
277 //! serviceProtectedRO. |
|
278 //! • Construct a key stream decoder object using the generated protected key stream |
|
279 //! description and SDP media description object SDPa – decoderA. |
|
280 //! • Generate another SDP media description (SDPb) for the key stream with an attribute requiring |
|
281 //! programProtectedRO. |
|
282 //! • Construct another key stream decoder object using the generated protected key stream |
|
283 //! description and SDP media description object SDPb – decoderB. |
|
284 //! • Create plain_keyA |
|
285 //! • Encrypt plain_keyA with encryption_keyA extracted from serviceProtectedRO |
|
286 //! • Send the encrypted plain_keyA using decoderA |
|
287 //! • Create plain_keyB |
|
288 //! • Encrypt plain_keyB with encryption_keyB extracted from programProtectedRO |
|
289 //! • Send the encrypted plain_keyB using decoderB |
|
290 //! • Check whether stringA is in pathA and stringB is in pathB |
|
291 //! • Destroy both key stream decoder objects. |
|
292 //! |
|
293 //! @SYMTestExpectedResults • The plain strings are found in the predefined locations. |
|
294 //! |
|
295 //! @SYMTestType CIT |
|
296 |
|
297 START_TESTCASE SEC-SCAF-C002 |
|
298 RUN_TEST_STEP 100 tscaf SCAFConcurrentKeyStreamSinks z:\tcaf\tscaf\tscaf.ini concurrent_keystreamsinks |
|
299 END_TESTCASE SEC-SCAF-C002 |
|
300 |
|
301 |
|
302 |
|
303 //********************** SEC-SCAF-D : POST-ACQUISITION ********************** |
|
304 |
|
305 |
|
306 //! @SYMTestCaseID SEC-SCAF-D001 |
|
307 //! @SYMTestCaseDesc Post-acquisition content protection |
|
308 //! (postacqusition) |
|
309 //! @SYMPREQ PREQ782 |
|
310 //! @SYMREQ REQ7788 |
|
311 //! @SYMTestPriority Critical |
|
312 //! @SYMTestStatus Implemented |
|
313 //! @SYMTestActions Preconditions: |
|
314 //! The following test actions should be carried out: |
|
315 //! • Copy rorecordable.dr (a rights object where ECanExport and EMustProtectIfRecording |
|
316 //! flags shall be set) and its post-acquistion rights object (ropostacquisition.dr) into |
|
317 //! the private directory of the test agent server. |
|
318 //! • Generate a test key stream description |
|
319 //! • Generate an SDP media description for the key stream with an attribute requiring |
|
320 //! rorecordable.dr |
|
321 //! • Construct the key stream decoder using the protected key stream description and SDP |
|
322 //! media description objects previously generated. |
|
323 //! • Query the stream agent to determine whether it is allowed to export and record the |
|
324 //! content. |
|
325 //! • Request and gets a handle to the postacqusition rights object file |
|
326 //! • Import the postacqusition rights object file to the post-acquisition caf agent |
|
327 //! • Open a session to import the content |
|
328 //! • Import the content to the post-acquisition caf agent |
|
329 //! |
|
330 //! @SYMTestExpectedResults |
|
331 //! • The protected stream is allowed to be recorded |
|
332 //! • The test streaming agent returns a handle of the post-acquistion RO successfully |
|
333 //! • The post-acquistion RO is successfully imported to the post-acquisition caf agent |
|
334 //! |
|
335 //! @SYMTestType CIT |
|
336 |
|
337 START_TESTCASE SEC-SCAF-D001 |
|
338 |
|
339 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition |
|
340 |
|
341 RUN_TEST_STEP 100 tscaf SCAFPostAcquisition z:\tcaf\tscaf\tscaf.ini post_acquisition_create_outputs |
|
342 |
|
343 END_TESTCASE SEC-SCAF-D001 |
|
344 |
|
345 |
|
346 |
|
347 //********************** SEC-SCAF-E : INTEROPERABILITY WITH DECODING STACK - IPSEC *********** |
|
348 |
|
349 RUN_SCRIPT z:\tcaf\tscaf\tscafipsec.script |
|
350 |
|
351 |
|
352 |
|
353 //********************** SEC-SCAF-G : SINGLE PROCESS STREAM AGENT TESTING ********************** |
|
354 |
|
355 //! @SYMTestCaseID SEC-SCAF-G001 |
|
356 //! @SYMTestCaseDesc SPSA - Key stream decoder construction with a supported protected key stream description |
|
357 //! (spsa_keystreamdecoder_positiveconstruct) |
|
358 //! @SYMPREQ PREQ782 |
|
359 //! @SYMREQ |
|
360 //! @SYMTestPriority High |
|
361 //! @SYMTestStatus Implemented |
|
362 //! @SYMTestActions Preconditions: |
|
363 //! • The necessary ROM based ‘single process’ stream agent plug-in is present that supports |
|
364 //! the SDP media description supplied during construction of the key stream decoder. |
|
365 //! |
|
366 //! Test Actions: |
|
367 //! • Run the test step actions as described in test case SEC-SCAF-A001. |
|
368 //! |
|
369 //! @SYMTestExpectedResults • The key stream decoder constructed by the single process stream agent is successfully |
|
370 //! created and destroyed. |
|
371 //! |
|
372 //! @SYMTestType CIT |
|
373 |
|
374 START_TESTCASE SEC-SCAF-G001 |
|
375 RUN_TEST_STEP 100 tscaf SCAFKeyStreamDecoderConstruct z:\tcaf\tscaf\tscaf.ini spsa_keystreamdecoder_positiveconstruct |
|
376 END_TESTCASE SEC-SCAF-G001 |
|
377 |
|
378 |
|
379 |
|
380 //! @SYMTestCaseID SEC-SCAF-G002 |
|
381 //! @SYMTestCaseDesc SPSA - Querying attributes related to a key stream decoder |
|
382 //! (spsa_keystreamdecoder_positivequery) |
|
383 //! @SYMPREQ PREQ782 |
|
384 //! @SYMREQ |
|
385 //! @SYMTestPriority High |
|
386 //! @SYMTestStatus Implemented |
|
387 //! @SYMTestActions Preconditions: |
|
388 //! • The necessary ROM based ‘single process’ stream agent plug-in is present that supports |
|
389 //! the SDP media description supplied during construction of the key stream decoder. |
|
390 //! • The required Rights Object file is present in the private folder for the supporting |
|
391 //! single process stream agent. |
|
392 //! |
|
393 //! Test Actions: |
|
394 //! • Run the test step actions as described in test case SEC-SCAF-A004. |
|
395 //! |
|
396 //! @SYMTestExpectedResults • The key stream decoder constructed by the single process stream agent is successfully |
|
397 //! created. |
|
398 //! • All of the expected attribute values match their corresponding values retrieved from |
|
399 //! the key stream decoder. |
|
400 //! |
|
401 //! @SYMTestType CIT |
|
402 |
|
403 START_TESTCASE SEC-SCAF-G002 |
|
404 |
|
405 // Copy the necessary 'Program' Protected rights objects into the single process stream agent's private directory |
|
406 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program_SingleProcessAgent |
|
407 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini spsa_keystreamdecoder_positivequery_programprotectedRO |
|
408 |
|
409 // Copy the necessary 'Service' Protected rights objects into the single process stream agent's private directory |
|
410 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Service_SingleProcessAgent |
|
411 RUN_TEST_STEP tscaf SCAFKeyStreamDecoderAttributes z:\tcaf\tscaf\tscaf.ini spsa_keystreamdecoder_positivequery_serviceprotectedRO |
|
412 |
|
413 END_TESTCASE SEC-SCAF-G002 |
|
414 |
|
415 |
|
416 |
|
417 //! @SYMTestCaseID SEC-SCAF-G003 |
|
418 //! @SYMTestCaseDesc SPSA - Concurrent multi-thread usage of multiple key stream decoders |
|
419 //! (spsa_multikeystreamdecoders) |
|
420 //! @SYMPREQ PREQ782 |
|
421 //! @SYMREQ |
|
422 //! @SYMTestPriority High |
|
423 //! @SYMTestStatus Implemented |
|
424 //! @SYMTestActions Preconditions: |
|
425 //! • The necessary ROM based ‘single process’ and ‘client-server’ stream agent plug-in |
|
426 //! implementations are present that support the SDP media descriptions supplied during |
|
427 //! construction of the key stream decoders. |
|
428 //! • The required Rights Object files are present in the private folder of the supporting |
|
429 //! stream agents. |
|
430 //! |
|
431 //! Test Actions: |
|
432 //! The following test actions should be carried out concurrently in 3 separate threads |
|
433 //! (1 of the threads should instantiate a ‘single process’ stream agent, whereas the others |
|
434 //! should instantiate ‘client-server’ based stream agents) : |
|
435 //! |
|
436 //! • Run the test step actions as described in test case SEC-SCAF-A008 |
|
437 //! |
|
438 //! @SYMTestExpectedResults • Each of the key stream decoder objects that have been constructed by either a |
|
439 //! client-server or single process stream agent plug-in are created successfully. |
|
440 //! • All of the expected attribute values match their corresponding values retrieved from |
|
441 //! the associated key stream decoder. |
|
442 //! |
|
443 //! @SYMTestType CIT |
|
444 |
|
445 START_TESTCASE SEC-SCAF-G003 |
|
446 |
|
447 // Copy the necessary rights objects into the stream agent's private directory (Client/Server Architecture) |
|
448 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_ServiceProgram |
|
449 |
|
450 // Copy the necessary rights objects into the stream agent's private directory (Single Process Stream Agent) |
|
451 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_ServiceProgram_SingleProcessAgent |
|
452 |
|
453 // 2 Key Stream Decoders, Invoking the same single process stream agent |
|
454 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_singlethread_singleagent |
|
455 |
|
456 // 2 Key Stream Decoders, Invoking different stream agents (1 Single Process & 1 Client/Server) |
|
457 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_singlethread_multiagents |
|
458 |
|
459 // 3 concurrent threads, 2 key stream decoders per thread invoking the same agent |
|
460 CONCURRENT |
|
461 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_concurrent_singleagent_threadA |
|
462 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_singleagent_threadB |
|
463 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini multikeystreamdecoders_concurrent_singleagent_threadC |
|
464 CONSECUTIVE |
|
465 |
|
466 // 3 concurrent threads, 2 key stream decoders per thread invoking different agents (1 Single Process & 1 Client/Server) |
|
467 CONCURRENT |
|
468 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_concurrent_multiagents_threadA |
|
469 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_concurrent_multiagents_threadB |
|
470 RUN_TEST_STEP tscaf SCAFMultiKeyStreamDecoders z:\tcaf\tscaf\tscaf.ini spsa_multikeystreamdecoders_concurrent_multiagents_threadC |
|
471 CONSECUTIVE |
|
472 |
|
473 END_TESTCASE SEC-SCAF-G003 |
|
474 |
|
475 |
|
476 |
|
477 //! @SYMTestCaseID SEC-SCAF-G004 |
|
478 //! @SYMTestCaseDesc SPSA - Usage of key stream sink |
|
479 //! (spsa_keystreamsinks) |
|
480 //! @SYMPREQ PREQ782 |
|
481 //! @SYMREQ |
|
482 //! @SYMTestPriority High |
|
483 //! @SYMTestStatus Implemented |
|
484 //! @SYMTestActions Preconditions: |
|
485 //! • The necessary ROM based ‘single process’ stream agent plug-in is present that supports |
|
486 //! the SDP media description supplied during construction of the key stream decoder. |
|
487 //! • The required Rights Object file is present in the private folder for the supporting single |
|
488 //! process stream agent. |
|
489 //! |
|
490 //! Test Actions: |
|
491 //! • Run the test step actions as described in test case SEC-SCAF-C001. |
|
492 //! |
|
493 //! @SYMTestExpectedResults • The expected plain text string is found in the predefined location. |
|
494 //! |
|
495 //! @SYMTestType CIT |
|
496 |
|
497 START_TESTCASE SEC-SCAF-G004 |
|
498 |
|
499 // Single Process Stream Agent Invoked |
|
500 RUN_TEST_STEP 100 tscaf SCAFKeyStreamSink z:\tcaf\tscaf\tscaf.ini spsa_keystreamink |
|
501 |
|
502 // 2 Single Process Stream Agents Invoked |
|
503 RUN_TEST_STEP 100 tscaf SCAFConcurrentKeyStreamSinks z:\tcaf\tscaf\tscaf.ini spsa_concurrent_keystreamsinks |
|
504 |
|
505 // 1 Single Process Stream Agent and 1 Client/Server Stream Agent Invoked |
|
506 RUN_TEST_STEP 100 tscaf SCAFConcurrentKeyStreamSinks z:\tcaf\tscaf\tscaf.ini spsa_cssa_concurrent_keystreamsinks |
|
507 |
|
508 END_TESTCASE SEC-SCAF-G004 |
|
509 |
|
510 |
|
511 |
|
512 //! @SYMTestCaseID SEC-SCAF-G006 |
|
513 //! @SYMTestCaseDesc SPSA - Testing IPSec integration with key stream decoder |
|
514 //! (spsa_ipsec_integration_decoder_automatic) |
|
515 //! @SYMPREQ PREQ782 |
|
516 //! @SYMREQ |
|
517 //! @SYMTestPriority High |
|
518 //! @SYMTestStatus Implemented |
|
519 //! @SYMTestActions Preconditions: |
|
520 //! • The necessary ROM based ‘single process’ stream agent plug-in is present that supports the |
|
521 //! SDP media description supplied during construction of the key stream decoder. |
|
522 //! |
|
523 //! Test Actions: |
|
524 //! • Run the test step actions as described in test case SEC-SCAF-E015. |
|
525 //! |
|
526 //! @SYMTestExpectedResults • Associations was added |
|
527 //! |
|
528 //! @SYMTestType CIT |
|
529 |
|
530 START_TESTCASE SEC-SCAF-G006 |
|
531 |
|
532 RUN_TEST_STEP tscaf SCAFSetupRightsObjects z:\tcaf\tscaf\tscaf.ini Rights_Program_SingleProcessAgent |
|
533 |
|
534 //The time limit is disabled since this test is manual |
|
535 RUN_TEST_STEP -1 tscaf SCAFIpSecDecoderIntegration z:\tcaf\tscaf\tscaf.ini spsa_ipsec_integration_decoder_automatic |
|
536 |
|
537 END_TESTCASE SEC-SCAF-G006 |
|
538 |
|
539 |
|
540 |
|
541 //********************** SEC-SCAF-H : REFERENCE AGENT TEST ********************** |
|
542 |
|
543 |
|
544 //! @SYMTestCaseID SEC-SCAF-H001 |
|
545 //! @SYMTestCaseDesc Smoke testing for the Reference Agent |
|
546 //! (referenceagent) |
|
547 //! @SYMPREQ PREQ782 |
|
548 //! @SYMREQ ------- |
|
549 //! @SYMTestPriority Critical |
|
550 //! @SYMTestStatus Implemented |
|
551 //! @SYMTestActions |
|
552 //! • Generate a IPSec protected key stream description. |
|
553 //! • Create a key stream sink from the protected key stream description. |
|
554 //! • Create a key stream decoder from an SDP message requiring the reference agent |
|
555 //! and the key stream sink. |
|
556 //! • Create a short term key message and write it to a predefined socket. |
|
557 //! @SYMTestExpectedResults |
|
558 //! • Interfaces are invoked without leaves and panics. |
|
559 //! |
|
560 //! @SYMTestType CIT |
|
561 |
|
562 START_TESTCASE SEC-SCAF-H001 |
|
563 |
|
564 RUN_TEST_STEP 100 tscaf SCAFRefAgent z:\tcaf\tscaf\tscaf.ini reference_agent |
|
565 |
|
566 END_TESTCASE SEC-SCAF-H001 |
|