Example #1
0
    def test_positive_delete(self):
        """Delete existing trend

        @id: 0b5376f0-c8ae-434a-a5da-10b16ac3b932

        @Assert: Trend is deleted
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #2
0
    def test_positive_delete(self):
        """Delete existing trend

        @id: 0b5376f0-c8ae-434a-a5da-10b16ac3b932

        @Assert: Trend is deleted
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #3
0
    def test_positive_delete(self):
        """Delete existing trend

        @Feature: Trend - Positive Delete

        @Assert: Trend is deleted
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #4
0
    def test_positive_delete(self):
        """Delete existing trend

        @Feature: Trend - Positive Delete

        @Assert: Trend is deleted
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #5
0
    def test_positive_create(self):
        """Create new trend

        @id: d0c040cf-8132-43cd-9569-26148b80a44b

        @Assert: Trend is created successfully
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #6
0
    def test_positive_create(self):
        """Create new trend

        @id: d0c040cf-8132-43cd-9569-26148b80a44b

        @Assert: Trend is created successfully
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #7
0
    def test_positive_create(self):
        """Create new trend

        @Feature: Trend - Positive Create

        @Assert: Trend is created successfully
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #8
0
    def test_positive_create(self):
        """Create new trend

        @Feature: Trend - Positive Create

        @Assert: Trend is created successfully
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #9
0
    def test_positive_delete(self):
        """Delete existing trend

        :id: 0b5376f0-c8ae-434a-a5da-10b16ac3b932

        :expectedresults: Trend is deleted

        :CaseImportance: Critical
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #10
0
    def test_positive_delete(self):
        """Delete existing trend

        :id: 0b5376f0-c8ae-434a-a5da-10b16ac3b932

        :expectedresults: Trend is deleted

        :CaseImportance: Critical
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(TREND_TYPES['environment'])
Example #11
0
    def test_positive_create(self):
        """Create new trend

        :id: d0c040cf-8132-43cd-9569-26148b80a44b

        :expectedresults: Trend is created successfully

        :CaseImportance: Critical
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #12
0
    def test_positive_create(self):
        """Create new trend

        :id: d0c040cf-8132-43cd-9569-26148b80a44b

        :expectedresults: Trend is created successfully

        :CaseImportance: Critical
        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['model'])
            search = self.trend.search(TREND_TYPES['model'])
            self.assertIsNotNone(search)
Example #13
0
    def test_delete_trend_positive(self):
        """@Test: Delete existing trend

        @Feature: Trend - Positive Delete

        @Assert: Trend is deleted

        """
        with Session(self.browser) as session:
            make_trend(session, trend_type=TREND_TYPES['environment'])
            self.trend.delete(trend_name=TREND_TYPES['environment'])
            search = self.trend.search(TREND_TYPES['environment'])
            self.assertIsNone(search)
Example #14
0
    def test_positive_update(self):
        """Update trend entity value

        @id: 329af7a7-e7c1-4c09-9849-d9ec12ddcee9

        @Assert: Trend entity is updated successfully
        """
        name = gen_string('alphanumeric')
        new_name = gen_string('alphanumeric')
        with Session(self.browser) as session:
            make_trend(
                session,
                trend_type=TREND_TYPES['facts'],
                trendable='clientcert',
                name=name,
            )
            search = self.trend.search(name)
            self.assertIsNotNone(search)

            self.trend.update(name, 'clientcert', new_name)
            search = self.trend.search(new_name)
            self.assertIsNotNone(search)
Example #15
0
    def test_positive_update(self):
        """Update trend entity value

        @id: 329af7a7-e7c1-4c09-9849-d9ec12ddcee9

        @Assert: Trend entity is updated successfully
        """
        name = gen_string('alphanumeric')
        new_name = gen_string('alphanumeric')
        with Session(self.browser) as session:
            make_trend(
                session,
                trend_type=TREND_TYPES['facts'],
                trendable='clientcert',
                name=name,
            )
            search = self.trend.search(name)
            self.assertIsNotNone(search)

            self.trend.update(name, 'clientcert', new_name)
            search = self.trend.search(new_name)
            self.assertIsNotNone(search)
Example #16
0
    def test_positive_update(self):
        """@Test: Update trend entity value

        @Feature: Trend - Positive Update

        @Assert: Trend entity is updated successfully
        """
        name = gen_string('alphanumeric')
        new_name = gen_string('alphanumeric')
        with Session(self.browser) as session:
            make_trend(
                session,
                trend_type=TREND_TYPES['facts'],
                trendable='clientcert',
                name=name,
            )
            search = self.trend.search(name)
            self.assertIsNotNone(search)

            self.trend.update(name, 'clientcert', new_name)
            search = self.trend.search(new_name)
            self.assertIsNotNone(search)