Closed mdellweg closed 5 years ago
What kind of help do you need here? I'd be happy to look at this during our shutdown.
@claudiol thank you in advance.
We are looking for playbooks in test\test_playbooks
that are self contained. They should target the features of a specific module and be able to run against an actual foreman instance. The structure would usually be something like setup -> run tests -> clean up.
For inspiration, take a look at product and organization.
Take a look at #76, too, if you like.
Ok I have the realm playbook done. I will add a pull request for you guys to review.
Since #76 is merged, the playbooks need a slightly different structure. There are now two hosts in the inventory:
fixtures
: This host runs locally without modification it is meant to setup (and teardown) dependent resources, only when (re-)recording.tests
: This host should run the actual tests. It is used to record the vcr-yaml-files, or to run isolated against those files.Ping /me @sean797 @evgeni is this list up to date?
(generated with:
import glob
# copied from test_crud, no idea why I can't import that directly
TESTED_MODULES = [
'activation_key',
'compute_profile',
'content_credential',
'content_view',
'content_view_filter',
'domain',
'environment',
'global_parameter',
'installation_medium',
'job_template',
'lifecycle_environment',
'location',
'operating_system',
'organization',
'os_default_template',
'product',
'provisioning_template',
'ptable',
'redhat_manifest',
'repository',
'repository_set',
'repository_sync',
'search_facts',
'setting',
'subnet',
'sync_plan',
'upload',
]
modules = glob.glob('modules/*.py')
modules.sort()
for module in modules:
module = module.replace('modules/', '')
module = module.replace('.py', '')
full_module = module
module = module.replace('foreman_', '')
module = module.replace('katello_', '')
if module == '__init__':
continue
if module in TESTED_MODULES:
x = 'x'
else:
x = ' '
print("- [{}] {}".format(x, full_module))
Awesome, we can ignore katello_content_view_publish
& katello_content_view_version_promote
since they are deprecated
setting_facts
is tested together with setting
and deprecated btw.
I think, that leaves us with realm
and manifest
and compute_resource
.
For the last one, there is a promising PR https://github.com/theforeman/foreman-ansible-modules/pull/231
Getting there... Thanks @bagasse for the last addition!
@evgeni something is strange in the last overview: there is a test for compute_resource, your list shows none.
@Fobhep my tardis was broken :)
updated
updated @mdellweg's post with the latest list
This is to be closed with #383, right?
Yes!