hub-cap/sneaky-pete — pull request #16 by TimSimpsonR (2011-10-28 19:14:37+00:00)
Title: Preliminary Integration work with Nova, switched to MySQL C lib

* Added a flags class mimicing the ones from Nova.
* Added a utils namespace with functions to get the address of devices, so the guest can find its IP address and ask the Nova database what it's name is.
* Changed the MySQL stuff to use the C libs rather than the C++ ones.
* Wrote integration tests for the new MySQL classes I had to write, as well as integration tests for the MySqlGuest and MySqlPreparer test.
* Began work to statically link the guest agent. Left a lot of commented out cruft in the Jamroot.jam file though... :(
* Got Nova and the Guest to communicate. If the guest replies to Nova and it isn't 100% correct, Nova silently swallows the error which is incredibly frustrating to figure out, so I changed the interface of the message handler and the code in receiver_daemon so that the format Nova expects will be assured.
* Changed the JSON stuff so that the to_string() method was on the JsonData base class where it belonged. Wrote some helper static methods on the JsonData class so we could create instances representing just a single element such as string or null or something.
* Added some cruft to Receiver, Sender, and the AMQP classes and changed them a little. Changed AMQP to send data as "application/json" which was necessary.
* Disabled tests which depended on a certain environment. Changed some tests to work in the Debian environment.