Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test that was picking up configuration from the environment #287

Merged
merged 3 commits into from
May 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

import static org.junit.jupiter.api.Assertions.*;

import com.databricks.sdk.core.utils.Environment;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import org.junit.jupiter.api.Test;

public class DatabricksConfigTest {
Expand Down Expand Up @@ -60,7 +63,7 @@ public void testWorkspaceLevelOidcEndpointsWithAccountId() throws IOException {
"{\"authorization_endpoint\":\"https://test-workspace.cloud.databricks.com/oidc/v1/authorize\"}")) {
DatabricksConfig c =
new DatabricksConfig().setHost(server.getUrl()).setAccountId("1234567890");
c.resolve();
c.resolve(new Environment(new HashMap<>(), new ArrayList<String>(), "system"));
assertEquals(
c.getOidcEndpoints().getAuthorizationEndpoint(),
"https://test-workspace.cloud.databricks.com/oidc/v1/authorize");
Expand Down
Loading