Skip to content

Commit 015571e

Browse files
committed
Add a simple test for client options
1 parent 42b8df5 commit 015571e

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)