f5b5ee9336
Basic implementation of the opendev static server, described in https://docs.opendev.org/opendev/infra-specs/latest/specs/retire-static.html Change-Id: Ie1b92f06b71aa6069fe831b26ba1cc272ce4562c Story: #2006598 Task: #37757
34 lines
1.2 KiB
Python
34 lines
1.2 KiB
Python
# Copyright 2019 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
|
|
testinfra_hosts = ['static01.opendev.org']
|
|
|
|
|
|
def test_apache(host):
|
|
apache = host.service('apache2')
|
|
assert apache.is_running
|
|
|
|
def test_governance_openstack_org(host):
|
|
cmd = host.run('curl --insecure '
|
|
'--resolve governance.openstack.org:443:127.0.0.1 '
|
|
'https://governance.openstack.org/')
|
|
assert 'OpenStack Governance' in cmd.stdout
|
|
|
|
def test_security_openstack_org(host):
|
|
cmd = host.run('curl --insecure '
|
|
'--resolve security.openstack.org:443:127.0.0.1 '
|
|
'https://security.openstack.org/')
|
|
assert 'OpenStack Security Project' in cmd.stdout
|