def analysis_profile(compliance_vm): ap = VMAnalysisProfile( name="default", description="ap-desc", files=[], categories=["check_software"]) if ap.exists: ap.delete() with ap: yield ap
def analysis_profile(compliance_vm): ap = VMAnalysisProfile(name="default", description="ap-desc", files=[], categories=["check_software"]) if ap.exists: ap.delete() with ap: yield ap
def test_vm_analysis_profile_crud(): """CRUD for VM analysis profiles.""" p = VMAnalysisProfile(generate_random_string(), generate_random_string(), files=["asdf", "dfg"]) p.create() with update(p): p.files = ["qwer"] with update(p): p.categories = ["check_system"] p.delete()
def test_vm_analysis_profile_crud(): """CRUD for VM analysis profiles.""" p = VMAnalysisProfile(fauxfactory.gen_alphanumeric(), fauxfactory.gen_alphanumeric(), files=["asdf", "dfg"]) p.create() with update(p): p.files = ["qwer"] with update(p): p.categories = ["check_system"] p.delete()
def test_vm_analysis_profile_crud(): """CRUD for VM analysis profiles.""" p = VMAnalysisProfile( fauxfactory.gen_alphanumeric(), fauxfactory.gen_alphanumeric(), files=["asdf", "dfg"]) p.create() with update(p): p.files = ["qwer"] with update(p): p.categories = ["check_system"] p.delete()