Skip to content

resolves #308 #309

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 5 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dotnet/Simple.Sauce/SauceDriver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class SauceDriver : ISauceRemoteDriver
private IWebDriver _driver;
public IWebDriver CreateRemoteWebDriver(DriverOptions browserOptions)
{
_driver = new RemoteWebDriver(new Uri("https://ondemand.saucelabs.com/wd/hub"),
_driver = new RemoteWebDriver(new Uri("https://ondemand.us-west-1.saucelabs.com/wd/hub"),
browserOptions.ToCapabilities(), TimeSpan.FromSeconds(600));
return _driver;
}
Expand Down Expand Up @@ -71,4 +71,4 @@ public ITargetLocator SwitchTo()
public string CurrentWindowHandle { get; }
public ReadOnlyCollection<string> WindowHandles { get; }
}
}
}
2 changes: 1 addition & 1 deletion dotnet/SimpleSauce.Test/BaselineSeleniumAcceptanceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void WithoutSauceSession_ShouldWork()
};
chromeOptions.AddAdditionalOption("sauce:options", sauceOptions);

var driver = new RemoteWebDriver(new Uri("https://ondemand.saucelabs.com/wd/hub"),
var driver = new RemoteWebDriver(new Uri("https://ondemand.us-west-1.saucelabs.com/wd/hub"),
chromeOptions.ToCapabilities(), TimeSpan.FromSeconds(30));
driver.Navigate().GoToUrl("https://www.google.com");
driver.SessionId.Should().NotBeNull();
Expand Down
5 changes: 5 additions & 0 deletions python/CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
==========================

1.5.0 - July, 2024
--------------------

* Update links data centers links

1.3.0 - Jun 15, 2022
--------------------

Expand Down
5 changes: 2 additions & 3 deletions python/saucebindings/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@

data_centers = {
'us-west': 'ondemand.us-west-1.saucelabs.com',
'us-east': 'ondemand.us-east-1.saucelabs.com',
'eu-central': 'ondemand.eu-central-1.saucelabs.com',
'apac-southeast': 'ondemand.apac-southeast-1.saucelabs.com'
'us-east': 'ondemand.us-east-4.saucelabs.com',
'eu-central': 'ondemand.eu-central-1.saucelabs.com'
}


Expand Down
4 changes: 4 additions & 0 deletions ruby/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.5.0 - July, 2024

* Update links to all data centers

### 1.3.0 - June 15, 2022

* Fix links to work all data centers
Expand Down
5 changes: 2 additions & 3 deletions ruby/lib/sauce_bindings/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
module SauceBindings
class Session
DATA_CENTERS = {US_WEST: 'us-west-1',
US_EAST: 'us-east-1',
EU_CENTRAL: 'eu-central-1',
APAC_SOUTHEAST: 'apac-southeast-1'}.freeze
US_EAST: 'us-east-4',
EU_CENTRAL: 'eu-central-1'}.freeze

attr_writer :url
attr_reader :driver, :options, :data_center, :session_id
Expand Down
11 changes: 1 addition & 10 deletions ruby/spec/integration/desktop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module SauceBindings
driver = @session.start

expect(driver).not_to be_nil
expect(@session.url).to include('us-east-1')
expect(@session.url).to include('us-east-4')
end

it 'executes on EU Central' do
Expand All @@ -34,15 +34,6 @@ module SauceBindings
expect(@session.url).to include('eu-central-1')
end

it 'executes on APAC' do
pending 'Adding Data Center to Sauce Whisk'
@session = Session.new
@session.data_center = :APAC_SOUTHEAST
driver = @session.start

expect(driver).not_to be_nil
expect(@session.url).to include('apac-southeast-1')
end
end

describe '#stop_network' do
Expand Down
2 changes: 1 addition & 1 deletion ruby/spec/unit/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def expect_request(caps = default_capabilities)
session = Session.new
session.data_center = :US_EAST

expect(session.url).to eq('https://ondemand.us-east-1.saucelabs.com/wd/hub')
expect(session.url).to eq('https://ondemand.us-east-4.saucelabs.com/wd/hub')
end

it 'raises exception if data center is invalid' do
Expand Down
2 changes: 1 addition & 1 deletion website/docs/DATA_CENTER.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ sidebar_label: Data Center
While the Sauce Options class allows you to specify how you want your tests to run,
you may also want to adjust where your tests are run with the Sauce Session class.
By default, tests are executed on our US West Coast Data Center.
You can Specify US East (Headless only), Central EU, or APAC data centers with the Session class.
You can Specify US East (real mobile devices only), or Central EU data centers with the Session class.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove reference to US East since bindings don't support it, and we removed it from bindings

Here's an example of setting the data center to EU:

import Tabs from '@theme/Tabs';
Expand Down
1 change: 0 additions & 1 deletion website/src/theme/Footer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ function Footer() {
<li><a className="link" href="https://saucelabs.com/platform/real-device-cloud" target="" data-ta="click" data-tc="Text" data-tl="">Real Device Cloud</a></li>
<li><a className="link" href="https://saucelabs.com/platform/mobile-emulators-and-simulators" target="" data-ta="click" data-tc="Text" data-tl="">Emulators &amp; Simulators</a></li>
<li><a className="link" href="https://saucelabs.com/platform/cross-browser-testing" target="" data-ta="click" data-tc="Text" data-tl="">Cross-browser Testing</a></li>
<li><a className="link" href="https://saucelabs.com/platform/sauce-headless" target="" data-ta="click" data-tc="Text" data-tl="">Sauce Headless</a></li>
</ul>
</div>
</div>
Expand Down
Loading