File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/test/java/com/ibm/watson/developer_cloud/spring/boot/test Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 3737@ TestPropertySource (properties = { "watson.speech-to-text.enabled=true" })
3838public 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}
You can’t perform that action at this time.
0 commit comments