Exemplo n.º 1
0
def analysis_profile(compliance_vm):
    ap = AnalysisProfile(name="default", description="ap-desc", profile_type='VM', files=[],
                         categories=["check_software"])
    if ap.exists:
        ap.delete()
    with ap:
        yield ap
def test_host_analysis_profile_crud():
    """CRUD for Host analysis profiles."""
    p = AnalysisProfile(name=fauxfactory.gen_alphanumeric(),
                        description=fauxfactory.gen_alphanumeric(), profile_type='Host',
                        files=["asdf", "dfg"])
    p.create()
    with update(p):
        p.files = ["qwer"]
    copied_profile = p.copy()
    copied_profile.delete()
    p.delete()
def test_vm_analysis_profile_crud():
    """CRUD for VM analysis profiles."""
    p = AnalysisProfile(name=fauxfactory.gen_alphanumeric(),
                        description=fauxfactory.gen_alphanumeric(),
                        profile_type='VM', files=["asdf", "dfg"])
    p.create()
    with update(p):
        p.files = ["qwer"]
    with update(p):
        p.categories = ["check_system"]
    p.delete()
def test_host_analysis_profile_crud():
    """CRUD for Host analysis profiles."""
    p = AnalysisProfile(name=fauxfactory.gen_alphanumeric(),
                        description=fauxfactory.gen_alphanumeric(),
                        profile_type='Host',
                        files=["asdf", "dfg"])
    p.create()
    with update(p):
        p.files = ["qwer"]
    copied_profile = p.copy()
    copied_profile.delete()
    p.delete()
def test_vm_analysis_profile_crud():
    """CRUD for VM analysis profiles."""
    p = AnalysisProfile(name=fauxfactory.gen_alphanumeric(),
                        description=fauxfactory.gen_alphanumeric(),
                        profile_type='VM',
                        files=["asdf", "dfg"])
    p.create()
    with update(p):
        p.files = ["qwer"]
    with update(p):
        p.categories = ["check_system"]
    p.delete()
Exemplo n.º 6
0
def analysis_profile():
    ap = AnalysisProfile(name="default",
                         description="ap-desc",
                         profile_type="VM",
                         categories=[
                             "check_services", "check_accounts",
                             "check_software", "check_vmconfig", "check_system"
                         ])
    if ap.exists:
        ap.delete()
    ap.create()
    yield ap
    ap.delete()
Exemplo n.º 7
0
def analysis_profile():
    ap = AnalysisProfile(
        name="default",
        description="ap-desc",
        profile_type="VM",
        categories=[
            "check_services",
            "check_accounts",
            "check_software",
            "check_vmconfig",
            "check_system"
        ]
    )
    if ap.exists:
        ap.delete()
    ap.create()
    yield ap
    ap.delete()