예제 #1
0
 @Test
 public void testParser() {
   Playbook p = TestLogReader.getPlaybook("/sample.log");
   Assert.assertNotNull(p);
   Assert.assertEquals(1, p.getPlays().size());
   Assert.assertEquals(4, p.getPlays().get(0).getTasks().size());
 }
예제 #2
0
 @Test
 public void testErrorParser() {
   Playbook p = TestLogReader.getPlaybook("/sample_error.log");
   Assert.assertNotNull(p);
   Assert.assertNotNull(p.getErrorMessage());
   Assert.assertTrue(p.getFinishedAt() > 0);
 }