class OperatingSystemGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'asset'
    selene_name = 'operatingSystem'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        asset_type=AssetType.OPERATING_SYSTEM)
Example #2
0
class OperatingSystemGetEntitiesTestCase(SeleneTestCase):
    gmp_cmd = 'get_operating_systems'
    gmp_name = 'asset'
    selene_name = 'operatingSystem'
    test_get_entities = make_test_get_entities(
        gmp_name=gmp_name, gmp_cmd=gmp_cmd, selene_name=selene_name
    )
Example #3
0
class HostGetEntitiesTestCase(SeleneTestCase):
    gmp_cmd = 'get_hosts'
    gmp_name = 'asset'
    selene_name = 'host'
    test_get_entities = make_test_get_entities(gmp_name=gmp_name,
                                               gmp_cmd=gmp_cmd,
                                               selene_name=selene_name)
Example #4
0
class AuditGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'task'
    selene_name = 'audit'
    gmp_cmd = 'get_audits'
    test_get_entities = make_test_get_entities(
        gmp_name=gmp_name,
        selene_name=selene_name,
        gmp_cmd=gmp_cmd,
        details=True,
    )
Example #5
0
class NVTsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'info'
    gmp_cmd = 'get_info_list'
    selene_name = 'nvt'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        gmp_cmd=gmp_cmd,
        info_type=GvmInfoType.NVT,
    )
Example #6
0
class ScanConfigsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'config'
    selene_name = 'scanConfig'
    gmp_cmd = 'get_scan_configs'
    test_get_entities = make_test_get_entities(
        gmp_name=gmp_name,
        selene_name=selene_name,
        gmp_cmd=gmp_cmd,
        details=False,
    )
Example #7
0
class PoliciesGetEntitiesTestCase(SeleneTestCase):
    # it gets weirder and weirder ....
    gmp_name = 'config'
    gmp_cmd = 'get_policies'
    selene_name = 'policy'
    plural_name = 'policies'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        gmp_cmd=gmp_cmd,
        plural_selene_name=plural_name,
        details=False,
    )
Example #8
0
class CertBundAdvisoriessGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'info'
    gmp_cmd = 'get_info_list'
    selene_name = 'cert_bund_advisory'
    plural_selene_name = 'certBundAdvisories'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        gmp_cmd=gmp_cmd,
        plural_selene_name=plural_selene_name,
        info_type=GvmInfoType.CERT_BUND_ADV,
        details=True,
    )
class DFNCertAdvisoriesGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'info'
    gmp_cmd = 'get_info_list'
    selene_name = 'dfncertadvisory'
    plural_selene_name = 'dfnCertAdvisories'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        plural_selene_name=plural_selene_name,
        gmp_cmd=gmp_cmd,
        info_type=GvmInfoType.DFN_CERT_ADV,
        details=True,
    )
class OvalDefinitionsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'info'
    gmp_cmd = 'get_info_list'
    selene_name = 'ovalDefinition'
    plural_selene_name = 'ovalDefinitions'
    test_get_entities = make_test_get_entities(
        gmp_name,
        selene_name=selene_name,
        plural_selene_name=plural_selene_name,
        gmp_cmd=gmp_cmd,
        info_type=GvmInfoType.OVALDEF,
        details=True,
    )
class TLSCertificatesGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'tls_certificate'
    selene_name = 'tlsCertificate'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name)
Example #12
0
class AlertsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'alert'
    test_get_entities = make_test_get_entities(gmp_name, tasks=True)
class ScanConfigsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'config'
    selene_name = 'scanConfig'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name,
                                               details=False)
Example #14
0
class ReportFormatsGetEntityTestCase(SeleneTestCase):
    gmp_name = 'report_format'
    selene_name = 'reportFormat'
    test_get_entity = make_test_get_entities(gmp_name, selene_name=selene_name)
Example #15
0
class PermissionsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'permission'
    selene_name = 'permission'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name)
Example #16
0
class UsersGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'user'
    selene_name = 'user'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name)
Example #17
0
class RolesGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'role'
    selene_name = 'role'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name)
Example #18
0
class HostGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'asset'
    selene_name = 'host'
    test_get_entities = make_test_get_entities(gmp_name,
                                               selene_name=selene_name,
                                               asset_type=AssetType.HOST)
Example #19
0
class TicketsGetEntitiesTestCase(SeleneTestCase):
    gmp_name = "ticket"
    test_get_entities = make_test_get_entities(gmp_name)
Example #20
0
class ScannerGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'scanner'
    test_get_entities = make_test_get_entities(gmp_name, details=True)
Example #21
0
class TaskGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'task'
    test_get_entities = make_test_get_entities(gmp_name, details=True)
Example #22
0
class HostGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'filter'
    selene_name = 'filter'
    test_get_entities = make_test_get_entities(
        gmp_name, selene_name=selene_name, trash=False, alerts=False
    )
Example #23
0
class CredentialGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'credential'
    test_get_entities = make_test_get_entities(gmp_name)
Example #24
0
class SchedulesGetEntitiesTestCase(SeleneTestCase):
    gmp_name = 'schedule'
    test_get_entities = make_test_get_entities(gmp_name)