Skip to content

Commit

Permalink
feat(test): Migrate access permissions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laugmanuel committed Mar 18, 2024
1 parent e8273a6 commit 461314d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/unit/foreman_git_templates/access_permissions_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# frozen_string_literal: true

require 'test_statistics_helper'
require 'unit/shared/access_permissions_test_base'

# Permissions are added in AccessPermissions with lists of controllers and
# actions that they enable access to. For non-admin users, we need to test
# that there are permissions available that cover every controller action, else
# it can't be delegated and this will lead to parts of the application that
# aren't functional for non-admin users.
#
# In particular, it's important that actions for AJAX requests are added to
# an appropriate permission so views using those requests function.
class AccessPermissionsTest < ActiveSupport::TestCase
include AccessPermissionsTestBase

check_routes(ForemanGitTemplates::Engine.routes, [])
end

0 comments on commit 461314d

Please sign in to comment.