3. Assert the RSS feed URL was really updated 4. Restore the original feed URL :expectedresults: RSS feed URL is updated :CaseAutomation: automated """ orig_url = Settings.list({'search': 'name=rss_url'})[0]['value'] for test_url in valid_url_list(): Settings.set({'name': 'rss_url', 'value': test_url}) updated_url = Settings.list({'search': 'name=rss_url'})[0] self.assertEqual(test_url, updated_url['value']) Settings.set({'name': 'rss_url', 'value': orig_url}) @pytest.mark.parametrize('value', **xdist_adapter(invalid_boolean_strings())) @tier2 def test_negative_update_send_welcome_email(value): """Check email send welcome email is updated :id: 2f75775d-72a1-4b2f-86c2-98c36e446099 :parametrized: yes :steps: set invalid values: not booleans :expectedresults: send_welcome_email is not updated :CaseAutomation: automated :CaseImportance: Low
3. Assert the RSS feed URL was really updated 4. Restore the original feed URL :expectedresults: RSS feed URL is updated :caseautomation: automated """ orig_url = Settings.list({'search': 'name=rss_url'})[0]['value'] for test_url in valid_url_list(): Settings.set({'name': 'rss_url', 'value': test_url}) updated_url = Settings.list({'search': 'name=rss_url'})[0] self.assertEqual(test_url, updated_url['value']) Settings.set({'name': 'rss_url', 'value': orig_url}) @pytest.mark.parametrize('value', **xdist_adapter(invalid_boolean_strings())) @tier1 def test_negative_update_send_welcome_email(value): """Check email send welcome email is updated :id: 2f75775d-72a1-4b2f-86c2-98c36e446099 :steps: set invalid values: not booleans :expectedresults: send_welcome_email is not updated :caseautomation: automated :caseimportance: low """ with pytest.raises(CLIReturnCodeError):
RepositoryCollection, SatelliteToolsRepository, ) from robottelo.vm import VirtualMachine def _distro_cdn_variants(): distro_cdn = [] for cdn in [False, True]: for distro in DISTROS_SUPPORTED: distro_cdn.append((distro, cdn)) return distro_cdn @pytest.mark.parametrize('value', **xdist_adapter(_distro_cdn_variants())) def test_vm_install_package(value): """Install a package with all supported distros and cdn not cdn variants :id: b2a6065a-69f6-4805-a28b-eaaa812e0f4b :expectedresults: Package is install is installed """ # the value is support distro DISTRO_RH6 or DISTRO_RH7 # this will create 4 tests: # - one test with disto rhel6 cdn False # - one test with distro rhel7 cdn False # - one test with disto rhel6 cdn True # - one test with distro rhel7 cdn True distro, cdn = value org = make_org()