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']
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'])
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'])
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)
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
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)
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)
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)
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)
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
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
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)
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.with_user(*self.get_user_credentials()).list( {'organization-id': self.org['id']}) self.assertGreater(len(result), 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.with_user(*self.get_user_credentials()).list( {'content-view-id': self.cv['id']}) self.assertGreater(len(result), 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
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.with_user(*self.get_user_credentials()).list( {'product-id': self.product['id']}) self.assertGreater(len(result), 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
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 """ branch = OstreeBranch.with_user(*self.get_user_credentials()) result = branch.list({'repository-id': self.ostree_repo['id']}) self.assertGreater(len(result), 0)