Bug #28699
closedtransient test failure - test_errata_filter – Katello::Service::Repository::YumVcrCopyTest
Description
VCR::Errors::UnhandledHTTPRequestError:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://localhost/pulp/api/v2/repositories/3_view1/actions/unassociate/
VCR is currently using the following cassette:
- /home/jenkins/workspace/katello-pr-test@2/test/fixtures/vcr_cassettes/katello/service/repository/yum_vcr_copy/errata_filter.yml
- :record => :none
- :match_requests_on => [:method, :path, :params, :body_json]
Under the current configuration VCR can not find a suitable HTTP interaction
to replay and is prevented from recording new requests. There are a few ways
you can deal with this:
* If you're surprised VCR is raising this error
and want insight about how VCR attempted to handle the request,
you can use the debug_logger configuration option to log more details [1].
* You can use the :new_episodes record mode to allow VCR to
record this new request to the existing cassette [2].
* If you want VCR to ignore this request (and others like it), you can
set an `ignore_request` callback [3].
* The current record mode (:none) does not allow requests to be recorded. You
can temporarily change the record mode to :once, delete the cassette file
and re-run your tests to allow the cassette to be recorded with this request [4].
* The cassette contains 15 HTTP interactions that have not been
played back. If your request is non-deterministic, you may need to
change your :match_requests_on cassette option to be more lenient
or use a custom request matcher to allow it to match [5].
[1] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/configuration/debug-logging
[2] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/record-modes/new-episodes
[3] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/configuration/ignore-request
[4] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/record-modes/none
[5] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/request-matching
================================================================================
/home/jenkins/workspace/katello-pr-test@2/app/models/katello/glue/pulp/repo.rb:139:in `unassociate_by_filter'
/home/jenkins/workspace/katello-pr-test@2/app/services/katello/pulp/repository/yum.rb:175:in `block in purge_partial_errata'
/home/jenkins/workspace/katello-pr-test@2/app/models/katello/repository.rb:322:in `remove_partial_errata!'
/home/jenkins/workspace/katello-pr-test@2/app/services/katello/pulp/repository/yum.rb:174:in `purge_partial_errata'
/home/jenkins/workspace/katello-pr-test@2/test/services/katello/pulp/repository/yum_test.rb:285:in `test_errata_filter'
/home/jenkins/workspace/katello-pr-test@2/test/support/vcr.rb:25:in `block in run'
/home/jenkins/workspace/katello-pr-test@2/test/support/vcr.rb:24:in `run' (VCR::Errors::UnhandledHTTPRequestError)
/usr/local/rvm/gems/ruby-2.5.1@jenkins-katello-pr-test-2653/gems/vcr-3.0.3/lib/vcr/request_handler.rb:97
Updated by Justin Sherrill almost 5 years ago
- Subject changed from transient test failure to transient test failure - test_errata_filter – Katello::Service::Repository::YumVcrCopyTest
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8500 added
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases Katello 3.16.0 added
Updated by Justin Sherrill almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|d12291127f9e91809466910b361f433286fb9d16.
Updated by Chris Roberts almost 5 years ago
- Triaged changed from No to Yes
- Fixed in Releases Katello 3.15.0 added
- Fixed in Releases deleted (
Katello 3.16.0)