Commit Graph

384 Commits

Author SHA1 Message Date
Monty Taylor 7609b0f29b Retire stackforge/aviator 2015-10-17 16:00:27 -04:00
Mark Maglana 27731a18b9 Define inflections only when they're not already defined
This is so that Aviator doesn’t step on ActiveSupport’s toes in case
it’s already loaded into memory.

This is not the best solution since Aviator’s implementation may
diverge from ActiveSupport’s implementation at some point. For
now, this will have to do.

Change-Id: Iaf99d9499394c4a5ce1c0141f1a68492bb2f3191
2014-06-06 10:30:26 -07:00
Mark Maglana 47c986be65 Remove activesupport dependency
Replace activesupport/inflection calls with our own,
Aviator-specific implementation.

Change-Id: I4e95f0b95ebc9eae5486fdc8ec0eab66bf00b7b9
2014-06-05 20:50:57 -07:00
Mark Maglana 4d920c83c2 Minor updates to LICENSE and README
Change-Id: Ib7006fa8839b6f512f217962b4a6212fa07a490d
2014-06-03 22:08:36 -07:00
Mark Maglana 53e09793f5 Bump version to v0.0.7
Change-Id: Ic970ed3e44d349647783be9911b97459c7e8ea74
2014-06-03 21:51:58 -07:00
Mark Maglana 1031592498 Stop requiring HashWithIndifferentAccess
Change-Id: I4bf5f9c811f65afd051ae6b254ce60218c8199dd
2014-06-03 21:10:40 -07:00
Mark Maglana 648522311e Initialize with Hash
Change-Id: Ia0dd0aa6eb318cee9956d4199cba39089f148e58
2014-06-03 20:01:38 -07:00
Mark Maglana 1ebe99e41a Limit metadata to 1 to avoid Ruby 1.8 incompatibility
Ruby 1.8 implements Hash in a different way internally compared to
Ruby 1.9 so Hash#first will behave differently. Limiting thee body of
these cassette entries to one will avoid that problem.

Change-Id: Ie575ca424285a3ecc8aff9d909095c7622648c5c
2014-06-03 18:14:09 -07:00
Mark Maglana f752c17b1e Show VCR logs after travis job runs
Change-Id: Icc05a18c7bcb910bf548ee4e9ad774914ba5ccf0
2014-06-03 17:26:03 -07:00
Mark Maglana 1da4d14c01 Show aviator log after Travis run
Change-Id: Ia1278704701cbc448deaad208ec7cda197c084a5
2014-06-03 17:25:28 -07:00
Mark Maglana 54a6fde6df Implement Hashish#to_s
Change-Id: I469a565960125f473e1e3fcf1c9cb9be756ea29e
2014-06-03 11:58:49 -07:00
Mark Maglana eae591eee9 Add lib path to load path if it's not already there
Change-Id: I78430112a63a97c665ef0a50771b61c4a10e76da
2014-06-03 11:34:18 -07:00
Mark Maglana ac7171130b Multiple changes to support Ruby 1.8.7
* Fix installation in Ruby 1.8.x

* Replace new-style hash syntax with classic hashrocket style syntax since
  the new-style (e.g. key: value) syntax is not recognized in Ruby 1.8. Let’s
  stick to the hashrocket style (e.g. :key => value) style instead.

* Backport Ruby 1.9 Module methods

* Remove dependency from HashWithIndifferentAccess and use our own
  Hash-like implementation called Hashish

* Remove "\ " character sequences from JSON string when running in 1.8
  since the JSON gem in that env doesn't support it

* Add line continuations since this is not automatic in 1.8

* Remove 1.9-specific regex patterns

* Convert cassette bodies into JSON objects before comparing with the request
  body since a serialized Hash in 1.8 looks different from that of 1.9 because
  of their internal implementation. Specifically, Ruby 1.9 Hashes preserve
  insertion order whereas 1.8 Hashes does not.

Change-Id: I3acf8bb915418ba2416935291f821e99de6fc324
2014-06-03 10:00:31 -07:00
Mark Maglana b4147172c1 Stop tracking .ruby-gemset and .ruby-version
Change-Id: Iac84738e3903481cb9310e2f646c689444f62305
2014-06-02 19:34:06 -07:00
Mark Maglana 18163f8659 Multiple fixes to make tests pass in Zuul
* Relax the version requirement for bundler

* Use SpecReporter when running in CI

* Don’t require pry when running in CI

* Only include Coveralls if running in Travis

* Don’t include .bundled_gems/ in coverage report

Change-Id: I79b8ea741ce783aa73b4301c52d2021fe2d1b81d
2014-05-30 23:20:07 -07:00
Mark Maglana f7a00dca77 Merge pull request #88 from relaxdiego/fix/travis 2014-01-14 22:08:42 -08:00
Mark Maglana 073e0f0046 Fix tests
VCR does not support the latest version of Faraday.
This forces the use of Faraday 0.8.8 in the meantime.
2014-01-14 22:05:43 -08:00
Mark Maglana 6be8a410c5 Merge branch 'feature/volume_all_tenants'
This implements the all_tenants feature for querying
the volume service to get all volumes from all tenants.
2014-01-13 13:04:17 -08:00
Mark Maglana 67d35eb240 Comply with Travis Ci warning 2014-01-13 12:39:40 -08:00
Mark Maglana 8b64cd284e Add test for the all_tenants parameter 2014-01-13 11:58:15 -08:00
Mark Maglana 6daa7367a3 Differentiate between admin and member session
We will use the admin session for the all_tenants test.
2014-01-13 11:57:31 -08:00
Mark Maglana e3c6a9ef96 Fix spacing between methods/examples for readability 2014-01-13 11:36:48 -08:00
Mark Maglana a7e7b202f6 Update test to recognize all_tenants parameter 2014-01-13 11:31:02 -08:00
Stephen Paul Suarez 6c80d77e50 support all_tenants 2014-01-13 16:09:57 +08:00
Mark Maglana 50e302f5fb Merge pull request #85 from alvingarcia/feature/84
[image] Add list_public_images request
2013-12-17 17:42:19 -08:00
Alvin Garcia d219ce3018 [image] Add list_public_images request 2013-12-17 16:30:56 +08:00
Mark Maglana 490a3d2bb0 Merge pull request #83 from alvingarcia/update/54 2013-12-02 09:13:49 -08:00
Alvin Garcia dfc6b9b658 Send all optional params on create volume 2013-12-02 18:22:38 +08:00
Mark Maglana aedb746a6c Merge pull request #80 from relaxdiego/fix/79
Improve logging
2013-11-05 15:02:59 -08:00
Mark Maglana 974c87ab4b Improve logging
Logging was very sparse and needed more info regarding request
and response body to be more useful. This change adds that capability.
2013-11-05 14:45:45 -08:00
Mark Maglana 8996c6cc8b Use notification center when running on OS X
Otherwise, use Growl.
2013-11-05 11:41:04 -08:00
Mark Maglana 5b0a1d7099 Improve error message displayed when environment.yml is not found. 2013-11-05 11:21:20 -08:00
Mark Maglana 9854013076 Merge pull request #77 from relaxdiego/fix/get_tenant_by_id
Fix/get tenant by
2013-10-08 12:09:10 -07:00
Mark Maglana a9bd9a1f7f Use base_url method for get_tenant_by_id 2013-10-08 12:05:31 -07:00
Mark Maglana 94e072ef29 Reprioritize list of references for base URL
Always look for base_url and then session data before
falling back to auth_service information from the config.
2013-10-08 12:05:15 -07:00
Mark Maglana b221208a2a Merge pull request #76 from alvingarcia/feature/14
Image/Server metadata requests for single metadata item
2013-10-08 09:27:08 -07:00
Alvin Garcia 97966fd92f [compute] Add delete_server_metadata_item request 2013-10-08 13:34:08 +08:00
Alvin Garcia 54dc07e7ed [compute] Add delete_image_metadata_item request 2013-10-08 13:30:20 +08:00
Alvin Garcia 239b53dc15 [compute] Add get_server_metadata_item request 2013-10-08 13:23:50 +08:00
Alvin Garcia 39029bd102 [compute] Add get_image_metadata_item request 2013-10-08 13:23:40 +08:00
Alvin Garcia 870b4de3a4 Follow standard hash format 2013-10-08 11:39:32 +08:00
Mark Maglana d98fd7277b Merge pull request #72 from alvingarcia/feature/14
Image/Server Metadata
2013-10-07 20:21:36 -07:00
Mark Maglana 02d826e15e Merge pull request #75 from relaxdiego/fix/74
Add bootstrap auth info when validating session
2013-10-07 16:52:33 -07:00
Mark Maglana 496d8c1da7 Add bootstrap auth info when validating session
Without the bootstrap info, service will try to look for endpoints
the usual way (via service catalog) which will be empty when
using default tokens. This fixes that problem.
2013-10-07 16:50:06 -07:00
Mark Maglana b944328ecd Merge pull request #73 from relaxdiego/feature/get_tenant
Add get_tenant_by_id request
2013-10-07 14:56:35 -07:00
Mark Maglana 93af96ebd1 Add get_tenant_by_id request 2013-10-07 14:51:15 -07:00
Alvin Garcia cc331a28a2 Update cassettes
Setup difference used:
  - local devstack
  - different tenant from openstack admin tenant in environment.yml
2013-10-07 18:29:32 +08:00
Alvin Garcia 7c83b441b8 [compute] Add update_server_metadata request 2013-10-07 16:34:04 +08:00
Alvin Garcia 80940144f8 [compute] Add update_image_metadata request 2013-10-07 16:33:18 +08:00
Alvin Garcia c2456615a4 [compute] Add set_server_metadata request 2013-10-07 16:32:41 +08:00