package engine_router

import (
	"context"
	"testing"
)

func TestParseAndDetectDataSourceAzureShortABFSSRegion(t *testing.T) {
	info, err := ParseAndDetectDataSource(context.Background(), "abfss://o11y-prod-shared-japaneast/deltalake/1372813089209296719/019e1fd9-8917-75d3-a422-1be241ceda9c/slowlogs/")
	if err != nil {
		t.Fatalf("ParseAndDetectDataSource() error = %v", err)
	}
	if info.Vendor != "azure" {
		t.Fatalf("vendor = %q, want azure", info.Vendor)
	}
	if info.Region != "japaneast" {
		t.Fatalf("region = %q, want japaneast", info.Region)
	}
}
