Skip to content

Commit 94f0c5f

Browse files
committed
test(speech-to-text): test update for speech-to-text on WatsonAutoConfig
1 parent 224fc41 commit 94f0c5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public void watsonBeanConfigFromEnvironment() {
6161
assertNotNull(speechToText);
6262
assertEquals(url, speechToText.getServiceUrl());
6363

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

0 commit comments

Comments
 (0)