Esempio n. 1
0
def uploaderBugsSetUp(test):
    """Set up a test suite using the 'uploader' db user.

    Some aspects of the bug tracker are being used by the Soyuz uploader.
    In order to test that these functions work as expected from the uploader,
    we run them using the same db user used by the uploader.
    """
    lobotomize_stevea()
    test_dbuser = config.uploader.dbuser
    switch_dbuser(test_dbuser)
    setUp(test)
    test.globs["test_dbuser"] = test_dbuser
Esempio n. 2
0
def uploaderBugsSetUp(test):
    """Set up a test suite using the 'uploader' db user.

    Some aspects of the bug tracker are being used by the Soyuz uploader.
    In order to test that these functions work as expected from the uploader,
    we run them using the same db user used by the uploader.
    """
    lobotomize_stevea()
    test_dbuser = config.uploader.dbuser
    switch_dbuser(test_dbuser)
    setUp(test, future=True)
    test.globs['test_dbuser'] = test_dbuser
Esempio n. 3
0
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test)
Esempio n. 4
0
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test)
Esempio n. 5
0
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
Esempio n. 6
0
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test)
Esempio n. 7
0
def cveSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.cveupdater.dbuser)
    setUp(test, future=True)
Esempio n. 8
0
def bugNotificationSendingSetUp(test):
    lobotomize_stevea()
    switch_dbuser(config.malone.bugnotification_dbuser)
    setUp(test, future=True)
Esempio n. 9
0
def branchscannerBugsSetUp(test):
    """Setup the user for the branch scanner tests."""
    lobotomize_stevea()
    branchscannerSetUp(test)
Esempio n. 10
0
def lobotomizeSteveASetUp(test):
    """Call lobotomize_stevea() and standard setUp"""
    lobotomize_stevea()
    setUp(test, future=True)