Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into future
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Jun 11, 2014
2 parents fc77367 + 80deb2c commit 1101b46
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .noserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[nosetests]
with-coverage=1
cover-erase=1
cover-inclusive=1
cover-min-percentage=90
cover-package=.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
language: python
python:
- 2.7
services:
- mongodb
- elasticsearch
- neo4j
before_install:
- sudo apt-get install mongodb
- sudo apt-get install python-dev
- sudo apt-get install g++
- sudo apt-get install libssl0.9.8
- sudo apt-get install libgeoip1
- sudo apt-get install libpcap0.8
- wget https://github.com/SuperCowPowers/data/raw/master/packages/Bro-2.2-Linux-x86_64_flex.deb
- sudo dpkg -i Bro-2.2-Linux-x86_64_flex.deb
- export PATH=/opt/bro/bin:$PATH
- cp .noserc ~/.noserc
install:
- pip install -r requirements.txt
- pip install coveralls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def process_files(path):
c.close()

# Fixme: see https://github.com/SuperCowPowers/workbench/issues/40
def disabled():
def test():
''' stress_test test '''
main()

if __name__ == '__main__':
disabled()
test()

5 changes: 4 additions & 1 deletion server/neo_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ def __init__(self, uri='http://localhost:7474/db/data'):
def add_node(self, node_id, name, labels):
''' Add the node with name and labels '''
node = self.graph_db.get_or_create_indexed_node('Node', 'node_id', node_id, {'node_id':node_id, 'name':name})
node.add_labels(*labels)
try:
node.add_labels(*labels)
except NotImplementedError:
print 'Got a NotImplementedError when adding labels. Upgrade your Neo4j DB!'

def has_node(self, node_id):
''' Add the node with name and labels '''
Expand Down
2 changes: 1 addition & 1 deletion server/workbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def main():
s.run()
print 'ZeroRPC %s' % ('tcp://0.0.0.0:4242')
except zmq.error.ZMQError:
print '\nInfo: Could not start ZMQ server (no worries, probably already running...)\n'
print '\nInfo: Could not start Workbench server (no worries, probably already running...)\n'
except KeyboardInterrupt:
print '\nWorbench Server Exiting...'
exit()
Expand Down

0 comments on commit 1101b46

Please sign in to comment.