Fixes #38055 - Fix future-dated subscriptions #1744
Annotations
8 errors and 1 warning
Run rake test:katello:
katello/test/scenarios/scenario_test.rb#L97
Failure: test_manifest_import
RuntimeError: Neutered Exception VCR::Errors::UnhandledHTTPRequestError:
================================================================================
An HTTP request has been made that VCR does not know how to handle:
GET https://localhost:8443/candlepin/owners/scenario_test/products/?active=include&include=productContent
VCR are currently using the following cassettes:
- /home/runner/work/katello/katello/katello/test/fixtures/vcr_cassettes/scenarios/import_products_manifest_small_zip.yml
- :record => :none
- :match_requests_on => [:method, :path, :params, :body_json]
- /home/runner/work/katello/katello/katello/test/fixtures/vcr_cassettes/scenarios/repository_create/manifest_import.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.
One or more cassette names registered was not found. Use
:new_episodes or :once record modes to record a new cassette [4].
* The cassette contains 4 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://benoittgt.github.io/vcr/?v=6-3-1#/configuration/debug_logging
[2] https://benoittgt.github.io/vcr/?v=6-3-1#/record_modes/new_episodes
[3] https://benoittgt.github.io/vcr/?v=6-3-1#/configuration/ignore_request
[4] https://benoittgt.github.io/vcr/?v=6-3-1#/record_modes/none
[5] https://benoittgt.github.io/vcr/?v=6-3-1#/request_matching
================================================================================
katello/app/lib/katello/http_resource.rb:98:in `issue_request'
katello/app/lib/katello/http_resource.rb:49:in `block (2 levels) in singleton class'
katello/app/lib/katello/resources/candlepin/product.rb:7:in `all'
katello/app/models/katello/glue/provider.rb:127:in `import_products_from_cp'
katello/test/support/scenario_support.rb:35:in `block in import_products'
katello/test/support/scenario_support.rb:61:in `record'
katello/test/support/scenario_support.rb:34:in `import_products'
katello/test/scenarios/scenario_test.rb:22:in `test_manifest_import'
katello/test/support/vcr.rb:24:in `block in run'
katello/test/support/vcr.rb:23:in `run'
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools_total_with_header
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc"}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a1e28>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a1e28>.to_str(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a1e50>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a1e50>.to_str(any_parameters)
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools_with_pool_ids
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [[:poolid, "id"]], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc"}, extra_params: [[:poolid, "id"]], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a23c8>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a23c8>.to_str(any_parameters)
- expected exactly once, invoked once: Katello::Candlepin::PoolService.local_to_upstream_ids(any_parameters)
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc"}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2850>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2850>.to_str(any_parameters)
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools_quantities_only_false
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc"}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2cd8>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2cd8>.to_str(any_parameters)
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools_quantities_only_true
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [], included_fields: ["id", "quantity"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:sort_by => "Product.name", :order => "asc"}, extra_params: [], included_fields: ["id", "quantity"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2fa8>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a2fa8>.to_str(any_parameters)
|
Run rake test:katello:
katello/test/models/upstream_pool_test.rb#L10
Failure: test_fetch_pools_attachable
unexpected invocation: Katello::UpstreamPool.request_params(base_params: {:consumer => :foo_id, :sort_by => "Product.name", :order => "asc", :add_future => true}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
unsatisfied expectations:
- expected exactly once, invoked never: Katello::UpstreamPool.request_params(base_params: {:consumer => :foo_id, :sort_by => "Product.name", :order => "asc"}, extra_params: [], included_fields: ["id", "activeSubscription", "quantity", "startDate", "endDate", "contractNumber", "consumed", "productName", "productId", "subscriptionId"])
- expected exactly once, invoked never: Katello::Resources::Candlepin::UpstreamPool.get(any_parameters)
satisfied expectations:
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddresses(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getaddress(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getnames(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Resolv::DNS>.getname(any_parameters)
- allowed any number of times, invoked never: #<AnyInstance:Katello::Pulp3::Repository>.test_remote_name(any_parameters)
- allowed any number of times, invoked never: Katello::Ping.ping(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_key(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ssl_client_cert(any_parameters)
- allowed any number of times, invoked never: Cert::Certs.ca_cert(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a3430>.headers(any_parameters)
- allowed any number of times, invoked never: #<Mock:0x5a3430>.to_str(any_parameters)
- expected exactly once, invoked once: Katello::Resources::Candlepin::UpstreamPool.upstream_consumer_id(any_parameters)
|
Run rake test:katello
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading