Skip to content

Commit 224fc41

Browse files
committed
test(speech-to-text): test update for speech-to-text
1 parent 0ac8094 commit 224fc41

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/test/java/com/ibm/watson/developer_cloud/spring/boot/test/WatsonAutoConfigTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
@TestPropertySource(properties = { "watson.speech-to-text.enabled=true" })
3838
public class WatsonAutoConfigTest {
3939

40-
private static final String url = "http://watson.com/speech-to-text";
40+
private static final String url = "https://api.us-south.speech-to-text.watson.cloud.ibm.com";
4141
private static final String username = "sam";
4242
private static final String password = "secret";
4343

@@ -61,9 +61,6 @@ public void watsonBeanConfigFromEnvironment() {
6161
assertNotNull(speechToText);
6262
assertEquals(url, speechToText.getServiceUrl());
6363

64-
assertEquals(Authenticator.AUTHTYPE_BASIC, speechToText.getAuthenticator().authenticationType());
65-
BasicAuthenticator authenticator = (BasicAuthenticator) speechToText.getAuthenticator();
66-
assertEquals(username, authenticator.getUsername());
67-
assertEquals(password, authenticator.getPassword());
64+
assertEquals(Authenticator.AUTHTYPE_IAM, speechToText.getAuthenticator().authenticationType());
6865
}
6966
}

0 commit comments

Comments
 (0)