def test_positive_list(self): """Test list for Puppet report @Feature: Puppet Report @Assert: Puppert Report List is displayed """ Report.list()
def test_list(self): """@Test: Test list for Puppet report @Feature: Puppet Report - list @Assert: Puppert Report List is displayed """ Report.list()
def test_positive_list(self): """Test list for Puppet report @id: 8325e18f-58a4-49b8-a5f3-eebbe1d568b5 @Assert: Puppert Report List is displayed """ Report.list()
def test_positive_list(self): """Test list for Puppet report :id: 8325e18f-58a4-49b8-a5f3-eebbe1d568b5 :expectedresults: Puppert Report List is displayed :CaseImportance: Critical """ Report.list()
def test_positive_info(self): """Test Info for Puppet report @Feature: Puppet Report @Assert: Puppet Report Info is displayed """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) result = Report.info({"id": report["id"]}) self.assertEqual(report["id"], result["id"])
def test_positive_info(self): """Test Info for Puppet report @Feature: Puppet Report @Assert: Puppet Report Info is displayed """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) result = Report.info({'id': report['id']}) self.assertEqual(report['id'], result['id'])
def test_info(self): """@Test: Test Info for Puppet report @Feature: Puppet Report - Info @Assert: Puppet Report Info is displayed """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) result = Report.info({'id': report['id']}) self.assertEqual(report['id'], result['id'])
def test_positive_info(self): """Test Info for Puppet report @id: 32646d4b-7101-421a-85e0-777d3c6b71ec @Assert: Puppet Report Info is displayed """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) result = Report.info({'id': report['id']}) self.assertEqual(report['id'], result['id'])
def test_positive_delete_by_id(self): """Check if Puppet Report can be deleted by its ID @id: bf918ec9-e2d4-45d0-b913-ab939b5d5e6a @Assert: Puppet Report is deleted """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) Report.delete({'id': report['id']}) with self.assertRaises(CLIReturnCodeError): Report.info({'id': report['id']})
def test_positive_delete_by_id(self): """Check if Puppet Report can be deleted by its ID @Feature: Puppet Report @Assert: Puppet Report is deleted """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) Report.delete({"id": report["id"]}) with self.assertRaises(CLIReturnCodeError): Report.info({"id": report["id"]})
def test_delete(self): """@Test: Check if Puppet Report can be deleted @Feature: Puppet Report - Delete @Assert: Puppet Report is deleted """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) Report.delete({'id': report['id']}) with self.assertRaises(CLIReturnCodeError): Report.info({'id': report['id']})
def test_positive_delete_by_id(self): """Check if Puppet Report can be deleted by its ID @Feature: Puppet Report @Assert: Puppet Report is deleted """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) Report.delete({'id': report['id']}) with self.assertRaises(CLIReturnCodeError): Report.info({'id': report['id']})
def test_positive_info(): """Test Info for Puppet report :id: 32646d4b-7101-421a-85e0-777d3c6b71ec :expectedresults: Puppet Report Info is displayed :CaseImportance: Critical """ result = Report.list() assert len(result) > 0 # Grab a random report report = random.choice(result) result = Report.info({'id': report['id']}) assert report['id'] == result['id']
def test_positive_delete_by_id(self): """Check if Puppet Report can be deleted by its ID :id: bf918ec9-e2d4-45d0-b913-ab939b5d5e6a :expectedresults: Puppet Report is deleted :CaseImportance: Critical """ result = Report.list() self.assertGreater(len(result), 0) # Grab a random report report = random.choice(result) Report.delete({'id': report['id']}) with self.assertRaises(CLIReturnCodeError): Report.info({'id': report['id']})
def test_info(self): """ @Test: Test Info for Puppet report @Feature: Puppet Report - Info @Assert: Puppet Report Info is displayed """ result = Report.list() self.assertEqual(result.return_code, 0) self.assertGreater(len(result.stdout), 0) # Grab a random report report = random.choice(result.stdout) result = Report.info({'id': report['id']}) self.assertEqual(result.return_code, 0) self.assertEqual(report['id'], result.stdout['id'])
def test_delete(self): """ @Test: Check if Puppet Report can be deleted @Feature: Puppet Report - Delete @Assert: Puppet Report is deleted """ result = Report.list() self.assertEqual(result.return_code, 0) self.assertGreater(len(result.stdout), 0) # Grab a random report report = random.choice(result.stdout) result = Report.delete({'id': report['id']}) self.assertEqual(result.return_code, 0) result = Report.info({'id': report['id']}) self.assertGreater(result.return_code, 0) self.assertGreater(len(result.stderr), 0)
def test_list(self): """ @Test: Test list for Puppet report @Feature: Puppet Report - list @Assert: Puppert Report List is displayed """ result = Report.list() self.assertEqual(result.return_code, 0) self.assertGreater(len(result.stdout), 0)