Skip to content

Commit ffb8043

Browse files
smoghe-bwclaude
andcommitted
Fix EndpointsApiTest OAuth credentials to use env vars
Use BW_CLIENT_ID and BW_CLIENT_SECRET from environment variables instead of hardcoded fake credentials, matching the pattern used by CallsApiTest and other unit tests. The OAuth token request hits the real auth server before reaching Prism, so fake credentials cause all 5 tests to fail with invalid_client errors. Generated from Claude9 with Claude Code Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f93fa18 commit ffb8043

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/test/java/com/bandwidth/sdk/unit/api/EndpointsApiTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
import com.bandwidth.sdk.ApiClient;
44
import com.bandwidth.sdk.ApiException;
55
import com.bandwidth.sdk.ApiResponse;
6-
import com.bandwidth.sdk.Configuration;
76
import com.bandwidth.sdk.api.EndpointsApi;
8-
import com.bandwidth.sdk.auth.HttpBasicAuth;
97
import com.bandwidth.sdk.model.CreateEndpointResponse;
108
import com.bandwidth.sdk.model.CreateEndpointResponseData;
119
import com.bandwidth.sdk.model.CreateWebRtcConnectionRequest;
@@ -34,7 +32,7 @@
3432
*/
3533
@SuppressWarnings("null")
3634
public class EndpointsApiTest {
37-
private static ApiClient oauthClient = new ApiClient("test-client-id", "test-client-secret", null);
35+
private static ApiClient oauthClient = new ApiClient(BW_CLIENT_ID, BW_CLIENT_SECRET, null);
3836
private static EndpointsApi api = new EndpointsApi(oauthClient);
3937

4038
@BeforeAll

0 commit comments

Comments
 (0)