messagingfw/msgtestfw/TestCases/ScriptedTestCases/Capabilities/Cap_EMsvChangeAttributes.script
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     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 "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 
       
    17 PRINT Running  EMsvChangeAttributes
       
    18 
       
    19 //******************************************
       
    20 // We should have WriteUserData capabilities to change the entry. 
       
    21 // The SID does not matter; we must have the correct caps to change the entry.
       
    22 //******************************************
       
    23 
       
    24 PRINT Running  EMsvChangeAttributes : Read Caps = WriteUserData. Same SID. Should Pass.
       
    25 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    26 
       
    27 
       
    28 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    29 
       
    30 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00010000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    31 	
       
    32 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateSingleEntryInbox.script
       
    33 
       
    34 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvChangeAttributes_Pass.script
       
    35 
       
    36 // Need delay to allow SendProxyServer shutting down
       
    37 DELAY 3000
       
    38 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    39 
       
    40 //******************************************
       
    41 // We should have WriteUserData capabilities to change the entry. Try no capabilities.
       
    42 // The SID does not matter; we must have the correct caps to change the entry.
       
    43 // Note normally the same SID would allow this to PASS. In the case it does not must use ChangeEntryL method. 
       
    44 //******************************************
       
    45 
       
    46 PRINT Running  EMsvChangeAttributes : Read Caps = 0. Same SID. Should Fail.
       
    47 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    48 
       
    49 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    50 
       
    51 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7776 C:\sys\bin\SendProxyServer.exe
       
    52 	
       
    53 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateSingleEntryInbox.script
       
    54 
       
    55 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvChangeAttributes_Fail.script
       
    56 
       
    57 // Need delay to allow SendProxyServer shutting down
       
    58 DELAY 3000
       
    59 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    60 
       
    61 //******************************************
       
    62 // We should have WriteUserData capabilities to change the entry. 
       
    63 // The SID does not matter; we must have the correct caps to change the entry.
       
    64 //******************************************
       
    65 
       
    66 PRINT Running  EMsvChangeAttributes : Read Caps = WriteUserData. Different SID. Should Pass.
       
    67 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    68 
       
    69 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    70 
       
    71 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00010000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    72 	
       
    73 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateSingleEntryInbox.script
       
    74 
       
    75 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvChangeAttributes_Pass.script
       
    76 
       
    77 // Need delay to allow SendProxyServer shutting down
       
    78 DELAY 3000
       
    79 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script
       
    80 
       
    81 //******************************************
       
    82 // We should have WriteUserData capabilities to change the entry. We give it no caps.
       
    83 // The SID does not matter; we must have the correct caps to change the entry.
       
    84 //******************************************
       
    85 
       
    86 PRINT Running  EMsvChangeAttributes :  Read Caps = 0. Different SID. Should Fail.
       
    87 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Setup.script
       
    88 
       
    89 RUN_PROGRAM -1 setcap c:\sys\bin\MessagingTestServer_caps.exe 0003fffe -SID 101F7776 C:\sys\bin\MessagingTestServer.exe
       
    90 
       
    91 RUN_PROGRAM -1 setcap c:\sys\bin\SendProxyServer_caps.exe 00000000 -SID 101F7777 C:\sys\bin\SendProxyServer.exe
       
    92 	
       
    93 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_CreateSingleEntryInbox.script
       
    94 
       
    95 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_SendEMsvChangeAttributes_Fail.script
       
    96 
       
    97 // Need delay to allow SendProxyServer shutting down
       
    98 DELAY 3000
       
    99 RUN_SCRIPT  c:\msgtest\TestFramework\ScriptedTestCases\Capabilities\Cap_Restore.script