<xsd:element name="module_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The module test reveals module information in Cisco Catalyst switches. It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a module_object and the optional state element specifies the metadata to check. The evaluation of the test is guided by the check attribute that is inherited from the TestType.</xsd:documentation>
<xsd:documentation>The module_test is based off the SHOW MODULE command. Having a separate module_test, as opposed to a general command_test, enables running an evaluation based on OVAL without having interactive command access to the device.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="catosmoduletst" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="catos-def:module_test/catos-def:object">
<sch:assert test="@object_ref=/oval-def:oval_definitions/oval-def:objects/catos-def:module_object/@id">
<sch:value-of select="../@id" /> - the object child element of a module_test must reference a module_object</sch:assert>
</sch:rule>
<sch:rule context="catos-def:module_test/catos-def:state">
<sch:assert test="@state_ref=/oval-def:oval_definitions/oval-def:states/catos-def:module_number/@id">
<sch:value-of select="../@id" /> - the state child element of a module_test must reference a module_state</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:TestType">
<xsd:sequence>
<xsd:element name="object" type="oval-def:ObjectRefType" minOccurs="1" maxOccurs="1" />
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="1" />
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
|