-
Notifications
You must be signed in to change notification settings - Fork 35
Run permissions tests from Foreman core #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,11 +13,10 @@ end | |
| # Tests | ||
| namespace :test do | ||
| desc 'Test ForemanPluginTemplate' | ||
| Rake::TestTask.new(:foreman_plugin_template) 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_plugin_template => 'db:test:prepare') do |t| | ||
| t.libs << ForemanPluginTemplate::Engine.root.join('test') | ||
| t.pattern = ForemanPluginTemplate::Engine.root.join('test', '**', '*_test.rb') | ||
| t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')] | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMHO this is the important line of this PR and we should get that merged. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also think that this should get merged because we just stumbled across some permissions issue during plugin development and I realized only now that this permissions test got lost during the move to the unified github actions workflow. |
||
| t.verbose = true | ||
| t.warning = false | ||
| end | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before this,
libswas['test', File.expand_path('../../test', __dir__)], now it's only[ForemanPluginTemplate::Engine.root.join('test')], doesn't that mean the baretestone is not added anymore, which means the test helpers from Foreman are not available anymor?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just tried that and this is exactly what happened: https://github.com/ATIX-AG/foreman_resource_quota/actions/runs/12009329940/job/33473856106#step:21:18