Пример #1
0
    def test_positive_list(self):
        """Test list for Puppet report

        @Feature: Puppet Report

        @Assert: Puppert Report List is displayed
        """
        Report.list()
Пример #2
0
    def test_list(self):
        """@Test: Test list for Puppet report

        @Feature: Puppet Report - list

        @Assert: Puppert Report List is displayed
        """
        Report.list()
Пример #3
0
    def test_positive_list(self):
        """Test list for Puppet report

        @Feature: Puppet Report

        @Assert: Puppert Report List is displayed
        """
        Report.list()
Пример #4
0
    def test_positive_list(self):
        """Test list for Puppet report

        @id: 8325e18f-58a4-49b8-a5f3-eebbe1d568b5

        @Assert: Puppert Report List is displayed
        """
        Report.list()
Пример #5
0
    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()
Пример #6
0
    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()
Пример #7
0
    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"])
Пример #8
0
    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'])
Пример #9
0
    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'])
Пример #10
0
    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'])
Пример #11
0
    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']})
Пример #12
0
    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"]})
Пример #13
0
    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']})
Пример #14
0
    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']})
Пример #15
0
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']
Пример #16
0
    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']})
Пример #17
0
    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'])
Пример #18
0
    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)
Пример #19
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)
Пример #20
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)
Пример #21
0
    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)