def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. @Assert: The response contains some value for the ``content_source`` field. @Feature: HostGroup """ names = one_to_one_names('content_source') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs))
def test_positive_get_lce(self): """Read a host group. Inspect the server's response. @id: efa17f59-47f9-40c6-821d-c348c4d852ff @Assert: The response contains both values for the ``lifecycle_environment`` field. """ names = one_to_one_names("lifecycle_environment") self.assertTrue( names.issubset(self.host_group_attrs), "{0} not found in {1}".format(names.difference(self.host_group_attrs), self.host_group_attrs), )
def test_positive_get_cv(self): """Read a host group. Inspect the server's response. @id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf @Assert: The response contains both values for the ``content_view`` field. """ names = one_to_one_names("content_view") self.assertTrue( names.issubset(self.host_group_attrs), "{0} not found in {1}".format(names.difference(self.host_group_attrs), self.host_group_attrs), )
def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. @id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f @Assert: The response contains both values for the ``content_source`` field. """ names = one_to_one_names("content_source") self.assertTrue( names.issubset(self.host_group_attrs), "{0} not found in {1}".format(names.difference(self.host_group_attrs), self.host_group_attrs), )
def test_positive_get_cv(self): """@Test: Read a host group. Inspect the server's response. @Assert: The response contains some value for the ``content_view`` field. @Feature: HostGroup """ names = one_to_one_names('content_view') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs) )
def test_positive_get_lce(self): """Read a host group. Inspect the server's response. @id: efa17f59-47f9-40c6-821d-c348c4d852ff @Assert: The response contains both values for the ``lifecycle_environment`` field. """ names = one_to_one_names('lifecycle_environment') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs))
def test_positive_get_cv(self): """Read a host group. Inspect the server's response. @id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf @Assert: The response contains both values for the ``content_view`` field. """ names = one_to_one_names('content_view') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs))
def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. @id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f @Assert: The response contains some value for the ``content_source`` field. """ names = one_to_one_names('content_source') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs) )
def test_positive_get_cv(self): """Read a host group. Inspect the server's response. @id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf @Assert: The response contains some value for the ``content_view`` field. """ names = one_to_one_names('content_view') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs) )
def test_positive_get_lce(self): """Read a host group. Inspect the server's response. @id: efa17f59-47f9-40c6-821d-c348c4d852ff @Assert: The response contains some value for the ``lifecycle_environment`` field. """ names = one_to_one_names('lifecycle_environment') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs) )
def test_positive_get_lce(self): """Read a host group. Inspect the server's response. @Assert: The response contains some value for the ``lifecycle_environment`` field. @Feature: HostGroup """ names = one_to_one_names('lifecycle_environment') self.assertGreater( len(names & self.host_group_attrs), 1, 'None of {0} are in {1}'.format(names, self.host_group_attrs) )
def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. @id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f @Assert: The response contains both values for the ``content_source`` field. """ names = one_to_one_names('content_source') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs))
def test_positive_get_lce(self, hostgroup): """Read a host group. Inspect the server's response. :id: efa17f59-47f9-40c6-821d-c348c4d852ff :expectedresults: The response contains both values for the ``lifecycle_environment`` field. :CaseLevel: Integration """ names = one_to_one_names('lifecycle_environment') hostgroup_attrs = set(hostgroup.read_json().keys()) assert names.issubset( hostgroup_attrs ), f'{names.difference(hostgroup_attrs)} not found in {hostgroup_attrs}'
def test_positive_get_cv(self, hostgroup): """Read a host group. Inspect the server's response. :id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf :expectedresults: The response contains both values for the ``content_view`` field. :CaseLevel: Integration """ names = one_to_one_names('content_view') hostgroup_attrs = set(hostgroup.read_json().keys()) assert names.issubset( hostgroup_attrs ), f'{names.difference(hostgroup_attrs)} not found in {hostgroup_attrs}'
def test_positive_get_content_source(self, hostgroup): """Read a host group. Inspect the server's response. :id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f :expectedresults: The response contains both values for the ``content_source`` field. :CaseLevel: Integration """ names = one_to_one_names('content_source') hostgroup_attrs = set(hostgroup.read_json().keys()) assert names.issubset( hostgroup_attrs ), f'{names.difference(hostgroup_attrs)} not found in {hostgroup_attrs}'
def test_positive_get_cv(self): """Read a host group. Inspect the server's response. :id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf :expectedresults: The response contains both values for the ``content_view`` field. :CaseLevel: Integration """ names = one_to_one_names('content_view') self.assertTrue( names.issubset(self.host_group_attrs), '{} not found in {}'.format( names.difference(self.host_group_attrs), self.host_group_attrs ), )
def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. :id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f :expectedresults: The response contains both values for the ``content_source`` field. :CaseLevel: Integration """ names = one_to_one_names('content_source') self.assertTrue( names.issubset(self.host_group_attrs), '{} not found in {}'.format( names.difference(self.host_group_attrs), self.host_group_attrs ), )
def test_positive_get_lce(self): """Read a host group. Inspect the server's response. :id: efa17f59-47f9-40c6-821d-c348c4d852ff :expectedresults: The response contains both values for the ``lifecycle_environment`` field. :CaseImportance: Critical """ names = one_to_one_names('lifecycle_environment') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs ) )
def test_positive_get_cv(self): """Read a host group. Inspect the server's response. :id: 7d36f33e-f161-4d2a-9ee4-8eb949ed4cbf :expectedresults: The response contains both values for the ``content_view`` field. :CaseImportance: Critical """ names = one_to_one_names('content_view') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs ) )
def test_positive_get_content_source(self): """Read a host group. Inspect the server's response. :id: 9d42f47a-2f08-45ad-97d0-de94f0f1de2f :expectedresults: The response contains both values for the ``content_source`` field. :CaseImportance: Critical """ names = one_to_one_names('content_source') self.assertTrue( names.issubset(self.host_group_attrs), '{0} not found in {1}'.format( names.difference(self.host_group_attrs), self.host_group_attrs ) )
def test_one_to_one_names(self): """Test :func:`robottelo.api.utils.one_to_one_names`.""" self.assertEqual( utils.one_to_one_names('person'), {'person_name', 'person_id'}, )
def test_one_to_one_names(): """Test :func:`robottelo.api.utils.one_to_one_names`.""" assert utils.one_to_one_names('person') == {'person_name', 'person_id'}