Skip to content

Commit

Permalink
Remove profile resolver with-parent-controls tests for #1816.
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-stein-nist authored and Chris Compton committed Dec 6, 2023
1 parent 49ae91b commit e1b2b88
Showing 1 changed file with 0 additions and 200 deletions.
200 changes: 0 additions & 200 deletions src/utils/resolver-pipeline/testing/1_selected/select.xspec
Original file line number Diff line number Diff line change
Expand Up @@ -292,40 +292,6 @@
</profile>
</x:expect>
</x:scenario>

<x:scenario label="Default value of 'with-parent-controls' (yes)">
<x:context>
<profile>
<import href="{$ov:filedir}/catalogs/xyz-tiny_catalog.xml">
<include-controls with-parent-controls="yes">
<with-id>z3.a-1</with-id>
</include-controls>
</import>
</profile>
</x:context>

<x:expect label="Control Z3-A-1 and all its ancestors">
<profile>
<selection uuid="..." opr:src="...">
<metadata>...</metadata>
<group opr:id="...">
<title>Group X of XYZ</title>
</group>
<group opr:id="...">
<title>Group Y of XYZ</title>
</group>
<group opr:id="...">
<title>Group Z of XYZ</title>
<control id="z3" opr:id="..."><title>Control Z3</title>
<control id="z3.a" opr:id="..."><title>Control Z3-A</title>
<control id="z3.a-1" opr:id="..."><title>Control Z3-A-1</title></control>
</control>
</control>
</group>
</selection>
</profile>
</x:expect>
</x:scenario>

<x:scenario label="Nondefault value of 'with-parent-controls' (no)">
<x:context>
Expand Down Expand Up @@ -800,32 +766,6 @@
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="Select descendant ID, omitting with-parent-controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-controls>
<with-id>level-four</with-id>
</include-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true (with-parent-controls defaults to yes)" select="true()"/>
</x:scenario>
<x:scenario label="Select descendant ID, and explicitly include parent controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-controls with-parent-controls="yes">
<with-id>level-four</with-id>
</include-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Select descendant ID and do not include parent controls.">
<x:call function="o:selects">
<x:param name="importing">
Expand Down Expand Up @@ -938,32 +878,6 @@
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="Match descendant ID, omitting with-parent-controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-controls>
<matching pattern="*-four"/>
</include-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true (with-parent-controls defaults to yes)" select="true()"/>
</x:scenario>
<x:scenario label="Match descendant ID, with parent controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-controls with-parent-controls="yes">
<matching pattern="*-four"/>
</include-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Match descendant ID, without parent controls.">
<x:call function="o:selects">
<x:param name="importing">
Expand Down Expand Up @@ -1016,23 +930,6 @@
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="Include grandchild with parent controls, and include child without parent controls">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-controls with-parent-controls="yes">
<with-id>level-four</with-id>
</include-controls>
<include-controls with-parent-controls="no">
<with-id>level-three</with-id>
</include-controls>
</import>
</x:param>
<x:param name="candidate"
select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Include grandparent with child controls, and include parent without child controls">
<x:call function="o:selects">
<x:param name="importing">
Expand Down Expand Up @@ -1095,48 +992,6 @@
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Exclude descendant ID, omitting with-parent-controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-all/>
<exclude-controls>
<with-id>level-four</with-id>
</exclude-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="false (with-parent-controls defaults to yes)" select="false()"/>
</x:scenario>
<x:scenario label="Exclude descendant ID with parent controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-all/>
<exclude-controls with-parent-controls="yes">
<with-id>level-four</with-id>
</exclude-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="Exclude descendant ID without parent controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-all/>
<exclude-controls with-parent-controls="no">
<with-id>level-four</with-id>
</exclude-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Exclude ancestor ID, omitting with-child-controls.">
<x:call function="o:selects">
<x:param name="importing">
Expand Down Expand Up @@ -1277,34 +1132,6 @@
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="Match descendant ID, omitting with-parent-controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-all/>
<exclude-controls>
<matching pattern="*-four"/>
</exclude-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="false (with-parent-controls defaults to yes)" select="false()"/>
</x:scenario>
<x:scenario label="Match descendant ID, with parent controls.">
<x:call function="o:selects">
<x:param name="importing">
<import>
<include-all/>
<exclude-controls with-parent-controls="yes">
<matching pattern="*-four"/>
</exclude-controls>
</import>
</x:param>
<x:param name="candidate" select="$ov:control-hierarchy//o:control[@id='level-two']"/>
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="Match descendant ID, without parent controls.">
<x:call function="o:selects">
<x:param name="importing">
Expand Down Expand Up @@ -1468,33 +1295,6 @@
</x:scenario>
</x:scenario>

<x:scenario label="Tests for o:calls-parents function">
<x:scenario label="with-parent-controls attribute is 'yes'">
<x:call function="o:calls-parents">
<x:param>
<elem with-parent-controls="yes"/>
</x:param>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
<x:scenario label="with-parent-controls attribute is 'no'">
<x:call function="o:calls-parents">
<x:param>
<elem with-parent-controls="no"/>
</x:param>
</x:call>
<x:expect label="false" select="false()"/>
</x:scenario>
<x:scenario label="with-parent-controls attribute is omitted">
<x:call function="o:calls-parents">
<x:param>
<elem/>
</x:param>
</x:call>
<x:expect label="true" select="true()"/>
</x:scenario>
</x:scenario>

<x:scenario label="Tests for o:resource-or-error function">
<x:scenario label="Document is available">
<x:call function="o:resource-or-error">
Expand Down

0 comments on commit e1b2b88

Please sign in to comment.