GovReady/800-53-server

Travis likely failing due to dependencies on XSLTPROC call

Closed this issue · 1 comments

@kitplummer 800-53-server tests on Travis-CI likely failing because there is dependency on xsltproc command line call in SecControl._load_conrol_from_xml found lib/seccontrol.py

    def _load_control_from_xml(self):
        "load control detail from 800-53 xml"
        results = commands.getstatusoutput("xsltproc --stringparam controlnumber '%s' lib/control2json.xsl data/800-53-controls.xml" % self.id)
        # print results
        if (results[0] == 0) and (len(results[1]) > 0):
            self.details = json.loads(results[1])
            self.title = self.details["title"]
            self.description = self.details["description"]
            self.control_enhancements = self.details['control_enhancements']
            self.supplemental_guidance = self.details['supplemental_guidance']
            self.responsible = self._get_responsible()
        else:
            self.details = json.loads('{"id": null, "error": "Failed to get security control information from 800-53 xml"}')
            self.title = self.description = self.supplemental_guidance = self.control_enhancements = self.responsible = None
            self.details = {}

So good example of how to install an OS-level requirement in Travis-CI?

Kit fixed this issue.