@@ -35,20 +35,20 @@ class SpeechToTextUnitTests: XCTestCase {
3535 let speechToTextSession = SpeechToTextSession ( authenticator: defaultTestAuthenticator)
3636
3737 // Default URLs value
38- XCTAssertEqual ( speechToTextSession. websocketsURL, " wss://stream.watsonplatform.net/ speech-to-text/api /v1/recognize " )
39- XCTAssertEqual ( speechToTextSession. serviceURL, " https://stream.watsonplatform.net/ speech-to-text/api " )
38+ XCTAssertEqual ( speechToTextSession. websocketsURL, " wss://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognize " )
39+ XCTAssertEqual ( speechToTextSession. serviceURL, " https://api.us-south. speech-to-text.watson.cloud.ibm.com " )
4040
4141 // Set websockets URL and verify serviceURL
42- speechToTextSession. websocketsURL = " wss://gateway -syd.watsonplatform.net/ speech-to-text/api /v1/recognize "
43- XCTAssertEqual ( speechToTextSession. serviceURL, " https://gateway -syd.watsonplatform.net/ speech-to-text/api " )
42+ speechToTextSession. websocketsURL = " wss://api.au -syd.speech-to-text.watson.cloud.ibm.com /v1/recognize "
43+ XCTAssertEqual ( speechToTextSession. serviceURL, " https://api.au -syd.speech-to-text.watson.cloud.ibm.com " )
4444
4545 // Trailing forward slash
46- speechToTextSession. websocketsURL = " wss://stream.watsonplatform.net/ speech-to-text/api /v1/recognize/ "
47- XCTAssertEqual ( speechToTextSession. serviceURL, " https://stream.watsonplatform.net/ speech-to-text/api " )
46+ speechToTextSession. websocketsURL = " wss://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognize/ "
47+ XCTAssertEqual ( speechToTextSession. serviceURL, " api.us-south. speech-to-text.watson.cloud.ibm.com " )
4848
4949 // http instead of https
50- speechToTextSession. websocketsURL = " ws://stream.watsonplatform.net/ speech-to-text/api /v1/recognize "
51- XCTAssertEqual ( speechToTextSession. serviceURL, " http://stream.watsonplatform.net/ speech-to-text/api " )
50+ speechToTextSession. websocketsURL = " ws://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognize "
51+ XCTAssertEqual ( speechToTextSession. serviceURL, " api.us-south. speech-to-text.watson.cloud.ibm.com " )
5252
5353 // Different base URL
5454 speechToTextSession. websocketsURL = " wss://example.com/speech-to-text/api/v1/recognize/v1/recognize "
@@ -60,16 +60,16 @@ class SpeechToTextUnitTests: XCTestCase {
6060 let speechToTextSession = SpeechToTextSession ( authenticator: defaultTestAuthenticator)
6161
6262 // Default URLs value
63- XCTAssertEqual ( speechToTextSession. websocketsURL, " wss://stream.watsonplatform.net/ speech-to-text/api/v1 /recognize " )
64- XCTAssertEqual ( speechToTextSession. tokenURL, " https://stream.watsonplatform.net /authorization/api/v1/token " )
63+ XCTAssertEqual ( speechToTextSession. websocketsURL, " wss://api.us-south. speech-to-text.watson.cloud.ibm.com /recognize " )
64+ XCTAssertEqual ( speechToTextSession. tokenURL, " https://api.us-south.speech-to-text.watson.cloud.ibm.com /authorization/api/v1/token " )
6565
6666 // Set websockets URL and verify tokenURL
67- speechToTextSession. websocketsURL = " wss://gateway -syd.watsonplatform.net/ speech-to-text/api /v1/recognize "
68- XCTAssertEqual ( speechToTextSession. tokenURL, " https://gateway -syd.watsonplatform.net /authorization/api/v1/token " )
67+ speechToTextSession. websocketsURL = " wss://api.au -syd.speech-to-text.watson.cloud.ibm.com /v1/recognize "
68+ XCTAssertEqual ( speechToTextSession. tokenURL, " https://api.au -syd.speech-to-text.watson.cloud.ibm.com /authorization/api/v1/token " )
6969
7070 // http instead of https
71- speechToTextSession. websocketsURL = " ws://stream.watsonplatform.net/ speech-to-text/api /v1/recognize "
72- XCTAssertEqual ( speechToTextSession. tokenURL, " http://stream.watsonplatform.net /authorization/api/v1/token " )
71+ speechToTextSession. websocketsURL = " ws://api.us-south. speech-to-text.watson.cloud.ibm.com /v1/recognize "
72+ XCTAssertEqual ( speechToTextSession. tokenURL, " http://api.us-south.speech-to-text.watson.cloud.ibm.com /authorization/api/v1/token " )
7373
7474 // Different base URL
7575 speechToTextSession. websocketsURL = " wss://example.com/speech-to-text/api/v1/recognize/v1/recognize "
0 commit comments