Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fixing trial errors and adding comments
Browse files Browse the repository at this point in the history
  • Loading branch information
David Stuebe committed Jul 23, 2010
1 parent 3f55be2 commit b93d956
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 35 deletions.
16 changes: 16 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ http://www.oceanobservatories.org/spaces/display/CIDev/LCAARCH+Development+Proje

LCAarch is compatible with Python 2.5 and higher, but not Python 3.x
This project has as dependencies Magnet, Carrot, txAMQP, Twisted and pycassa,
and msgpack
(see below)

Get LCAarch with
Expand Down Expand Up @@ -98,6 +99,11 @@ carrot (use txamqp branch)
git clone git://amoeba.ucsd.edu/carrot.git
(cd carrot; git checkout -b txamqp origin/txamqp)
(cd carrot; python setup.py install)

MsgPack
----------------------------
::
easy_install msgpack-python

Install the Magnet package [NEED Magent 0.3.4 on master branch]
------------------------------------------------------------------
Expand All @@ -120,6 +126,16 @@ again (see above). Please review the branch logs for any hints.
Change log:
===========

2010-07-23:
- Refactored the Registry Services to inherit from a common base class. This
will allow easier implementation of the many registries in the OOICI. The
Resource Registry and Service Registry now have basic registration of resource
descriptions and services.
- The Ion message is now encoded usig the MsgPack library to allow for binary
transport of message content. The JSON library was mangleing string content.
This is a temporary fix for a wider problem with the encoding structure which
needs to be addressed in construction.

2010-06-07:
- Redefined logging import to set as module level logger. Each module has now
a different logger that can be configured separately. Don't configure
Expand Down
29 changes: 0 additions & 29 deletions ion/play/test_methods.py

This file was deleted.

3 changes: 3 additions & 0 deletions ion/services/coi/test/test_attributestore.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ def test_put_common_backend(self):
logging.info('tResult2 get: '+str(tres2))
self.assertEqual(tres2, 'tvalue1')

# Let cassandra register the new entry
pu.asleep(5)

# With common backends the value should be found.
resx1 = yield asc2.get('key1')
self.assertEqual(resx1, 'value2',msg='Failed to pull value from second service instance')
Expand Down
6 changes: 3 additions & 3 deletions ion/services/coi/test/test_resource_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ def test_resource_instance_reg(self):

resource_description = yield self.rrc.get_resource_definition(instance.description)

print instance
print resource_description
#print instance
#print resource_description



Expand Down Expand Up @@ -107,5 +107,5 @@ def test_reg_startup(self):
res_to_describe = coi_resource_descriptions.IdentityResource
res_description = yield self.rrc.register_resource_definition(res_to_describe)

print res_description
#print res_description

4 changes: 2 additions & 2 deletions ion/services/coi/test/test_service_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_service_reg(self):

svc_desc = yield self.src.get_service_definition(ref)

print svc_desc
#print svc_desc

@defer.inlineCallbacks
def test_service_instance_reg(self):
Expand All @@ -59,7 +59,7 @@ def test_service_instance_reg(self):
sup = yield self._spawn_processes(services, sup=self.sup)

play_desc = yield self.src.register_service_instance(sup.child_procs[1])
print play_desc
#print play_desc



Expand Down
2 changes: 1 addition & 1 deletion ion/services/sa/test/test_instrument_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_resource_reg(self):
res3 = yield self.irc.get_instrument_type(ref)

self.assertEqual(res3.tau,-909.0)
print res3
#print res3



Expand Down

0 comments on commit b93d956

Please sign in to comment.