From eb6ff5457cd5a5524820d2c3aa9fb085a17c98ca Mon Sep 17 00:00:00 2001 From: Bastian Schmidt Date: Mon, 25 Nov 2024 12:35:48 +0100 Subject: [PATCH] Run Foreman permission tests Add access_permission_test from Foreman to normal test execution. Refs https://github.com/theforeman/foreman_plugin_template/pull/51/commits/cf5edfa25e9fd6255043440fdd4755dd78875235 Refs https://github.com/theforeman/foreman_ansible/blob/4bd8c2b829fd285182b30bcfd9dba0c0b3490f67/lib/tasks/foreman_ansible_tasks.rake#L7 --- lib/tasks/foreman_resource_quota_tasks.rake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tasks/foreman_resource_quota_tasks.rake b/lib/tasks/foreman_resource_quota_tasks.rake index 13fa749..a8e5aa7 100644 --- a/lib/tasks/foreman_resource_quota_tasks.rake +++ b/lib/tasks/foreman_resource_quota_tasks.rake @@ -16,10 +16,10 @@ end 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 + test_dir = File.join(__dir__, '..', '..', 'test') + t.libs << ['test', test_dir] t.pattern = "#{test_dir}/**/*_test.rb" + t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')] t.verbose = true t.warning = false end