示例#1
0
def test_dist_json(tmpdir, sample_files, sample_info):
    mkp.dist(sample_info, str(tmpdir))

    assert tmpdir.join('dist', 'foo-42.mkp').exists()
    package = mkp.load_file(str(tmpdir.join('dist', 'foo-42.mkp')))
    assert package.json_info['author'] == 'John Doe'
    assert package.json_info['name'] == 'foo'
    assert package.json_info['files']['agents'] == ['special/agent_test']
    assert package.json_info['files']['checks'] == ['foo']
    assert package.json_info['num_files'] == 2
    assert package.json_info['version'] == '42'
    assert package.json_info['version.packaged'] == 'python-mkp'
    assert package.json_info['version.min_required'] == '1.2.6p5'
    assert package.json_info['version.usable_until'] is None
示例#2
0
def test_dist(tmpdir):
    tmpdir.join('agents', 'special', 'agent_test').write_binary(b'hello', ensure=True)
    tmpdir.join('checks', 'foo').write_binary(b'Check Me!', ensure=True)
    info = {
        'author': 'John Doe',
        'name': 'foo',
        'version': '42',
    }

    mkp.dist(info, str(tmpdir))

    assert tmpdir.join('dist', 'foo-42.mkp').exists()
    package = mkp.load_file(str(tmpdir.join('dist', 'foo-42.mkp')))
    assert package.info['author'] == 'John Doe'
    assert package.info['name'] == 'foo'
    assert package.info['files']['agents'] == ['special/agent_test']
    assert package.info['files']['checks'] == ['foo']
    assert package.info['version'] == '42'
    assert package.info['version.packaged'] == 'python-mkp'
示例#3
0
#!/usr/bin/env python

from mkp import dist
import versioneer

dist({
    'author': 'Thomas Reifenberger',
    'description': 'Monitor ink levels of printers',
    'download_url': 'https://github.com/tom-mi/check_mk-printer_inklevel',
    'name': 'printer_inklevels',
    'title': 'Printer Inklevels',
    'version': versioneer.get_version(),
    'version.min_required': '1.2.6p5',
})
示例#4
0
#!/usr/bin/env python

from mkp import dist

dist({
    'author': 'Michael Kronika',
    'description':
    '##Changelog 1.4.5\n- Fix CPU/Temperature order. Issue #4\n\n## Changelog 1.4.4\n- Fix location of WATO Plugins\n\n## Changelog 1.4.3\n- FIX: "If more than one volume was existing only the first one was shown correctly" by Yogibaer75\n- Fixed typo found by Erik\n\n## Changelog 1.4.2\n- Minor cleanups\n\n## Changelog 1.4.1\n- Edited qnap_fans so it can support more then 2 fans.\n- Added Wato Interface for qnap_fans and qnap_temp\n\n## Changelog 1.4\n- Original from Andre Eckstein, Christian Burmeister\n- Removed HDD check since this is covered by an built in check (qnap_disks) already\n- Made it checkmk 1.6 compatible\n',
    'download_url': 'https://github.com/virus2500/checkmk-qnap',
    'name': 'qnap',
    'title': 'Check Qnap Storage',
    'version': '1.4.5',
    'version.min_required': '1.6.0',
})
示例#5
0
    'test_robotmk_plugin.py',
    'agents/plugins/robotmk.py',
    '__pycache__',
]

pkg_desc = '''
    Robotmk integrates Robot Framework results into Checkmk.
    Robot Framework can test web based and native applications.
    It is easy to learn and highly extendable by libraries.
    Libraries provide the functionality to use modern test web
    technologies (Playwright/Selenium), control user interfaces
    (ImageHorizon, SikuliX, AutoIT, SAP, ...), REST/SOAP APIs
    and many more. It is based on Python and can be extended
    by own libraries as well.
    See https://robotframework.org for more information.
'''

dist(
    {
        'author': 'Simon Meggle, https://www.simon-meggle.de',
        'description': pkg_desc,
        'download_url': 'https://www.robotmk.org',
        'name': 'robotmk',
        'title': 'Robotmk | Robot Framework End2End Test Integration',
        'version': tag.replace('v', ''),
        'version.min_required': '1.6',
    },
    blacklist=blacklist)

rmtree(str('agents/custom'))