Project

General

Profile

Bug #25353

transient vcr error around DebTest

Added by Justin Sherrill 6 months ago. Updated 6 months ago.

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

Description

```
Error
VCR::Errors::UnhandledHTTPRequestError: ...
Stacktrace
VCR::Errors::UnhandledHTTPRequestError: ================================================================================
An HTTP request has been made that VCR does not know how to handle:
POST https://ip-172-30-4-198.ec2.internal/pulp/api/v2/repositories/
There is currently no cassette in use. There are a few ways
you can configure VCR to handle this request:
  • 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].
  • If you want VCR to record this request and play it back during future test
    runs, you should wrap your test (or this portion of your test) in a
    `VCR.use_cassette` block [2].
  • If you only want VCR to handle requests made while a cassette is in use,
    configure `allow_http_connections_when_no_cassette = true`. VCR will
    ignore this request since it is made when there is no cassette [3].
  • If you want VCR to ignore this request (and others like it), you can
    set an `ignore_request` callback [4].
    [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/getting-started
    [3] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/configuration/allow-http-connections-when-no-cassette
    [4] https://www.relishapp.com/vcr/vcr/v/3-0-3/docs/configuration/ignore-request ================================================================================
    /var/lib/workspace/workspace/katello-pr-test/app/services/katello/pulp/repository.rb:62:in `create'
    /var/lib/workspace/workspace/katello-pr-test/test/services/katello/pulp/repository/deb_test.rb:31:in `test_create'
    /var/lib/workspace/workspace/katello-pr-test/test/support/vcr.rb:23:in `run' (VCR::Errors::UnhandledHTTPRequestError)
    /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-3641/gems/vcr-3.0.3/lib/vcr/request_handler.rb:97
    Standard Error
    /usr/local/rvm/gems/ruby-2.5.1@katello-pr-test-3641/gems/foreman-tasks-0.14.1/lib/foreman_tasks.rb:35: warning: constant ::TimeoutError is deprecated
    ```

Associated revisions

Revision a09a7d88 (diff)
Added by Justin Sherrill 6 months ago

Fixes #25353 - transient test error fix

History

#1 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/7796 added

#2 Updated by Justin Sherrill 6 months ago

  • Status changed from Ready For Testing to Closed

#3 Updated by Jonathon Turel 6 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.10.0

Also available in: Atom PDF