File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
src/utils/util/resolver-pipeline/testing/4_modified Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change 16051605 </x : expect >
16061606 <x : expect label =" The target control does not appear" test =" empty($x:result//*[@id='a1-stmt'])" />
16071607 </x : scenario >
1608- <x : scenario label =" Explicit binding to a param that needs to be set *and* have new params inserted" >
1608+ <x : scenario label =" Explicit binding to a param that needs to be set *and* have new params inserted as siblings " >
16091609 <x : variable name =" ov:context" >
16101610 <catalog id =" abc" >
16111611 <control id =" a1" >
16471647 <param id =" new_prm2" />
16481648 </x : expect >
16491649 </x : scenario >
1650+ <x : scenario label =" Explicit binding to a param that needs to be set *and* have new prop inserted as child" >
1651+ <x : variable name =" ov:context" >
1652+ <catalog id =" abc" >
1653+ <control id =" a1" >
1654+ <title >Control A1</title >
1655+ <param id =" a1_prm1" >
1656+ <label >A1 Parameter 1</label >
1657+ </param >
1658+ </control >
1659+ <modify >
1660+ <set-parameter param-id =" a1_prm1" >
1661+ <constraint >at least every 3 years</constraint >
1662+ </set-parameter >
1663+ <alter control-id =" a1" >
1664+ <add position =" starting" by-id =" a1_prm1" >
1665+ <prop name =" param-label" ns =" https://fedramp.gov/ns/oscal" value =" AC-1(a)" />
1666+ </add >
1667+ </alter >
1668+ </modify >
1669+ </catalog >
1670+ </x : variable >
1671+ <x : context select =" $ov:context//o:param[@id='a1_prm1']" >
1672+ <x : param name =" modifications" select =" $ov:context//o:modify" tunnel =" yes" />
1673+ </x : context >
1674+ <x : expect label =" original param with constraint (added by process-param template) and param-label prop" >
1675+ <param id =" a1_prm1" >
1676+ <prop name =" param-label" ns =" https://fedramp.gov/ns/oscal" value =" AC-1(a)" />
1677+ <label >A1 Parameter 1</label >
1678+ <constraint >at least every 3 years</constraint >
1679+ </param >
1680+ </x : expect >
1681+ </x : scenario >
16501682 </x : scenario >
16511683
16521684 <x : scenario label =" Tests for oscal:removable function" >
You can’t perform that action at this time.
0 commit comments