def test_positive_update_loc(self): """Update a smart proxy. Inspect the server's response. @Assert: The response contains some value for the ``location`` field. @Feature: SmartProxy """ names = one_to_many_names("location") self.assertGreater( len(names & self.smart_proxy_attrs), 1, "None of {0} are in {1}".format(names, self.smart_proxy_attrs) )
def test_positive_update_loc(self): """Update a smart proxy. Inspect the server's response. @id: 42d6b749-c047-4fd2-90ee-ffab7be558f9 @Assert: The response contains some value for the ``location`` field. """ names = one_to_many_names('location') self.assertGreater( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_positive_update_loc(self): """Update a smart proxy. Inspect the server's response. @Assert: The response contains some value for the ``location`` field. @Feature: SmartProxy """ names = one_to_many_names('location') self.assertGreater( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_location(self): """Update an environment. Inspect the server's response. @Assert: The response contains some value for the ``location`` field. @Feature: Environment """ names = one_to_many_names('location') self.assertGreater( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_location(self): """@Test: Update an environment. Inspect the server's response. @Assert: The response contains some value for the ``location`` field. @Feature: Environment """ names = one_to_many_names('location') self.assertGreater( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_positive_update_org(self): """Update a smart proxy. Inspect the server's response. @id: fbde9f87-33db-4b95-a5f7-71a618460c84 @Assert: The response contains some value for the ``organization`` field. """ names = one_to_many_names('organization') self.assertGreater( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_positive_update_org(self): """@Test: Update a smart proxy. Inspect the server's response. @Assert: The response contains some value for the ``organization`` field. @Feature: SmartProxy """ names = one_to_many_names('organization') self.assertGreater( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_positive_update_org(module_puppet_environment): """Update an environment. Inspect the server's response. :id: ac46bcac-5db0-4899-b2fc-d48d2116287e :expectedresults: The response contains some value for the ``organization`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('organization') attributes = set(module_puppet_environment.update_json([]).keys()) assert len(names & attributes) >= 1, f'None of {names} are in {attributes}'
def test_location(self): """Update an environment. Inspect the server's response. @id: a4c1bc22-d586-4150-92fc-7797f0f5bfb0 @Assert: The response contains some value for the ``location`` field. @CaseLevel: Integration """ names = one_to_many_names('location') self.assertGreater( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_positive_update_org(self): """Update an environment. Inspect the server's response. :id: ac46bcac-5db0-4899-b2fc-d48d2116287e :expectedresults: The response contains some value for the ``organization`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('organization') self.assertGreaterEqual(len(names & self.env_attrs), 1, f'None of {names} are in {self.env_attrs}')
def test_positive_update_loc(self): """Update an environment. Inspect the server's response. :id: a4c1bc22-d586-4150-92fc-7797f0f5bfb0 :expectedresults: The response contains some value for the ``location`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('location') self.assertGreaterEqual(len(names & self.env_attrs), 1, f'None of {names} are in {self.env_attrs}')
def test_positive_update_loc(module_puppet_environment): """Update an environment. Inspect the server's response. :id: a4c1bc22-d586-4150-92fc-7797f0f5bfb0 :expectedresults: The response contains some value for the ``location`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('location') attributes = set(module_puppet_environment.update_json([]).keys()) assert len(names & attributes) >= 1, f'None of {names} are in {attributes}'
def test_organization(self): """Update an environment. Inspect the server's response. @id: ac46bcac-5db0-4899-b2fc-d48d2116287e @Assert: The response contains some value for the ``organization`` field. @CaseLevel: Integration """ names = one_to_many_names('organization') self.assertGreater( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_positive_update_loc(self): """Update a smart proxy. Inspect the server's response. :id: 42d6b749-c047-4fd2-90ee-ffab7be558f9 :expectedresults: The response contains some value for the ``location`` field. :BZ: 1262037 :CaseImportance: Critical """ names = one_to_many_names('location') self.assertGreaterEqual( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_positive_update_org(self): """Update a smart proxy. Inspect the server's response. :id: fbde9f87-33db-4b95-a5f7-71a618460c84 :expectedresults: The response contains some value for the ``organization`` field. :BZ: 1262037 :CaseImportance: Critical """ names = one_to_many_names('organization') self.assertGreaterEqual( len(names & self.smart_proxy_attrs), 1, 'None of {0} are in {1}'.format(names, self.smart_proxy_attrs), )
def test_positive_update_org(module_proxy_attrs): """Update a smart proxy. Inspect the server's response. :id: fbde9f87-33db-4b95-a5f7-71a618460c84 :expectedresults: The response contains some value for the ``organization`` field. :BZ: 1262037 :CaseImportance: High :CaseLevel: Component """ names = one_to_many_names('organization') assert len(names & module_proxy_attrs ) >= 1, f'None of {names} are in {module_proxy_attrs}'
def test_positive_update_loc(self): """Update an environment. Inspect the server's response. :id: a4c1bc22-d586-4150-92fc-7797f0f5bfb0 :expectedresults: The response contains some value for the ``location`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('location') self.assertGreaterEqual( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_positive_update_org(self): """Update an environment. Inspect the server's response. :id: ac46bcac-5db0-4899-b2fc-d48d2116287e :expectedresults: The response contains some value for the ``organization`` field. :BZ: 1262029 :CaseLevel: Integration """ names = one_to_many_names('organization') self.assertGreaterEqual( len(names & self.env_attrs), 1, 'None of {0} are in {1}'.format(names, self.env_attrs), )
def test_positive_update_loc(module_proxy_attrs): """Update a smart proxy. Inspect the server's response. :id: 42d6b749-c047-4fd2-90ee-ffab7be558f9 :expectedresults: The response contains some value for the ``location`` field. :BZ: 1262037 :CaseImportance: High :CaseLevel: Component """ names = one_to_many_names('location') assert len(names & module_proxy_attrs ) >= 1, f'None of {names} are in {module_proxy_attrs}'
def test_one_to_many_names(self): """Test :func:`robottelo.api.utils.one_to_many_names`.""" self.assertEqual( utils.one_to_many_names('person'), {'person', 'person_ids', 'people'}, )
def test_one_to_many_names(): """Test :func:`robottelo.api.utils.one_to_many_names`.""" assert utils.one_to_many_names('person') == {'person', 'person_ids', 'people'}