ofdbus/dbus/data/auth/fail-after-n-attempts.auth-script
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 02:01:42 +0200
changeset 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201002 Kit: 201005

## this tests that after retrying too often we fail

SERVER


# 1
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE WAITING_FOR_INPUT

# 2
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE WAITING_FOR_INPUT

# 3
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE WAITING_FOR_INPUT

# 4
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE WAITING_FOR_INPUT

# 5
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE WAITING_FOR_INPUT

# 6
SEND 'AUTH SYMBIAN_DBUS_PLATFORM_SECURITY PROCESS_SID'
EXPECT_COMMAND DATA
EXPECT_STATE WAITING_FOR_INPUT
SEND 'DATA PROCESS_WRONG_PID'
EXPECT_COMMAND REJECTED
EXPECT_STATE NEED_DISCONNECT