Switch to async foreman-tasks-based utilization trigger #225
Annotations
2 errors
Run rake test:foreman_resource_quota:
foreman_resource_quota/test/jobs/refresh_resource_quota_utilization_test.rb#L14
Failure: test_0001_single resource quota utilization should be updated
NameError: undefined local variable or method `quota' for #<RefreshResourceQuotaUtilizationTest:0x00007f47ef8230a0 @name="test_0001_single resource quota utilization should be updated", @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-11-26 15:03:17.982549000 +0000", updated_at: "2024-11-26 15:03:17.982549000 +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, resource_quota_is_optional: false, password: nil>}}, @fixture_connections=[], @connection_subscriber=#<ActiveSupport::Notifications::Fanout::Subscribers::Timed:0x00007f47ef8216d8 @pattern="!connection.active_record", @DeleGate=#<Proc:0x00007f47ef821868 /home/runner/work/foreman_resource_quota/foreman_resource_quota/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.7.10/lib/active_record/test_fixtures.rb:134>, @can_publish=false>, @legacy_saved_pool_configs={}, @saved_pool_configs={}, @loaded_fixtures={"architectures"=>#<ActiveRecord::FixtureSet:0x0000562aef1f01b0 @name="architectures", @path="/home/runner/work/foreman_resource_quota/foreman_resource_quota/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:0x0000562aef2534e0 @fixture={"name"=>"x86_64", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>501905019}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "sparc"=>#<ActiveRecord::Fixture:0x0000562aef253468 @fixture={"name"=>"sparc", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>331892513}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390"=>#<ActiveRecord::Fixture:0x0000562aef253440 @fixture={"name"=>"s390", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>381564594}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "s390x"=>#<ActiveRecord::Fixture:0x0000562aef2533f0 @fixture={"name"=>"s390x", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>820784047}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ASIC"=>#<ActiveRecord::Fixture:0x0000562aef2533c8 @fixture={"name"=>"ASIC", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>578327757}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>, "ppc64"=>#<ActiveRecord::Fixture:0x0000562aef2533a0 @fixture={"name"=>"ppc64", "created_at"=>2024-11-26 15:03:17.939152581 UTC, "updated_at"=>2024-11-26 15:03:17.939152581 UTC, "id"=>922134521}, @model_class=Architecture(id: integer, name: string, created_at: datetime, updated_at: datetime)>}, @table_name="architectures">, "audits"=>#<ActiveRecord::FixtureSet:0x0000562aef253058 @name="audits", @path="/home/runner/work/foreman_resource_quota/foreman_resource_quota/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: stri
|
Run rake test:foreman_resource_quota
Process completed with exit code 1.
|
Loading