Positive test cases

Adding positive test cases to the rule
This commit is contained in:
Sergey Gorbaty
2017-03-03 12:54:29 -08:00
committed by GitHub
parent d14f33e628
commit 3b873cee5e

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<test-data>
<test-code>
<description><![CDATA[
CSRF by starting a controller with an EL action
@ -8,8 +7,28 @@ CSRF by starting a controller with an EL action
<expected-problems>1</expected-problems>
<code><![CDATA[
<apex:page controller="AcRestActionsController" action="{!csrfInitMethod}" >
]]></code>
<source-type>vf</source-type>
</test-code>
<test-code>
<description><![CDATA[
Controller without actions is perfectly safe
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
<apex:page controller="AcRestActionsController" >
]]></code>
<source-type>vf</source-type>
</test-code>
<test-code>
<description><![CDATA[
JS action on load is perfectly safe
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
<apex:page controller="AcRestActionsController" action="init()" >
]]></code>
<source-type>vf</source-type>
</test-code>
</test-data>