Actions
Bug #25353
closedtransient vcr error around DebTest
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:
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
```
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/7796 added
Updated by Justin Sherrill about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|a09a7d8880f6470587b63fc0f1a4cccade6eab3a.
Updated by Jonathon Turel about 6 years ago
- Target version set to Katello 3.10.0
- Triaged changed from No to Yes
Actions