• Stan Hu's avatar
    Fix spec failures in ee/spec/lib/gitlab/elastic/search_results_spec.rb · e2606758
    Stan Hu authored
    There are two issues:
    
    1. When a Wiki was disabled, the spec was still trying to create a
    Wiki page, which would cause Gitaly to create the repository and fire
    hooks. Since Rails isn't running an internal API server, this fails.
    
    2. For private Wikis, the Wiki repository needs to be created with the
    :wiki_repo trait in order to clear hooks to prevent Gitaly from
    contacting the internal API server.
    e2606758
search_results_spec.rb 28.7 KB