Project

General

Profile

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

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

1 be52ca64 Ondrej Prazak
Foreman::Plugin.register :foreman_pipeline do
2 9fb80abe Ondrej Prazak
  requires_foreman '>= 1.9'
3
4 be52ca64 Ondrej Prazak
  sub_menu :top_menu, :foreman_pipeline_menu, :caption => N_('Pipeline') do
5
    menu :top_menu,
6 9fb80abe Ondrej Prazak
         :jobs,
7 be52ca64 Ondrej Prazak
         :caption => N_("Jobs"),
8
         :url => '/jobs',
9
         :url_hash => {:controller => 'foreman_pipeline/api/jobs', :action => 'index'},
10 720671b8 Ondrej Prazak
         :engine => ForemanPipeline::Engine,
11
         :turbolinks => false
12 be52ca64 Ondrej Prazak
    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 720671b8 Ondrej Prazak
         :engine => ForemanPipeline::Engine,
18
         :turbolinks => false
19 a8170cc8 Ondrej Prazak
20
    #skipping Bastion routes as they have no permissions
21 bd121913 Ondrej Prazak
    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 52673b37 Ondrej Prazak
                                               "route katello/api/v2/host_packages/auto_complete_search should have a permission that grants access"],
24 636c8cd0 Ondrej Prazak
    #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 52673b37 Ondrej Prazak
                                    "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 636c8cd0 Ondrej Prazak
                    "SeedsTest::populating an initial admin user" => ["with defaults",
43
                                                                      "with environment overrides"],
44 52673b37 Ondrej Prazak
                    "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 a8170cc8 Ondrej Prazak
    #parent_id for organization is disabled by default
49 52673b37 Ondrej Prazak
                    "TaxonomixTest" => [".used_organization_ids can work with array of organizations"],
50 a8170cc8 Ondrej Prazak
    #bunch of broken tests, various causes
51 52673b37 Ondrej Prazak
                    "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 a8170cc8 Ondrej Prazak
    })
62 be52ca64 Ondrej Prazak
  end
63
end