[katello-devel] Spec failures - help?

Ivan Nečas inecas at redhat.com
Thu Jan 26 09:52:31 UTC 2012


It looks like AppConfig.host being nil in your config when running test 
environment. Might be problem with your katello.yml host config. What 
does your katello.yml look like (both in you repo's config and 
/etc/katello)?

-- Ivan
On 01/25/2012 07:26 PM, Jason Rist wrote:
> Hi All - Getting a few spec failures and it sounds like Thomas is
> getting the same ones.  Can anyone explain what I'm doing wrong or are
> these errors lingering from a change?
> Failures:
>
>    1) Product product repos add repo when there is a repo with the same
> name for the product should raise conflict error
>       Failure/Error: @p.add_repo(@repo_name, "http://test/repo","yum" )
>       NoMethodError:
>         You have a nil object when you didn't expect it!
>         You might have expected an instance of Array.
>         The error occurred while evaluating nil.+
>       # ./app/models/glue/pulp/repos.rb:547:in `yum_gpg_key_url'
>       # ./app/models/glue/pulp/repos.rb:59:in `create_content'
>       # ./app/models/glue/pulp/repos.rb:356:in `add_repo'
>       # ./spec/models/product_spec.rb:192
>
>    2) RepositoriesController other-tests Test gpg create
>       Failure/Error: response.should be_success
>         expected success? to return true, got false
>       # ./spec/controllers/repositories_controller_spec.rb:98
>
> -J


-- 
Regards,

  Ivan Necas
  Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list