Project

General

Profile

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

foreman_pipeline / lib / foreman_pipeline / plugin.rb @ 720671b8

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
         :turbolinks => false
12
    menu :top_menu,
13
         :jenkins_instances,
14
         :caption => N_("Jenkins Instances"),
15
         :url => '/jenkins_instances',
16
         :url_hash => {:controller => 'foreman_pipeline/api/jenkins_instances', :action => 'index'},
17
         :engine => ForemanPipeline::Engine,
18
         :turbolinks => false
19

    
20
    #skipping Bastion routes as they have no permissions
21
    tests_to_skip({"AccessPermissionsTest" => ["route bastion/bastion/index should have a permission that grants access",
22
                                               "route bastion/bastion/index_ie should have a permission that grants access",
23
                                               "route katello/api/v2/host_packages/auto_complete_search should have a permission that grants access"],
24
    #skipping seeds tests because katello adds its settings and we get 'unexpected invocation' for mock object
25
                    "SeedsTest" => ["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
                    "SeedsTest::populating an initial admin user" => ["with defaults",
43
                                                                      "with environment overrides"],
44
                    "LocationTest" => ["selected_or_inherited_ids for inherited location",
45
                                       "used_and_selected_or_inherited_ids for inherited location"],
46
                    "OrganizationTest" => ["name can be the same if parent is different",
47
                                           ".my_organizations returns user's associated orgs and children"],
48
    #parent_id for organization is disabled by default
49
                    "TaxonomixTest" => [".used_organization_ids can work with array of organizations"],
50
    #bunch of broken tests, various causes
51
                    "UserTest" => ["when a user logs in, last login time should be updated",
52
                                   "return organization and child ids for non-admin user",
53
                                   "#ensure_last_admin_is_not_deleted with non-admins",
54
                                   "can search users by role id"],
55
                    "UsergroupTest" => ["delete user if not in LDAP directory",
56
                                        "add user if in LDAP directory",
57
                                        "hosts should be retrieved from recursive/complex usergroup definitions",
58
                                        "cannot be destroyed when in use by a host",
59
                                        "add_users is case insensitive and does not add nonexistent users",
60
                                        "remove users removes user list and is case insensitive"],
61
    })
62
  end
63
end