def test_vmanalysis_profile_description_validation(): """ Test to validate description in vm profiles""" p = VMAnalysisProfile(fauxfactory.gen_alphanumeric(), None, categories=["check_system"]) with error.expected("Description can't be blank"): p.create()
def test_analysis_profile_duplicate_name(): """ Test to validate duplicate profiles name.""" p = VMAnalysisProfile( fauxfactory.gen_alphanumeric(), fauxfactory.gen_alphanumeric(), categories=["check_system"]) p.create() with error.expected("Name has already been taken"): p.create()
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( 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()
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_analysis_profile_duplicate_name(): """ Test to validate duplicate profiles name.""" p = VMAnalysisProfile( fauxfactory.gen_alphanumeric(), fauxfactory.gen_alphanumeric(), files=["asdf", "dfg"]) p.create() with error.expected("Name has already been taken"): p.create()
def test_vmanalysis_profile_description_validation(): """ Test to validate description in vm profiles""" p = VMAnalysisProfile( fauxfactory.gen_alphanumeric(), None, categories=["check_system"]) with error.expected("Description can't be blank"): p.create()