'This test catches the errors in my profiles that generate these
messages:
The profile you are trying to load (web_infrastructure) seems to be
outdated, this is a common issue which happens when the framework is
updated and one of its plugins adds/removes one of the configuration
parameters referenced by a profile, or the plugin is removed all
together.
The profile was loaded but some of your settings might have been lost.
This is the list of issues that were found:
- Setting the options for plugin "infrastructure.server_header" raised
an exception due to unknown configuration parameters.
We recommend you review the specific plugin configurations, apply the
required changes and save the profile in order to update it and avoid
this message. If this warning does not disappear you can manually edit
the profile file to fix it.'

@attr('smoke')
def test_use_all_profiles(self):

    (valid, invalid) = self.core.profiles.get_profile_list('.')
    self.assertTrue((len(valid) > 5))
    self.assertEqual(len(invalid), 0)
    for profile_inst in valid:
        profile_name = profile_inst.get_name()
        self.core.profiles.use_profile(profile_name, workdir='.')
