Project

General

Profile

Bug #8768

Getting a 401 error in test/glue/pulp/erratum_test.rb

Added by David Davis almost 6 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
High
Category:
Repositories
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

When running all the tests together in live mode, you get a few 401 errors in test/glue/pulp/erratum_test.rb:

  1) Error:                                                                                                                                           [903/1931]
test_backend_data(Katello::GlueErratumTest):
RestClient::Unauthorized: 401 Unauthorized
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/abstract_response.rb:48:in `return!'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:92:in `block in get_response'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:267:in `call'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:267:in `process_result'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rbovirt-0.0.31/lib/restclient_ext/request.rb:50:in `block in transmit'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/net_http.rb:123:in `start_without_connect'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/net_http.rb:150:in `start'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rbovirt-0.0.31/lib/restclient_ext/request.rb:44:in `transmit'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in `execute'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:35:in `execute'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/resource.rb:67:in `post'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:91:in `get_response'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:82:in `call'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/resources/repository.rb:161:in `unit_search'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/extensions/repository.rb:205:in `errata_ids'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:249:in `errata_ids'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:333:in `errata_json'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:320:in `index_db_errata'
    /home/dadavis/Projects/katello/test/glue/pulp/erratum_test.rb:45:in `test_backend_data'

  2) Error:
test_pulp_data(Katello::GlueErratumTest):
RestClient::Unauthorized: 401 Unauthorized
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/abstract_response.rb:48:in `return!'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:92:in `block in get_response'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:267:in `call'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:267:in `process_result'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rbovirt-0.0.31/lib/restclient_ext/request.rb:50:in `block in transmit'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/net_http.rb:123:in `start_without_connect'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/webmock-1.20.4/lib/webmock/http_lib_adapters/net_http.rb:150:in `start'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rbovirt-0.0.31/lib/restclient_ext/request.rb:44:in `transmit'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:68:in `execute'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/request.rb:35:in `execute'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/rest-client-1.6.8/lib/restclient/resource.rb:67:in `post'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:91:in `get_response'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/base.rb:82:in `call'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/resources/repository.rb:161:in `unit_search'
    /home/dadavis/.rvm/gems/ruby-2.0.0-p594@foreman/gems/runcible-1.3.0/lib/runcible/extensions/repository.rb:205:in `errata_ids'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:249:in `errata_ids'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:333:in `errata_json'
    /home/dadavis/Projects/katello/app/models/katello/glue/pulp/repo.rb:320:in `index_db_errata'
    /home/dadavis/Projects/katello/test/glue/pulp/erratum_test.rb:50:in `test_pulp_data'
...

Associated revisions

Revision 5c47dc28 (diff)
Added by Justin Sherrill almost 6 years ago

fixes #8768 - fixing pulp glue tests in live mode

calling configure_runcible prior to disable_glue_layers could
result in runcible not being configured correctly

Revision de464a7d
Added by Justin Sherrill almost 6 years ago

Merge pull request #4886 from jlsherrill/8768

fixes #8768 - fixing pulp glue tests in live mode

History

#1 Updated by David Davis almost 6 years ago

  • Assignee deleted (David Davis)

#2 Updated by Justin Sherrill almost 6 years ago

  • Assignee set to Justin Sherrill
  • Target version set to 62
  • Difficulty set to easy
  • Triaged changed from No to Yes

#3 Updated by The Foreman Bot almost 6 years ago

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

#4 Updated by Justin Sherrill almost 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#5 Updated by Eric Helms almost 6 years ago

  • Legacy Backlogs Release (now unused) set to 23

Also available in: Atom PDF