Support Foreman 3.9 and newer #26
Annotations
4 errors
Run rake test:foreman_rescue:
foreman_rescue/test/models/host_test.rb#L8
Failure: test_0001_should queue tftp update
NameError: undefined local variable or method `setup_settings' for #<MiniTestSpecRails::SpecTests::Test__HostTest_a_host_with_tftp_orchestration_with_rescue_mode_enabled__vendor_bundle_ruby_3_0_0_gems_minitest_spec_rails_7_2_0_lib_minitest_spec_rails_dsl_rb__12:0x0000560f83e01d78 @name="test_0001_should queue tftp update", @failures=[#<Minitest::UnexpectedError: Unexpected exception>], @assertions=0, @fixture_cache={"users"=>{"admin"=>#<User id: 135138680, login: "secret_admin", firstname: "Admin", lastname: "User", mail: "[email protected]", admin: true, last_login_on: "2009-10-12 21:50:04.000000000 +0000", auth_source_id: 200482051, created_at: "2024-05-06 12:07:41.376790000 +0000", updated_at: "2024-05-06 12:07:41.376790000 +0000", password_hash: [FILTERED], password_salt: [FILTERED], locale: nil, avatar_hash: nil, default_organization_id: nil, default_location_id: nil, lower_login: "secret_admin", mail_enabled: true, timezone: nil, description: nil, disabled: false, password: nil>}}, @fixture_connections=[], @connection_subscriber=#<ActiveSupport::Notifications::Fanout::Subscribers::Timed:0x0000560f83e00608 @pattern="!connection.active_record", @DeleGate=#<Proc:0x0000560f83e00748 /home/runner/work/foreman_rescue/foreman_rescue/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7.7/lib/active_record/test_fixtures.rb:134>, @can_publish=false>, @legacy_saved_pool_configs={}, @saved_pool_configs={}, @loaded_fixtures={"architectures"=>#<ActiveRecord::FixtureSet:0x0000560f73e1fe50 @name="architectures", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/architectures", @config=ActiveRecord::Base, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime), @ignored_fixtures=["DEFAULTS"], @fixtures={"x86_64"=>#<ActiveRecord::Fixture:0x0000560f73e174a8 @fixture={"name"=>"x86_64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>501905019}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "sparc"=>#<ActiveRecord::Fixture:0x0000560f73e17458 @fixture={"name"=>"sparc", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>331892513}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390"=>#<ActiveRecord::Fixture:0x0000560f73e17408 @fixture={"name"=>"s390", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>381564594}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390x"=>#<ActiveRecord::Fixture:0x0000560f73e173b8 @fixture={"name"=>"s390x", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>820784047}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ASIC"=>#<ActiveRecord::Fixture:0x0000560f73e17390 @fixture={"name"=>"ASIC", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>578327757}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ppc64"=>#<ActiveRecord::Fixture:0x0000560f73e17368 @fixture={"name"=>"ppc64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>922134521}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>}, @table_name="architectures">, "audits"=>#<ActiveRecord::FixtureSet:0x0000560f73e16eb8 @name="audits", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/audits", @config=ActiveRecord::Base, @model_class=Audited::Audit(id: integer, auditable_id: integer, auditable_type: string, user_id: integer, user_type: string, username: string, action: string, audited_changes: text, version: integer, comment: string, associated_id: integer, associated_type: string, request_uuid: string, created_at: datetime, remo
|
Run rake test:foreman_rescue:
foreman_rescue/test/models/host_test.rb#L8
Failure: test_0002_should deploy rescue template
NameError: undefined local variable or method `setup_settings' for #<MiniTestSpecRails::SpecTests::Test__HostTest_a_host_with_tftp_orchestration_with_rescue_mode_enabled__vendor_bundle_ruby_3_0_0_gems_minitest_spec_rails_7_2_0_lib_minitest_spec_rails_dsl_rb__12:0x0000560f833eb2a8 @name="test_0002_should deploy rescue template", @failures=[#<Minitest::UnexpectedError: Unexpected exception>], @assertions=0, @fixture_cache={"users"=>{"admin"=>#<User id: 135138680, login: "secret_admin", firstname: "Admin", lastname: "User", mail: "[email protected]", admin: true, last_login_on: "2009-10-12 21:50:04.000000000 +0000", auth_source_id: 200482051, created_at: "2024-05-06 12:07:41.376790000 +0000", updated_at: "2024-05-06 12:07:41.376790000 +0000", password_hash: [FILTERED], password_salt: [FILTERED], locale: nil, avatar_hash: nil, default_organization_id: nil, default_location_id: nil, lower_login: "secret_admin", mail_enabled: true, timezone: nil, description: nil, disabled: false, password: nil>}}, @fixture_connections=[], @connection_subscriber=#<ActiveSupport::Notifications::Fanout::Subscribers::Timed:0x0000560f833ea470 @pattern="!connection.active_record", @DeleGate=#<Proc:0x0000560f833ea5b0 /home/runner/work/foreman_rescue/foreman_rescue/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7.7/lib/active_record/test_fixtures.rb:134>, @can_publish=false>, @legacy_saved_pool_configs={}, @saved_pool_configs={}, @loaded_fixtures={"architectures"=>#<ActiveRecord::FixtureSet:0x0000560f73e1fe50 @name="architectures", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/architectures", @config=ActiveRecord::Base, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime), @ignored_fixtures=["DEFAULTS"], @fixtures={"x86_64"=>#<ActiveRecord::Fixture:0x0000560f73e174a8 @fixture={"name"=>"x86_64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>501905019}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "sparc"=>#<ActiveRecord::Fixture:0x0000560f73e17458 @fixture={"name"=>"sparc", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>331892513}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390"=>#<ActiveRecord::Fixture:0x0000560f73e17408 @fixture={"name"=>"s390", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>381564594}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390x"=>#<ActiveRecord::Fixture:0x0000560f73e173b8 @fixture={"name"=>"s390x", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>820784047}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ASIC"=>#<ActiveRecord::Fixture:0x0000560f73e17390 @fixture={"name"=>"ASIC", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>578327757}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ppc64"=>#<ActiveRecord::Fixture:0x0000560f73e17368 @fixture={"name"=>"ppc64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>922134521}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>}, @table_name="architectures">, "audits"=>#<ActiveRecord::FixtureSet:0x0000560f73e16eb8 @name="audits", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/audits", @config=ActiveRecord::Base, @model_class=Audited::Audit(id: integer, auditable_id: integer, auditable_type: string, user_id: integer, user_type: string, username: string, action: string, audited_changes: text, version: integer, comment: string, associated_id: integer, associated_type: string, request_uuid: string, created_at: date
|
Run rake test:foreman_rescue:
foreman_rescue/test/models/host_test.rb#L8
Failure: test_0001_renders tftp template
NameError: undefined local variable or method `setup_settings' for #<MiniTestSpecRails::SpecTests::Test__HostTest_rescue_mode_tftp_remplate_rendering__vendor_bundle_ruby_3_0_0_gems_minitest_spec_rails_7_2_0_lib_minitest_spec_rails_dsl_rb__12:0x0000560f829c8d70 @name="test_0001_renders tftp template", @failures=[#<Minitest::UnexpectedError: Unexpected exception>], @assertions=0, @fixture_cache={"users"=>{"admin"=>#<User id: 135138680, login: "secret_admin", firstname: "Admin", lastname: "User", mail: "[email protected]", admin: true, last_login_on: "2009-10-12 21:50:04.000000000 +0000", auth_source_id: 200482051, created_at: "2024-05-06 12:07:41.376790000 +0000", updated_at: "2024-05-06 12:07:41.376790000 +0000", password_hash: [FILTERED], password_salt: [FILTERED], locale: nil, avatar_hash: nil, default_organization_id: nil, default_location_id: nil, lower_login: "secret_admin", mail_enabled: true, timezone: nil, description: nil, disabled: false, password: nil>}}, @fixture_connections=[], @connection_subscriber=#<ActiveSupport::Notifications::Fanout::Subscribers::Timed:0x0000560f829e3760 @pattern="!connection.active_record", @DeleGate=#<Proc:0x0000560f829e38a0 /home/runner/work/foreman_rescue/foreman_rescue/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7.7/lib/active_record/test_fixtures.rb:134>, @can_publish=false>, @legacy_saved_pool_configs={}, @saved_pool_configs={}, @loaded_fixtures={"architectures"=>#<ActiveRecord::FixtureSet:0x0000560f73e1fe50 @name="architectures", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/architectures", @config=ActiveRecord::Base, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime), @ignored_fixtures=["DEFAULTS"], @fixtures={"x86_64"=>#<ActiveRecord::Fixture:0x0000560f73e174a8 @fixture={"name"=>"x86_64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>501905019}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "sparc"=>#<ActiveRecord::Fixture:0x0000560f73e17458 @fixture={"name"=>"sparc", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>331892513}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390"=>#<ActiveRecord::Fixture:0x0000560f73e17408 @fixture={"name"=>"s390", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>381564594}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390x"=>#<ActiveRecord::Fixture:0x0000560f73e173b8 @fixture={"name"=>"s390x", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>820784047}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ASIC"=>#<ActiveRecord::Fixture:0x0000560f73e17390 @fixture={"name"=>"ASIC", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>578327757}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ppc64"=>#<ActiveRecord::Fixture:0x0000560f73e17368 @fixture={"name"=>"ppc64", "created_at"=>2024-05-06 12:07:41.23770972 UTC, "updated_at"=>2024-05-06 12:07:41.23770972 UTC, "id"=>922134521}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>}, @table_name="architectures">, "audits"=>#<ActiveRecord::FixtureSet:0x0000560f73e16eb8 @name="audits", @path="/home/runner/work/foreman_rescue/foreman_rescue/test/fixtures/audits", @config=ActiveRecord::Base, @model_class=Audited::Audit(id: integer, auditable_id: integer, auditable_type: string, user_id: integer, user_type: string, username: string, action: string, audited_changes: text, version: integer, comment: string, associated_id: integer, associated_type: string, request_uuid: string, created_at: datetime, remote_address: string, audita
|
Run rake test:foreman_rescue
Process completed with exit code 1.
|
Loading