mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	Co-authored-by: rasnar <11248833+Rasnar@users.noreply.github.com> Co-authored-by: Sergio Gómez Villamor <sgomezvillamor@gmail.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			401 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			401 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from datahub.ingestion.source.sql.druid import DruidConfig
 | 
						|
 | 
						|
 | 
						|
def test_druid_uri():
 | 
						|
    config = DruidConfig.parse_obj({"host_port": "localhost:8082"})
 | 
						|
 | 
						|
    assert config.get_sql_alchemy_url() == "druid://localhost:8082/druid/v2/sql/"
 | 
						|
 | 
						|
 | 
						|
def test_druid_get_identifier():
 | 
						|
    config = DruidConfig.parse_obj({"host_port": "localhost:8082"})
 | 
						|
 | 
						|
    assert config.get_identifier("schema", "table") == "table"
 |