cryptoservices/filebasedcertificateandkeystores/test/tcertapps/scripts/apipolicing.ini
author Mikko Sunikka <mikko.sunikka@nokia.com>
Fri, 06 Nov 2009 13:21:00 +0200
changeset 17 cd501b96611d
parent 8 35751d3474b7
child 30 cf642210ecb7
permissions -rw-r--r--
Revision: 200945 Kit: 200945

[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>