Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from 1 commit
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
c4bb248
added error handling when server does not return a JSON object but on…
May 22, 2015
ce45dc0
Merge branch 'master' into development
May 28, 2015
fb0b492
- restructuring project layout accoriding to pip compliance
May 29, 2015
b7d2013
changed snmp sensors, when no snmp modules are available, sensors won…
May 29, 2015
014497d
changed __init__.py to an default empty file and and changed write mo…
May 29, 2015
dc2fcab
moved all code from probe_installer to setup.py
May 29, 2015
3e5ff6c
adjusted documentation/changelog, fixed typo in setup.py
May 29, 2015
2eba976
renaming classes due to functionality
May 29, 2015
06c8c93
typos
May 29, 2015
657c375
code cleanup, some checks to prevent default sensors in initial error…
May 30, 2015
ccbb87a
fixed unfortunate naming of own var
May 30, 2015
c3d3425
Merge pull request #2 from PaesslerAG/development
eagle00789 May 31, 2015
846b0ba
Create .travis.yml
eagle00789 May 31, 2015
887375e
Update .travis.yml
eagle00789 May 31, 2015
12eb1e5
added first unittest script
eagle00789 May 31, 2015
19f73a9
changed setup to use requirements.txt, fixed .gitignore, set requirem…
eagle00789 May 31, 2015
033d994
Merge pull request #12 from eagle00789/development
konstantinpae Jun 1, 2015
1a711b2
test commit to test travis integration
Jun 1, 2015
5886b35
added build status from travis
Jun 1, 2015
d05a315
Merge pull request #3 from PaesslerAG/development
eagle00789 Jun 1, 2015
719d172
Added all sensors for minimum unittesting against get_kind()
eagle00789 Jun 1, 2015
0f7e580
Merge pull request #13 from eagle00789/development
konstantinpae Jun 1, 2015
f8c8fe3
Added installer which can be user as a single download to download/in…
eagle00789 Jun 1, 2015
1838277
Merge pull request #14 from eagle00789/development
konstantinpae Jun 1, 2015
2d51dd7
deleted changelog.txt -> changes located in readme
Jun 1, 2015
de43336
Merge pull request #4 from PaesslerAG/development
eagle00789 Jun 1, 2015
8faddda
added tests for sensor defintion
Jun 1, 2015
82ebb96
added testing params
Jun 1, 2015
de297a5
MiniProbe print replaced by logging, added start og miniprobe unittests
eagle00789 Jun 1, 2015
9546068
fixed test_sensordef for cputemp
Jun 1, 2015
9d45459
removed travis-ci python 2.6 as we now require a minimum of python 2.7
eagle00789 Jun 1, 2015
d2221b6
Merge pull request #15 from PaesslerAG/update_sensor_test
konstantinpae Jun 1, 2015
e83409b
Merge pull request #16 from eagle00789/development
konstantinpae Jun 1, 2015
d04fc50
Merge pull request #5 from PaesslerAG/development
eagle00789 Jun 1, 2015
34b379a
added more miniprobe unittests
eagle00789 Jun 1, 2015
a4fd919
Merge pull request #17 from eagle00789/development
konstantinpae Jun 1, 2015
392334b
Update install.sh to redirect apt-get output /tmp
eagle00789 Jun 1, 2015
a1d576f
typo fix....
eagle00789 Jun 1, 2015
ecb58b4
Merge pull request #18 from eagle00789/development
konstantinpae Jun 1, 2015
90a5f01
forgot the word then on line 28
eagle00789 Jun 2, 2015
7580013
changed nose tests to class based to make advantage of the setup_clas…
Jun 2, 2015
c4f34d4
Merge pull request #19 from PaesslerAG/unit_tests_extension
konstantinpae Jun 2, 2015
d80203b
added some more testing for error cases, fixed potential bugs in some…
Jun 2, 2015
b3bf603
added bugfix to more sensors. Bug could lead to sensor processes basi…
Jun 2, 2015
ba94552
Merge pull request #20 from PaesslerAG/sensor_get_data_tests
konstantinpae Jun 2, 2015
e2daf19
addeed more tests, minor code cleanup
Jun 2, 2015
e2f4265
Merge pull request #21 from PaesslerAG/more_error_tests_minor_code_cl…
konstantinpae Jun 2, 2015
a6381ef
done some code cleanup -> PEP8, fixed some logical stuff like not use…
Jun 2, 2015
649ed06
adapted setup.py to new classnames, fixed bug in probehealth sensor
Jun 3, 2015
db44a87
Merge pull request #22 from PaesslerAG/code_cleanup
konstantinpae Jun 3, 2015
9b4a440
Merge pull request #6 from PaesslerAG/development
eagle00789 Jun 5, 2015
5f9f713
Changed setup.py to use single command to install and configure, remo…
eagle00789 Jun 5, 2015
44002b4
removed leftover from testing new setup.py
eagle00789 Jun 5, 2015
45e54b4
Removed no longer needed command from README.md
eagle00789 Jun 6, 2015
bf86cb2
made change to prerequisites
eagle00789 Jun 6, 2015
46d0d56
Update README.md
eagle00789 Jun 6, 2015
4eccbee
Merge pull request #24 from eagle00789/development
konstantinpae Jun 9, 2015
4cb5867
bugfix for sensor, when WiFi is active sensor was stopping complete p…
Jun 9, 2015
784e0ab
Merge pull request #25 from PaesslerAG/bugfix_external_ip
konstantinpae Jun 9, 2015
5807348
updated documentation and version
Jun 11, 2015
8a45a4f
Merge pull request #27 from PaesslerAG/documentation_update_for_release
konstantinpae Jun 11, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added all sensors for minimum unittesting against get_kind()
  • Loading branch information
eagle00789 committed Jun 1, 2015
commit 719d172544d51b655ea81307c380681abe74ab0b
55 changes: 52 additions & 3 deletions 55 miniprobe/tests/test_sensors.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python

from nose.tools import *
from miniprobe.sensors import nmap,adns,apt,cpuload,cputemp,snmptraffic
from miniprobe.sensors import adns,apt,cpuload,cputemp,diskspace,ds18b20,external_ip,http,memory,nmap,ping,port,portrange,probehealth,snmpcustom,snmptraffic

def test_nmap_get_kind():
"""nmap returns the correct kind"""
Expand Down Expand Up @@ -80,9 +80,58 @@ def test_cputemp_get_kind():
test_cputemp = cputemp.CPUTemp()
assert_equal(test_cputemp.get_kind(), 'mpcputemp')


def test_snmptraffic_get_kind():
"""cputemp returns the correct kind"""
"""snmptraffic returns the correct kind"""
test_snmptraffic = snmptraffic.SNMPTraffic()
assert_equal(test_snmptraffic.get_kind(), 'mpsnmptraffic')

def test_snmpcustom_get_kind():
"""snmpcustom returns the correct kind"""
test_snmpcustom = snmpcustom.SNMPCustom()
assert_equal(test_snmpcustom.get_kind(), 'mpsnmpcustom')

def test_diskspace_get_kind():
"""diskspace returns the correct kind"""
test_diskspace = diskspace.Diskspace()
assert_equal(test_diskspace.get_kind(), 'mpdiskspace')

def test_ds18b20_get_kind():
"""ds18b20 returns the correct kind"""
test_ds18b20 = ds18b20.DS18B20()
assert_equal(test_ds18b20.get_kind(), 'mpds18b20')

def test_external_ip_get_kind():
"""external_ip returns the correct kind"""
test_external_ip = external_ip.External_IP()
assert_equal(test_external_ip.get_kind(), 'mpexternalip')

def test_http_get_kind():
"""http returns the correct kind"""
test_http = http.HTTP()
assert_equal(test_http.get_kind(), 'mphttp')

def test_memory_get_kind():
"""memory returns the correct kind"""
test_memory = memory.Memory()
assert_equal(test_memory.get_kind(), 'mpmemory')

def test_ping_get_kind():
"""ping returns the correct kind"""
test_ping = ping.Ping()
assert_equal(test_ping.get_kind(), 'mpping')

def test_port_get_kind():
"""port returns the correct kind"""
test_port = port.Port()
assert_equal(test_port.get_kind(), 'mpport')

def test_portrange_get_kind():
"""portrange returns the correct kind"""
test_portrange = portrange.Portrange()
assert_equal(test_portrange.get_kind(), 'mpportrange')

def test_probehealth_get_kind():
"""probehealth returns the correct kind"""
test_probehealth = probehealth.Probehealth()
assert_equal(test_probehealth.get_kind(), 'mpprobehealth')

Morty Proxy This is a proxified and sanitized view of the page, visit original site.