Skip to content

Commit 37fc54d

Browse files
authored
Merge pull request #424 from Temikus/pr-418
Add a simple test for client options
2 parents 597e0f7 + 015571e commit 37fc54d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
require "helpers/integration_test_helper"
2+
3+
class TestComputeClient < FogIntegrationTest
4+
def test_client_options
5+
# XXX This is a very rudimentary test checking that proxy option is applied
6+
client_options = { proxy_url: "https://user:password@host:8080" }
7+
connection = Fog::Compute::Google.new(google_client_options: client_options)
8+
9+
err = assert_raises(ArgumentError) { connection.servers.all }
10+
assert_match(/unsupported proxy/, err.message)
11+
end
12+
end

0 commit comments

Comments
 (0)