Skip to content

Commit

Permalink
Add support for test shards (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
fjakobs authored Jul 25, 2023
1 parent 86d991f commit 6a67a75
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/databricks-vscode/src/utils/urlUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function normalizeHost(host: string): URL {
}
if (
!url.hostname.match(
/(\.databricks\.azure\.us|\.databricks\.azure\.cn|\.azuredatabricks\.net|\.gcp\.databricks\.com|\.cloud\.databricks\.com)$/
/(\.databricks\.azure\.us|\.databricks\.azure\.cn|\.azuredatabricks\.net|\.gcp\.databricks\.com|\.cloud\.databricks\.com|\.dev\.databricks\.com)$/
)
) {
throw new Error("Not a Databricks host");
Expand All @@ -43,5 +43,7 @@ export function isGcpHost(url: URL): boolean {
}

export function isAwsHost(url: URL): boolean {
return !!url.hostname.match(/\.cloud\.databricks\.com$/);
return !!url.hostname.match(
/(\.cloud\.databricks\.com|\.dev\.databricks\.com)$/
);
}

0 comments on commit 6a67a75

Please sign in to comment.