Esempio n. 1
0
def validate(audit):
    disk = AuditDB(audit)
    try:

        # Make sure all objects completed all stages.
        for stage in sorted(PluginManager.STAGES.values()):
            assert disk.get_pending_data(stage) == set()

    finally:
        disk.close()
Esempio n. 2
0
def validate(audit):
    disk = AuditDB(audit)
    try:

        # Make sure all objects completed all stages.
        for stage in sorted(STAGES.values()):
            assert disk.get_pending_data(stage) == set()



    finally:
        disk.close()
Esempio n. 3
0
def validate(audit):
    audit = AuditConfig()
    audit.from_dictionary({
        "audit_name": audit,
        "audit_db": "sqlite://%s.db" % audit,
    })
    disk = AuditDB(audit)
    try:

        # Make sure all objects completed all stages.
        for stage in sorted(PluginManager.STAGES.values()):
            assert disk.get_pending_data(stage) == set()

    finally:
        disk.close()
Esempio n. 4
0
def validate(audit):
    audit = AuditConfig()
    audit.from_dictionary({
        "audit_name": audit,
        "audit_db": "sqlite://%s.db" % audit,
    })
    disk = AuditDB(audit)
    try:

        # Make sure all objects completed all stages.
        for stage in sorted(PluginManager.STAGES.values()):
            assert disk.get_pending_data(stage) == set()



    finally:
        disk.close()