Toward running quay in a docker container.
This commit is contained in:
parent
6e2b8d96b8
commit
8e9faf6121
11 changed files with 138 additions and 38 deletions
29
config.py
29
config.py
|
@ -7,9 +7,6 @@ from peewee import MySQLDatabase, SqliteDatabase
|
|||
from data.buildlogs import BuildLogs
|
||||
from data.userevent import UserEventBuilder
|
||||
|
||||
from test import analytics as fake_analytics
|
||||
from test.testlogs import TestBuildLogs
|
||||
|
||||
|
||||
def build_requests_session():
|
||||
sess = requests.Session()
|
||||
|
@ -88,7 +85,7 @@ class DefaultConfig(object):
|
|||
USERFILES_PATH = 'test/data/userfiles'
|
||||
|
||||
# Analytics
|
||||
ANALYTICS = fake_analytics
|
||||
ANALYTICS_TYPE = "FakeAnalytics"
|
||||
|
||||
# Github Config
|
||||
GITHUB_TOKEN_URL = 'https://github.com/login/oauth/access_token'
|
||||
|
@ -130,21 +127,21 @@ class FakeTransaction(object):
|
|||
pass
|
||||
|
||||
|
||||
class TestConfig(DefaultConfig):
|
||||
TESTING = True
|
||||
# class TestConfig(DefaultConfig):
|
||||
# TESTING = True
|
||||
|
||||
DB_NAME = ':memory:'
|
||||
DB_CONNECTION_ARGS = {}
|
||||
# DB_NAME = ':memory:'
|
||||
# DB_CONNECTION_ARGS = {}
|
||||
|
||||
@staticmethod
|
||||
def create_transaction(db):
|
||||
return FakeTransaction()
|
||||
# @staticmethod
|
||||
# def create_transaction(db):
|
||||
# return FakeTransaction()
|
||||
|
||||
DB_TRANSACTION_FACTORY = create_transaction
|
||||
# DB_TRANSACTION_FACTORY = create_transaction
|
||||
|
||||
STORAGE_TYPE = 'FakeStorage'
|
||||
# STORAGE_TYPE = 'FakeStorage'
|
||||
|
||||
BUILDLOGS = TestBuildLogs('logs.quay.io', 'devtable', 'building',
|
||||
'deadbeef-dead-beef-dead-beefdeadbeef')
|
||||
# BUILDLOGS = TestBuildLogs('logs.quay.io', 'devtable', 'building',
|
||||
# 'deadbeef-dead-beef-dead-beefdeadbeef')
|
||||
|
||||
USERFILES_TYPE = 'FakeUserfiles'
|
||||
# USERFILES_TYPE = 'FakeUserfiles'
|
||||
|
|
Reference in a new issue