Use prod services in BaseConfiguration and staging in TestConfiguration.

This commit is contained in:
Jan Kaluza
2017-04-11 12:01:41 +02:00
parent 0338e12699
commit ec9002df85

View File

@@ -30,13 +30,13 @@ class BaseConfiguration(object):
KOJI_PROFILE = 'koji'
KOJI_ARCHES = ['i686', 'armv7hl', 'x86_64']
KOJI_PROXYUSER = True
KOJI_REPOSITORY_URL = 'https://kojipkgs.stg.fedoraproject.org/repos'
KOJI_REPOSITORY_URL = 'https://kojipkgs.fedoraproject.org/repos'
KOJI_TAG_PREFIXES = ['module']
COPR_CONFIG = '/etc/module-build-service/copr.conf'
PDC_URL = 'http://modularity.fedorainfracloud.org:8080/rest_api/v1'
PDC_URL = 'http://pdc.fedoraproject.org/rest_api/v1'
PDC_INSECURE = True
PDC_DEVELOP = True
SCMURLS = ["git://pkgs.stg.fedoraproject.org/modules/"]
SCMURLS = ["git://pkgs.fedoraproject.org/modules/"]
YAML_SUBMIT_ALLOWED = False
# How often should we resort to polling, in seconds
@@ -60,7 +60,7 @@ class BaseConfiguration(object):
SSL_CERTIFICATE_KEY_FILE = '/etc/module-build-service/server.key'
SSL_CA_CERTIFICATE_FILE = '/etc/module-build-service/cacert.pem'
PKGDB_API_URL = 'https://admin.stg.fedoraproject.org/pkgdb/api'
PKGDB_API_URL = 'https://admin.fedoraproject.org/pkgdb/api'
ALLOWED_GROUPS = set([
'packager',
@@ -158,6 +158,10 @@ class TestConfiguration(BaseConfiguration):
KOJI_PROFILE = 'staging'
SERVER_NAME = 'localhost'
KOJI_REPOSITORY_URL = 'https://kojipkgs.stg.fedoraproject.org/repos'
SCMURLS = ["git://pkgs.stg.fedoraproject.org/modules/"]
PKGDB_API_URL = 'https://admin.stg.fedoraproject.org/pkgdb/api'
class ProdConfiguration(BaseConfiguration):
pass