Project

General

Profile

Download (4.04 KB) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / lib / foreman_pipeline / plugin.rb @ 52673b37

1
Foreman::Plugin.register :foreman_pipeline do
2
  requires_foreman '>= 1.9'
3

    
4
  sub_menu :top_menu, :foreman_pipeline_menu, :caption => N_('Pipeline') do
5
    menu :top_menu,
6
         :jobs,
7
         :caption => N_("Jobs"),
8
         :url => '/jobs',
9
         :url_hash => {:controller => 'foreman_pipeline/api/jobs', :action => 'index'},
10
         :engine => ForemanPipeline::Engine
11
    menu :top_menu,
12
         :jenkins_instances,
13
         :caption => N_("Jenkins Instances"),
14
         :url => '/jenkins_instances',
15
         :url_hash => {:controller => 'foreman_pipeline/api/jenkins_instances', :action => 'index'},
16
         :engine => ForemanPipeline::Engine
17

    
18
    #skipping Bastion routes as they have no permissions
19
    tests_to_skip({"AccessPermissionsTest" => ["route_bastion/bastion/index should have a permission that grants access",
20
                                               "route_bastion/bastion/index_ie should have a permission that grants access"
21
                                               "route katello/api/v2/host_packages/auto_complete_search should have a permission that grants access"],
22
    #skipping seeds tests because katello adds its settings and we get 'unexpected invocation'  for mock object
23
                    "SeedsTest" => ["with defaults",
24
                                    "with environment defaults",
25
                                    "all access permissions are created by permissions seed",
26
                                    "doesn't add a template back that was deleted",
27
                                    "doesn't add a template back that was renamed",
28
                                    "don't seed location when a location already exists",
29
                                    "don't seed organization when an org already exists",
30
                                    "is idempotent",
31
                                    "no audits are recorded",
32
                                    "populates bookmarks",
33
                                    "populates config templates",
34
                                    "populates features",
35
                                    "populates hidden admin users",
36
                                    "populates installation media",
37
                                    "populates partition tables",
38
                                    "seed location when environment",
39
                                    "seed location when environment SEED_LOCATION specified",
40
                                    "seed organization when environment SEED_ORGANIZATION specified",
41
                                    "viewer role contains all view permissions"],
42
                    "LocationTest" => ["selected_or_inherited_ids for inherited location",
43
                                       "used_and_selected_or_inherited_ids for inherited location"],
44
                    "OrganizationTest" => ["name can be the same if parent is different",
45
                                           ".my_organizations returns user's associated orgs and children"],
46
    #parent_id for organization is disabled by default
47
                    "TaxonomixTest" => [".used_organization_ids can work with array of organizations"],
48
    #bunch of broken tests, various causes
49
                    "UserTest" => ["when a user logs in, last login time should be updated",
50
                                   "return organization and child ids for non-admin user",
51
                                   "#ensure_last_admin_is_not_deleted with non-admins",
52
                                   "can search users by role id"],
53
                    "UsergroupTest" => ["delete user if not in LDAP directory",
54
                                        "add user if in LDAP directory",
55
                                        "hosts should be retrieved from recursive/complex usergroup definitions",
56
                                        "cannot be destroyed when in use by a host",
57
                                        "add_users is case insensitive and does not add nonexistent users",
58
                                        "remove users removes user list and is case insensitive"],
59
    })
60
  end
61
end