Actions
Bug #19487
closedRandom tests failures in OpenscapProxiesControllerTest
Difficulty:
Triaged:
No
Description
The factory for openscap proxy creates a proxy for compliance host, if tests using compliance host is ran first, rest tests fail with
Error Message ActiveRecord::RecordInvalid: Validation failed: Name has already been taken... Stacktrace ActiveRecord::RecordInvalid: Validation failed: Name has already been taken test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction' test_after_commit (1.1.0) lib/test_after_commit/database_statements.rb:5:in `transaction' test/factories/disable_auditing.rb:13:in `block (3 levels) in <top (required)>' test/factories/disable_auditing.rb:13:in `block (2 levels) in <top (required)>' (ActiveRecord::RecordInvalid) /usr/local/rvm/gems/ruby-2.4.0@test_plugin_pull_request-1/gems/activerecord-4.2.8/lib/active_record/validations.rb:43
The proxy definition must be in block so it gets evaluated during runtime
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_openscap/pull/256 added
Updated by Marek Hulán over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset foreman_openscap|4057f90eda1ee91d85f30050d8dd95f341127bfc.
Actions