Merge "hound: enable detect-ref"

This commit is contained in:
Zuul 2022-02-27 21:51:39 +00:00 committed by Gerrit Code Review
commit 6463275bf2
4 changed files with 21 additions and 0 deletions

View File

@ -13,3 +13,8 @@
groups: groups:
- zuul - zuul
description: The Gatekeeper, or a project gating system description: The Gatekeeper, or a project gating system
- project: cirros/cirros
use-storyboard: false
groups:
- openstack-ci
description: Cirros uses "main" instead of "master"

View File

@ -0,0 +1,6 @@
- hosts: "codesearch"
tasks:
- name: Run selenium container
include_role:
name: run-selenium

View File

@ -12,6 +12,7 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from util import take_screenshots
testinfra_hosts = ['codesearch01.opendev.org'] testinfra_hosts = ['codesearch01.opendev.org']
@ -31,3 +32,11 @@ def test_codesearch_robots(host):
'--resolve codesearch.opendev.org:443:127.0.0.1 ' '--resolve codesearch.opendev.org:443:127.0.0.1 '
'https://codesearch.opendev.org/robots.txt') 'https://codesearch.opendev.org/robots.txt')
assert 'Disallow: /' in cmd.stdout assert 'Disallow: /' in cmd.stdout
def test_codesearch_screenshots(host):
shots = (
('https://localhost/', None, 'codesearch-main-page.png'),
('https://localhost/?q=zuul&i=nope&literal=nope&files=&excludeFiles=&repos=', None, 'codesearch-zuul.png'),
('https://localhost/?q=cirros&i=nope&literal=nope&files=&excludeFiles=&repos=cirros/cirros', None, 'codesearch-cirros.png'),
)
take_screenshots(host, shots)

View File

@ -530,6 +530,7 @@
run_playbooks: run_playbooks:
- playbooks/letsencrypt.yaml - playbooks/letsencrypt.yaml
- playbooks/service-codesearch.yaml - playbooks/service-codesearch.yaml
run_test_playbook: playbooks/test-codesearch.yaml
files: files:
- playbooks/bootstrap-bridge.yaml - playbooks/bootstrap-bridge.yaml
- playbooks/letsencrypt.yaml - playbooks/letsencrypt.yaml