~gz/goose/novaservice_preserve_negative_ports

Viewing all changes in revision 68.

  • Committer: Tarmac
  • Author(s): Ian Booth
  • Date: 2013-02-08 02:38:12 UTC
  • mfrom: (66.1.7 hpopenstack)
  • Revision ID: tarmac-20130208023812-llhkeo6vitwmf3co
[r=wallyworld] Add HP Cloud support

A few major changes here. HP Cloud sends many core data structures over the wire with int IDs rather than string.
It also lacks a security groups API but instead adds the groups to the server detail record.

To make everything work in the least invasive way, I added custom json (un)marshallers to the affected data structures. The affected
data structures are Entity, ServerDetail, FloatingIP, FlavorDetail. The approach allows the built in marshalling to be used for everything except
the IDs, which are converted from int or string as required.

The live tests are enhanced to allow them to be run against HP Cloud or Canonistack as required:
go test -gocheck.v -live -vendor canonistack
or
go test -gocheck.v -live -vendor hpcloud

The local tests are configured to run twice - once with nemric ids and one with string ids.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: