Project

General

Profile

Actions

Bug #28165

closed

master test failure: Actions::Pulp3::CopyAllUnitsTest.test_exclusion_docker_filters VCR failure

Added by Justin Sherrill about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Tests
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Actions::Pulp3::CopyAllUnitsTest.test_exclusion_docker_filters (from Actions__Pulp3__CopyAllUnitsTest)

ForemanTasks::TaskError: Task b7f260ed-fb96-482a-9a76-7282758ed2e2: VCR::Errors::UnhandledHTTPRequestError: 

================================================================================
An HTTP request has been made that VCR does not know how to handle:
  POST https://slave04.novalocal/pulp/api/v3/docker/recursive-add/

VCR is currently using the following cassette:
  - /home/jenkins/workspace/katello-master-source-release/test/fixtures/vcr_cassettes/actions/pulp3/copy_all_units/exclusion_docker_filters.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 9 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
================================================================================

    foreman-tasks (0.17.0) lib/foreman_tasks.rb:59:in `block in sync_task'
    foreman-tasks (0.17.0) lib/foreman_tasks.rb:58:in `tap'
    foreman-tasks (0.17.0) lib/foreman_tasks.rb:58:in `sync_task'
    /home/jenkins/workspace/katello-master-source-release/test/actions/pulp3/orchestration/copy_all_units_test.rb:74:in `test_exclusion_docker_filters'
    /home/jenkins/workspace/katello-master-source-release/test/support/vcr.rb:25:in `block in run'
    /home/jenkins/workspace/katello-master-source-release/test/support/vcr.rb:24:in `run' (ForemanTasks::TaskError)
/usr/local/rvm/gems/ruby-2.5.1@katello-master-source-release-506/gems/foreman-tasks-0.17.0/lib/foreman_tasks.rb:59    
Actions

Also available in: Atom PDF