Exemplo n.º 1
0
    def test_positive_info_by_id(self):
        """Get info for Ostree branch by id

        @id: 7838c9a8-56da-44de-883c-28571ecfa75c

        @Assert: Ostree Branch Info is displayed
        """
        result = OstreeBranch.list()
        self.assertGreater(len(result), 0)
        # Grab a random branch
        branch = random.choice(result)
        result = OstreeBranch.info({'id': branch['id']})
        self.assertEqual(branch['id'], result['id'])
Exemplo n.º 2
0
def test_positive_info_by_id(ostree_user_credentials, ostree_repo_with_user):
    """Get info for Ostree branch by id

    :id: 7838c9a8-56da-44de-883c-28571ecfa75c

    :expectedresults: Ostree Branch Info is displayed
    """
    result = OstreeBranch.with_user(*ostree_user_credentials).list()
    assert len(result) > 0
    # Grab a random branch
    branch = random.choice(result)
    result = OstreeBranch.with_user(*ostree_user_credentials).info({'id': branch['id']})
    assert branch['id'] == result['id']
Exemplo n.º 3
0
    def test_positive_info_by_id(self):
        """Get info for Ostree branch by id

        @id: 7838c9a8-56da-44de-883c-28571ecfa75c

        @Assert: Ostree Branch Info is displayed
        """
        result = OstreeBranch.list()
        self.assertGreater(len(result), 0)
        # Grab a random branch
        branch = random.choice(result)
        result = OstreeBranch.info({'id': branch['id']})
        self.assertEqual(branch['id'], result['id'])
Exemplo n.º 4
0
    def test_positive_info_by_id(self):
        """Get info for Ostree branch by id

        :id: 7838c9a8-56da-44de-883c-28571ecfa75c

        :expectedresults: Ostree Branch Info is displayed
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list()
        self.assertGreater(len(result), 0)
        # Grab a random branch
        branch = random.choice(result)
        result = OstreeBranch.with_user(*self.get_user_credentials()).info(
            {'id': branch['id']})
        self.assertEqual(branch['id'], result['id'])
Exemplo n.º 5
0
    def test_positive_info_by_id(self):
        """Get info for Ostree branch by id

        :id: 7838c9a8-56da-44de-883c-28571ecfa75c

        :expectedresults: Ostree Branch Info is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list()
        self.assertGreater(len(result), 0)
        # Grab a random branch
        branch = random.choice(result)
        result = OstreeBranch.with_user(*self.get_user_credentials()).info(
            {'id': branch['id']})
        self.assertEqual(branch['id'], result['id'])
Exemplo n.º 6
0
    def test_positive_list_by_org_id(self):
        """List Ostree branches by org id

        @id: 5b169619-305f-4934-b363-068193330701

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'organization-id': self.org['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 7
0
    def test_positive_list_by_product_id(self):
        """List Ostree branches by product id

        @id: e7b9d04d-cace-4271-b166-214017200c53

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'product-id': self.product['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 8
0
    def test_positive_list_by_repo_id(self):
        """List Ostree branches by repo id

        @id: 8cf1a973-031c-4c02-af14-0faba22ab60b

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'repository-id': self.ostree_repo['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 9
0
    def test_positive_list(self):
        """List Ostree Branches

        @id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list()
        self.assertGreater(len(result), 0)
Exemplo n.º 10
0
    def test_positive_list_by_cv_id(self):
        """List Ostree branches by cv id

        @id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'content-view-id': self.cv['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 11
0
    def test_positive_list_by_cv_id(self):
        """List Ostree branches by cv id

        @id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'content-view-id': self.cv['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 12
0
    def test_positive_list(self):
        """List Ostree Branches

        @id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list()
        self.assertGreater(len(result), 0)
Exemplo n.º 13
0
def test_positive_list(ostree_user_credentials, ostree_repo_with_user):
    """List Ostree Branches

    :id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

    :expectedresults: Ostree Branch List is displayed
    """
    result = OstreeBranch.with_user(*ostree_user_credentials).list()
    assert len(result) > 0
Exemplo n.º 14
0
    def test_positive_list_by_org_id(self):
        """List Ostree branches by org id

        @id: 5b169619-305f-4934-b363-068193330701

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'organization-id': self.org['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 15
0
    def test_positive_list(self):
        """List Ostree Branches

        :id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

        :expectedresults: Ostree Branch List is displayed
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list()
        self.assertGreater(len(result), 0)
Exemplo n.º 16
0
    def test_positive_list_by_repo_id(self):
        """List Ostree branches by repo id

        @id: 8cf1a973-031c-4c02-af14-0faba22ab60b

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'repository-id': self.ostree_repo['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 17
0
    def test_positive_list_by_product_id(self):
        """List Ostree branches by product id

        @id: e7b9d04d-cace-4271-b166-214017200c53

        @Assert: Ostree Branch List is displayed
        """
        result = OstreeBranch.list({'product-id': self.product['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 18
0
    def test_positive_list_by_product_id(self):
        """List Ostree branches by product id

        :id: e7b9d04d-cace-4271-b166-214017200c53

        :expectedresults: Ostree Branch List is displayed
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list(
            {'product-id': self.product['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 19
0
    def test_positive_list_by_org_id(self):
        """List Ostree branches by org id

        :id: 5b169619-305f-4934-b363-068193330701

        :expectedresults: Ostree Branch List is displayed
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list(
            {'organization-id': self.org['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 20
0
    def test_positive_list_by_cv_id(self):
        """List Ostree branches by cv id

        :id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'content-view-id': self.cv['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 21
0
def test_positive_list_by_org_id(ostree_repo_with_user, ostree_user_credentials):
    """List Ostree branches by org id

    :id: 5b169619-305f-4934-b363-068193330701

    :expectedresults: Ostree Branch List is displayed
    """
    result = OstreeBranch.with_user(*ostree_user_credentials).list(
        {'organization-id': ostree_repo_with_user['org']['id']}
    )
    assert len(result) > 0
Exemplo n.º 22
0
    def test_positive_list_by_cv_id(self):
        """List Ostree branches by cv id

        :id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'content-view-id': self.cv['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 23
0
    def test_positive_list(self):
        """List Ostree Branches

        :id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list()
        self.assertGreater(len(result), 0)
Exemplo n.º 24
0
    def test_positive_list_by_repo_id(self):
        """List Ostree branches by repo id

        :id: 8cf1a973-031c-4c02-af14-0faba22ab60b

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'repository-id': self.ostree_repo['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 25
0
    def test_positive_list(self):
        """List Ostree Branches

        :id: 0f5e7e63-c0e3-43fc-8238-caf19a478a46

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list()
        self.assertGreater(len(result), 0)
Exemplo n.º 26
0
    def test_positive_list_by_product_id(self):
        """List Ostree branches by product id

        :id: e7b9d04d-cace-4271-b166-214017200c53

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'product-id': self.product['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 27
0
    def test_positive_list_by_product_id(self):
        """List Ostree branches by product id

        :id: e7b9d04d-cace-4271-b166-214017200c53

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'product-id': self.product['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 28
0
    def test_positive_list_by_repo_id(self):
        """List Ostree branches by repo id

        :id: 8cf1a973-031c-4c02-af14-0faba22ab60b

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'repository-id': self.ostree_repo['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 29
0
def test_positive_list_by_product_id(ostree_repo_with_user, ostree_user_credentials):
    """List Ostree branches by product id

    :id: e7b9d04d-cace-4271-b166-214017200c53

    :expectedresults: Ostree Branch List is displayed
    """
    result = OstreeBranch.with_user(*ostree_user_credentials).list(
        {'product-id': ostree_repo_with_user['product']['id']}
    )
    assert len(result) > 0
Exemplo n.º 30
0
    def test_positive_list_by_org_id(self):
        """List Ostree branches by org id

        :id: 5b169619-305f-4934-b363-068193330701

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'organization-id': self.org['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 31
0
    def test_positive_list_by_org_id(self):
        """List Ostree branches by org id

        :id: 5b169619-305f-4934-b363-068193330701

        :expectedresults: Ostree Branch List is displayed

        :CaseImportance: Critical
        """
        result = OstreeBranch.list({'organization-id': self.org['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 32
0
    def test_positive_list_by_cv_id(self):
        """List Ostree branches by cv id

        :id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

        :expectedresults: Ostree Branch List is displayed

        """
        result = OstreeBranch.with_user(*self.get_user_credentials()).list(
            {'content-view-id': self.cv['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 33
0
    def test_positive_list_by_repo_id(self):
        """List Ostree branches by repo id

        :id: 8cf1a973-031c-4c02-af14-0faba22ab60b

        :expectedresults: Ostree Branch List is displayed

        """

        branch = OstreeBranch.with_user(*self.get_user_credentials())
        result = branch.list({'repository-id': self.ostree_repo['id']})
        self.assertGreater(len(result), 0)
Exemplo n.º 34
0
def test_positive_list_by_cv_id(ostree_repo_with_user, ostree_user_credentials):
    """List Ostree branches by cv id

    :id: 3654f107-44ee-4af2-a9e4-f9fd8c68491e

    :expectedresults: Ostree Branch List is displayed

    """
    result = OstreeBranch.with_user(*ostree_user_credentials).list(
        {'content-view-id': ostree_repo_with_user['cv']['id']}
    )
    assert len(result) > 0
Exemplo n.º 35
0
def test_positive_list_by_repo_id(ostree_repo_with_user, ostree_user_credentials):
    """List Ostree branches by repo id

    :id: 8cf1a973-031c-4c02-af14-0faba22ab60b

    :expectedresults: Ostree Branch List is displayed

    """

    branch = OstreeBranch.with_user(*ostree_user_credentials)
    result = branch.list({'repository-id': ostree_repo_with_user['ostree_repo']['id']})
    assert len(result) > 0