예제 #1
0
 def test_not_found(self):
     """Did not find eap home layers."""
     self.assertEqual(
         eap.ItemSuccessChecker.process_item(ansible_item('foo', '', rc=1)),
         False)
예제 #2
0
 def test_no_version(self):
     """Don't crash if the manifest is missing a version."""
     self.assertIsNone(
         brms.ProcessJbossBRMSManifestMF.process_item(
             ansible_item('manifest', 'not\na\nmanifest')))
예제 #3
0
 def test_success(self):
     """Found eap home layers."""
     self.assertEqual(
         eap.ItemSuccessChecker.process_item(ansible_item(
             'foo', 'bin/fuse')), True)
예제 #4
0
 def test_success(self):
     """Extract the Implementation_Version from a manifest."""
     self.assertEqual(
         brms.ProcessJbossBRMSManifestMF.process_item(
             ansible_item('/opt/brms/', self.MANIFEST)),
         ('/opt/brms', '6.5.0.Final-redhat-2'))