1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

36 commits

Author SHA1 Message Date
Paul Thornthwaite
43c4531763 [core] Make the wait timeout truly global
The Rackspace helper changed the Fog.timeout global for all live tests
so the core test which expected "600" failed since it was now "2000"

Since it is a global setting it has been moved to the global test helper

It can now also be controlled by the FOG_TEST_TIMEOUT env variable.
2014-02-19 09:37:25 +00:00
Kevin Menard
ee7d1d736c Bound the 'myns' XML namespace to keep Nokogiri on JRuby happy.
It appears JRuby's Nokogiri implementation is strict about using unbound XML namespaces.  Since a well-formed doc should have bound namespaces, I just added it here.
2013-10-24 18:16:13 -04:00
Kevin Menard
9b0de600be Added a JRuby workaround in a test that's failing due to a JRuby bug. 2013-10-24 15:17:51 -04:00
Kyle Rames
bda470486a [core] updated UUID to use it's own UUID implementation if one was not available from the ruby lib. 2013-10-11 07:51:23 -05:00
Kyle Rames
773104e9dc [core] removing uuidtools dependency; added Fog::UUID class 2013-10-10 15:18:43 -05:00
Kyle Rames
83068af68b [core] exclude :headers from symbolization for real this time; added better tests; Thanks @burns! 2013-08-13 15:57:08 -05:00
Kyle Rames
1054c9f467 [core] excluded :headers hash from symbolize_credentials in order to properly pass headers onto Excon 2013-08-08 14:33:38 -05:00
mlincoln
6e166ad323 random ip address support 2013-07-23 18:07:04 -03:00
Paul Thornthwaite
5a33ff76b1 [core] Test Core version not deprecated one
Should have tested Fog::Core::Connection since Fog::Connection is the
backwards compatible one.

Also adds a bit more documentation.
2013-06-25 14:31:18 +01:00
Paul Thornthwaite
b131269f21 [core] Adds initial Fog::Connection tests
Basic tests to ensure `Fog::Connection` is tested based on it's current
interface.
2013-06-25 13:51:53 +01:00
Erik Michaels-Ober
f2bd2404d1 Revert "Updated gem spec to require json rather than multi_json"
This reverts commits: 66638b25d7,
3f0314dbd1, and
18ce4b7eca.

Since google-api-client was added as a dependency in afa9b025e9,
multi_json is a de facto dependency of fog, so this is a needless layer.
If #1034 is still an issue, I'd be happy to ship a version of multi_json
that requires rubygems >= 1.3.5.
2013-05-06 04:05:36 -07:00
Kyle Rames
7115207dc6 [core] fixing brittle json test 2013-04-03 15:23:15 -05:00
Kyle Rames
18ce4b7eca Added tests for Fog::JSON; Added Fog::JSON::LoadError class; Updated all MultiJson references to Fog::JSON 2013-04-03 10:37:03 -05:00
geemus
fd126aa457 fix for user agent tests excon usage 2013-02-22 09:45:33 -06:00
Rupak Ganguly
03bf99d9d3 Merge changes from upstream fog 1.8.0 and later updates. 2013-01-18 15:06:41 -05:00
Tomasz Bak
31dac0b63b unit test for the XML namespace handling workaround 2013-01-17 13:23:06 -06:00
Kyle Rames
3d306b6650 Updated Fog.wait_for to throw a timeout exception instead of returning false #1368 2012-12-12 12:14:44 -06:00
Rupak Ganguly
d7f35430ab Add user_agent string to the core fog connection with corresponding tests. 2012-08-13 13:06:17 -04:00
geemus
1a3461d5c6 remove specs (likely from a bad merge) 2012-07-12 16:23:29 -05:00
Hunter Haugen
d25b39405f [core] @credential should always be a symbol
Similar to #504, say your ~/.fog had multiple stanzas:

```yaml
:default:
  :aws_access_key_id: aaa
test:
  :aws_access_key_id: bbb
:prod:
  :aws_access_key_id: ccc
```

By default, fog will look for either the credential *symbol* `:default` or for the *string* stored in `FOG_CREDENTIAL` (in `lib/fog/core/credentials.rb` method `self.credential`). When the fog credentials file given above is read in, it’s passed through `self.symbolize_credentials` which makes *symbols* out of all the keys (so `prod`, `test`, and `default` will all be symbols) and saves the list to credentials then looks for `credentials[credential]` which is indexing a string in a hash of symbols.

Any value that `@credential` is set to should be a symbol, because the hash keys will only be symbols.
2011-11-16 09:51:43 -08:00
Nathan Sutton
eb86ba780b Adding a method to unmock Fog. Addresses issue #594 2011-11-09 11:30:33 -08:00
Peter Meier
321783ff56 [core] treat boolean values as a boolean 2011-10-03 19:36:38 +02:00
geemus
d3073af15a [core] properly fix credentials tests 2011-09-23 16:44:39 -05:00
geemus
1e72d3b600 Revert "[core] make sure credentials tests properly reset after completion"
This reverts commit 7ac7bbe3af.
2011-09-23 16:43:34 -05:00
geemus
7ac7bbe3af [core] make sure credentials tests properly reset after completion 2011-09-23 16:31:18 -05:00
Aaron Suggs
e48ac6e8c3 [core] Allow FOG_CREDENTIAL env variable for config
Say your ~/.fog had multiple stanzas:
    :default:
      :aws_access_key_id: aaa
    test:
      :aws_access_key_id: bbb
    prod:
      :aws_access-key_id: ccc

Choose a stanza with an environment variable:
   $ FOG_CREDENTIAL=prod fog
2011-09-10 13:42:55 -04:00
Brian Hartsock
72778886a1 Fixed #444 - Unable to squash kvp with false values 2011-07-20 18:18:05 -04:00
Wesley Beary
ddfe5d5b34 Merge pull request #419 from jc00ke/master
Fixes non-absolute exception for File.expand_path
2011-07-13 11:40:48 -07:00
jc00ke
64425e71e0 Return nil if HOME is non-absolute. Fixes #397 2011-07-13 11:17:00 -07:00
Dylan Egan
47ca2bc45a Clean up timeout and add tests. 2011-07-12 13:05:54 +10:00
Aaron Suggs
0e5ed656c3 [core] Fix responds_to test helper.
As per discussion on #305.

Also clean up output for parser test.
2011-05-17 17:37:56 -04:00
Aaron Suggs
e0b8606d85 [core] Fixed credential tests
Tests behavior when ENV['HOME'] is not a directory.
2011-05-13 18:14:47 -04:00
Aaron Suggs
ff72d4c647 [core] Add test for Fog::Parsers::Base
Test multiline and nested values.
2011-05-12 17:48:44 -04:00
Lee Jensen
8dfc9beb0d Deal with missing FOG_RC/HOME env vars better 2011-03-30 17:50:35 -06:00
geemus
a5d65fc26e [core] fix attributes to properly accomodate aliases 2010-12-16 11:25:31 -08:00
geemus
b689650666 more attributes spec to tests, fix attribute names 2010-12-15 14:05:55 -08:00