Exemplo n.º 1
0
def python_pkg1_101():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "pythonpkg1"
    pkg.normalized_src_pkg = "pythonpkg1"
    pkg.version = "1.0.1"
    pkg.fullversion = "1.0.1"
    pkg.release = None
    pkg.pkg_type = "python"
    pkg.distro_name = "centos"
    pkg.distro_version = "8"
    pkg.like_distro = "RHEL"
    return pkg
Exemplo n.º 2
0
def python_pkg1_101():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'pythonpkg1'
    pkg.normalized_src_pkg = 'pythonpkg1'
    pkg.version = '1.0.1'
    pkg.fullversion = '1.0.1'
    pkg.release = None
    pkg.pkg_type = 'python'
    pkg.distro_name = 'centos'
    pkg.distro_version = '8'
    pkg.like_distro = 'rhel'
    return pkg
Exemplo n.º 3
0
def nonvulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "pkg1"
    pkg.normalized_src_pkg = "pkg1"
    pkg.version = "1.1.el8"
    pkg.fullversion = "0:1.1.el8"
    pkg.release = None
    pkg.pkg_type = "RPM"
    pkg.distro_name = "centos"
    pkg.distro_version = "8"
    pkg.like_distro = "RHEL"
    return pkg
Exemplo n.º 4
0
def nonvulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'pkg1'
    pkg.normalized_src_pkg = 'pkg1'
    pkg.version = '1.1.el8'
    pkg.fullversion = '0:1.1.el8'
    pkg.release = None
    pkg.pkg_type = 'RPM'
    pkg.distro_name = 'centos'
    pkg.distro_version = '8'
    pkg.like_distro = 'rhel'
    return pkg
Exemplo n.º 5
0
def vulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "pkg1"
    pkg.normalized_src_pkg = "pkg1"
    pkg.version = "0:1.0.el8"
    pkg.fullversion = "0:1.0.el8"
    pkg.release = None
    pkg.pkg_type = "RPM"
    pkg.distro_name = "rhel"
    pkg.distro_version = "8"
    pkg.like_distro = "RHEL"
    pkg.arch = "amd64"
    pkg.pkg_path = "rpmdb"
    return pkg
Exemplo n.º 6
0
def vulnerable_semver_pkg2():
    pkg = ImagePackage()
    pkg.image_id = "image1"
    pkg.image_user_id = "admin"
    pkg.name = "semverpkg1"
    pkg.normalized_src_pkg = "semverpkg1"
    pkg.version = "2.2.0"
    pkg.fullversion = "2.2.0"
    pkg.release = None
    pkg.pkg_type = "npm"
    pkg.distro_name = "npm"
    pkg.distro_version = "N/A"
    pkg.like_distro = "npm"
    pkg.arch = "amd64"
    pkg.pkg_path = "/app/myapp2/package.json"
    return pkg
Exemplo n.º 7
0
def vulnerable_pkg1():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'pkg1'
    pkg.normalized_src_pkg = 'pkg1'
    pkg.version = '0:1.0.el8'
    pkg.fullversion = '0:1.0.el8'
    pkg.release = None
    pkg.pkg_type = 'RPM'
    pkg.distro_name = 'rhel'
    pkg.distro_version = '8'
    pkg.like_distro = 'rhel'
    pkg.arch = 'amd64'
    pkg.pkg_path = 'rpmdb'
    return pkg
def vulnerable_semver_pkg2():
    pkg = ImagePackage()
    pkg.image_id = 'image1'
    pkg.image_user_id = 'admin'
    pkg.name = 'semverpkg1'
    pkg.normalized_src_pkg = 'semverpkg1'
    pkg.version = '2.2.0'
    pkg.fullversion = '2.2.0'
    pkg.release = None
    pkg.pkg_type = 'npm'
    pkg.distro_name = 'npm'
    pkg.distro_version = 'N/A'
    pkg.like_distro = 'npm'
    pkg.arch = 'amd64'
    pkg.pkg_path = '/app/myapp2/package.json'
    return pkg