Merge "hound: enable detect-ref"
This commit is contained in:
commit
6463275bf2
@ -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"
|
||||||
|
6
playbooks/test-codesearch.yaml
Normal file
6
playbooks/test-codesearch.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
- hosts: "codesearch"
|
||||||
|
tasks:
|
||||||
|
|
||||||
|
- name: Run selenium container
|
||||||
|
include_role:
|
||||||
|
name: run-selenium
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user