ofdbus/dbus/data/auth/fail-after-n-attempts.auth-script
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 ## this tests that after retrying too often we fail
       
     2 
       
     3 SERVER
       
     4 
       
     5 
       
     6 # 1
       
     7 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
     8 EXPECT_COMMAND DATA
       
     9 EXPECT_STATE WAITING_FOR_INPUT
       
    10 SEND 'DATA PROCESS_WRONG_PID'
       
    11 EXPECT_COMMAND REJECTED
       
    12 EXPECT_STATE WAITING_FOR_INPUT
       
    13 
       
    14 # 2
       
    15 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
    16 EXPECT_COMMAND DATA
       
    17 EXPECT_STATE WAITING_FOR_INPUT
       
    18 SEND 'DATA PROCESS_WRONG_PID'
       
    19 EXPECT_COMMAND REJECTED
       
    20 EXPECT_STATE WAITING_FOR_INPUT
       
    21 
       
    22 # 3
       
    23 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
    24 EXPECT_COMMAND DATA
       
    25 EXPECT_STATE WAITING_FOR_INPUT
       
    26 SEND 'DATA PROCESS_WRONG_PID'
       
    27 EXPECT_COMMAND REJECTED
       
    28 EXPECT_STATE WAITING_FOR_INPUT
       
    29 
       
    30 # 4
       
    31 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
    32 EXPECT_COMMAND DATA
       
    33 EXPECT_STATE WAITING_FOR_INPUT
       
    34 SEND 'DATA PROCESS_WRONG_PID'
       
    35 EXPECT_COMMAND REJECTED
       
    36 EXPECT_STATE WAITING_FOR_INPUT
       
    37 
       
    38 # 5
       
    39 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
    40 EXPECT_COMMAND DATA
       
    41 EXPECT_STATE WAITING_FOR_INPUT
       
    42 SEND 'DATA PROCESS_WRONG_PID'
       
    43 EXPECT_COMMAND REJECTED
       
    44 EXPECT_STATE WAITING_FOR_INPUT
       
    45 
       
    46 # 6
       
    47 SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
       
    48 EXPECT_COMMAND DATA
       
    49 EXPECT_STATE WAITING_FOR_INPUT
       
    50 SEND 'DATA PROCESS_WRONG_PID'
       
    51 EXPECT_COMMAND REJECTED
       
    52 EXPECT_STATE NEED_DISCONNECT