def testPluginLoaderHelper():
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, None, 0)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, None, 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, None, 1)

    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, [], 0)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, [], 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, [], 1)

    auctionReqValidPluginPath = getPluginPath(
        AUCTION_REQ_VALIDATION_PLUGIN_PATH_VALUE)
    pluginPaths = [auctionReqValidPluginPath]
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, pluginPaths, 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, pluginPaths, 1)

    auctionReqProcPluginPath = getPluginPath(
        AUCTION_REQ_PROCESSOR_PLUGIN_PATH_VALUE)
    pluginPaths = [auctionReqValidPluginPath, auctionReqProcPluginPath]
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, pluginPaths, 1)
def testPluginLoaderHelper():
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, None, 0)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, None, 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, None, 1)

    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, [], 0)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, [], 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, [], 1)

    auctionReqValidPluginPath = getPluginPath(
        AUCTION_REQ_VALIDATION_PLUGIN_PATH_VALUE)
    pluginPaths = [auctionReqValidPluginPath]
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, pluginPaths, 0)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, pluginPaths, 1)

    auctionReqProcPluginPath = getPluginPath(
        AUCTION_REQ_PROCESSOR_PLUGIN_PATH_VALUE)
    pluginPaths = [auctionReqValidPluginPath, auctionReqProcPluginPath]
    assertPluginCounts(PLUGIN_TYPE_VERIFICATION, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_PROCESSING, pluginPaths, 1)
    assertPluginCounts(PLUGIN_TYPE_STATS_CONSUMER, pluginPaths, 1)
Exemple #3
0
def allPluginsPath():
    return [getPluginPath('stats_consumer')]
def pluginVerPath():
    return getPluginPath(OPERATION_VALIDATION_PLUGIN_PATH_VALUE)
def pluginVerPath():
    return getPluginPath(AUCTION_REQ_VALIDATION_PLUGIN_PATH_VALUE)
Exemple #6
0
def pluginVerPath():
    return getPluginPath(BANK_REQ_VALIDATION_PLUGIN_PATH_VALUE)
def pluginPrcPath():
    return getPluginPath(AUCTION_REQ_PROCESSOR_PLUGIN_PATH_VALUE)
def pluginVerPath():
    return getPluginPath(OPERATION_VALIDATION_PLUGIN_PATH_VALUE)
def pluginPrcPath():
    return getPluginPath(AUCTION_REQ_PROCESSOR_PLUGIN_PATH_VALUE)
Exemple #10
0
def allPluginsPath():
    return [getPluginPath('stats_consumer')]