Skip to content

Commit

Permalink
Run Foreman permission tests
Browse files Browse the repository at this point in the history
Add access_permission_test from Foreman to normal test execution.

Refs theforeman/foreman_plugin_template@cf5edfa
  • Loading branch information
bastian-src committed Dec 6, 2024
1 parent 43da54b commit 0b158ed
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/tasks/foreman_resource_quota_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ end
# Tests
namespace :test do
desc 'Test ForemanResourceQuota'
Rake::TestTask.new(:foreman_resource_quota) do |t|
test_dir = File.expand_path('../../test', __dir__)
t.libs << 'test'
t.libs << test_dir
t.pattern = "#{test_dir}/**/*_test.rb"
Rake::TestTask.new(foreman_resource_quota: 'db:test:prepare') do |t|
t.libs << ForemanResourceQuota::Engine.root.join('test')
t.pattern = ForemanResourceQuota::Engine.root.join('test', '**', '*_test.rb')
t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')]
t.verbose = true
t.warning = false
end
Expand Down

0 comments on commit 0b158ed

Please sign in to comment.