-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Add timeout and tests for curb, also added the gem curb that was not part of selenium #14285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
d83ff7e
Add timeout and tests for curb, also added the gem curb that was not …
aguspe 7ff5293
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe ab7c387
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 7723d51
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 21703f8
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 01208da
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 0a1be6d
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe b7bef9f
Update gemfile lock
aguspe aca97ab
Merge remote-tracking branch 'origin/rb_fix_curb_http_client' into rb…
aguspe f37500a
Gemfile updated and loaded on spec
aguspe ea55716
Merge branch 'trunk' into rb_fix_curb_http_client
diemol 97d2608
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 8f1f273
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe ef41b67
Update checksums
aguspe 7fea303
Merge remote-tracking branch 'origin/rb_fix_curb_http_client' into rb…
aguspe 1ab7a34
Review comments updated
aguspe c6ed50d
Remove curb from jruby reference
aguspe 473a913
Guard for platforms not supporting curb
aguspe 0066cb2
Use only darwin as a platform for curb
aguspe ee8edba
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 4b5c9e6
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 5e12850
Add conditional for curb
aguspe 3372065
Add libcurl installation
aguspe 60aa9fe
Update checksums and bazel lib curl step
aguspe 6738d3c
Remove extra space line
aguspe 0b39528
FIx format and add windows curl
aguspe ff7941c
Fix chocolatey
aguspe 62e48c0
Fix format
aguspe 9da8827
Update module and try to set curl dir
aguspe f7c4c7a
Update module and try to set curl dir
aguspe deb0ede
Change curl config
aguspe cb333cd
Try with bazel
aguspe 8301eb8
Try with bazel
aguspe 0a2d057
Use msys to install curl
aguspe be8f39b
Using with instead of run
aguspe 458959c
Install curl library
aguspe 0422961
Add libyaml
aguspe ada6c33
Run bazel format
aguspe 9710a13
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe f34a245
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 42918b8
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 0bd2a2a
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 0eeba47
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe be797b2
Update require curl on the curl spec
aguspe cf12ce2
Merge branch 'trunk' into rb_fix_curb_http_client
aguspe 7103eca
Update rescue with comment
aguspe 3f617b0
Require curb added again
aguspe e6158a9
Require curb added again
aguspe 42ab4a2
Update guard clause
aguspe 0559ebe
Update to RUBY_PLATFORM
aguspe 05c77ad
Try with ruby engine
aguspe e1674f7
Update to remove truffle ruby
aguspe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| module Curl | ||
| class Easy | ||
| def initialize: () -> void | ||
| end | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| # Licensed to the Software Freedom Conservancy (SFC) under one | ||
| # or more contributor license agreements. See the NOTICE file | ||
| # distributed with this work for additional information | ||
| # regarding copyright ownership. The SFC licenses this file | ||
| # to you under the Apache License, Version 2.0 (the | ||
| # "License"); you may not use this file except in compliance | ||
| # with the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, | ||
| # software distributed under the License is distributed on an | ||
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| # KIND, either express or implied. See the License for the | ||
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| require File.expand_path('../../spec_helper', __dir__) | ||
| return if Selenium::WebDriver::Platform.jruby? || Selenium::WebDriver::Platform.truffleruby? | ||
|
|
||
| require 'selenium/webdriver/remote/http/curb' | ||
| require 'curb' | ||
|
|
||
| module Selenium | ||
| module WebDriver | ||
| module Remote | ||
| module Http | ||
| describe Curb do | ||
| subject(:curb) { described_class.new } | ||
| it 'assigns default timeout to 0.0' do | ||
| http = curb.send :client | ||
|
|
||
| expect(http.timeout).to eq 0.0 | ||
| end | ||
|
|
||
| it 'sets the timeout' do | ||
| curb.timeout = 20 | ||
| expect(curb.timeout).to eq 20 | ||
| end | ||
|
|
||
| describe '#initialize' do | ||
| let(:curb) { described_class.new(timeout: 10) } | ||
|
|
||
| it 'is initialized with timeout' do | ||
| expect(curb.timeout).to eq 10 | ||
| end | ||
| end | ||
| end | ||
| end # Http | ||
| end # Remote | ||
| end # WebDriver | ||
| end # Selenium | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.