cryptoservices/filebasedcertificateandkeystores/test/tcertapps/scripts/apipolicing.ini
author Santosh V Patil <santosh.v.patil@nokia.com>
Tue, 08 Jun 2010 10:20:14 +0530
changeset 67 3b7dafebba42
parent 30 cf642210ecb7
child 85 1efb81185f1c
permissions -rw-r--r--
Transplanting changeset f3b0b5725c58 (Fix for bug 1301)

[SEC-TCERTAPPS-APIPOLICING-4-001]
<actionbody>
	<testexe>t_certapps.exe</testexe>
	<excludedcapabilities>
	<capability>TCB</capability>
	</excludedcapabilities>
	<policy>
	<capability>WriteDeviceData</capability>
	</policy>

	<preactions>
	<action>
		<actionname>Initialise</actionname>
		<actiontype>InitManager</actiontype>
		<actionbody>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</preactions>

	<passactions>
	<action>
		<actionname>Add applications</actionname>
		<actiontype>AddApp</actiontype>
		<actionbody>
			<uid>24601</uid><appname>My application 1</appname>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>

	<action>
		<actionname>Getting the application list</actionname>
		<actiontype>GetApplications</actiontype>
		<actionbody>
			<uid>24601</uid><appname>My application 1</appname>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</passactions>

	<failactions>
	<action>
		<actionname>Add applications</actionname>
		<actiontype>AddApp</actiontype>
		<actionbody>
			<uid>24601</uid><appname>My application 1</appname>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrPermissionDenied</return>
		</actionresult>
	</action>

	<action>
		<actionname>Getting the application list</actionname>
		<actiontype>GetApplications</actiontype>
		<actionbody>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</failactions>

	<postactions>
	<action>
		<actionname>Destroy the manager</actionname>
		<actiontype>DestroyManager</actiontype>
		<actionbody></actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</postactions>
</actionbody>

[SEC-TCERTAPPS-APIPOLICING-5-001]
<actionbody>
	<testexe>t_certapps.exe</testexe>
	<excludedcapabilities>
	<capability>TCB</capability>
	</excludedcapabilities>
	<policy>
	</policy>

	<preactions>
	<action>
		<actionname>Initialise</actionname>
		<actiontype>InitManager</actiontype>
		<actionbody>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</preactions>

	<passactions>
	<action>
		<actionname>Getting the application list</actionname>
		<actiontype>GetApplications</actiontype>
		<actionbody>
			<uid>24601</uid><appname>My application 1</appname>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</passactions>

	<failactions>
	</failactions>

	<postactions>
	<action>
		<actionname>Destroy the manager</actionname>
		<actiontype>DestroyManager</actiontype>
		<actionbody></actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</postactions>
</actionbody>

[SEC-TCERTAPPS-APIPOLICING-6-001]
<actionbody>
	<testexe>t_certapps.exe</testexe>
	<excludedcapabilities>
	<capability>TCB</capability>
	</excludedcapabilities>
	<policy>
	<capability>WriteDeviceData</capability>
	</policy>

	<preactions>
	<action>
		<actionname>Initialise</actionname>
		<actiontype>InitManager</actiontype>
		<actionbody>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</preactions>

	<passactions>
	<action>
		<actionname>Remove application UID 24601</actionname>
		<actiontype>RemoveApp</actiontype>
		<actionbody>
			<uid>24601</uid>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>

	<action>
		<actionname>Getting the application list</actionname>
		<actiontype>GetApplications</actiontype>
		<actionbody>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</passactions>

	<failactions>
	<action>
		<actionname>Remove application UID 24601</actionname>
		<actiontype>RemoveApp</actiontype>
		<actionbody>
			<uid>24601</uid>
		</actionbody>
		<actionresult>
			<return>KErrPermissionDenied</return>
		</actionresult>
	</action>

	<action>
		<actionname>Getting the application list</actionname>
		<actiontype>GetApplications</actiontype>
		<actionbody>
			<uid>24601</uid><appname>My application 1</appname>
			<uid>642828</uid><appname>My application 2</appname>
			<uid>12345</uid><appname>My application 3</appname>
			<uid>10</uid><appname>My application 4</appname>
			<uid>12</uid><appname>My application 5</appname>
		</actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</failactions>

	<postactions>
	<action>
		<actionname>Destroy the manager</actionname>
		<actiontype>DestroyManager</actiontype>
		<actionbody></actionbody>
		<actionresult>
			<return>KErrNone</return>
		</actionresult>
	</action>
	</postactions>
</actionbody>