mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-31 10:39:30 +00:00 
			
		
		
		
	 63a55437ae
			
		
	
	
		63a55437ae
		
			
		
	
	
	
	
		
			
			* feat: implemented load test logic * style: ran python linting * fix: added locust dependency in test * fix: skip locust in 3.8 as not supported * fix: update gcsfs version * fix: revert gcsfs versionning * fix: fix gcsf version to 2023.10 * fix: dagster graphql and gx versions * fix: dagster version to 1.8 for py8 compatibility * fix: fix clickhouse to 0.2 as 0.3 requires SQA 2+ * fix: revert changes from main * fix: revert changes compared to main
		
			
				
	
	
		
			23 lines
		
	
	
		
			556 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			556 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| """Utils functions for load testing."""
 | |
| 
 | |
| import sys
 | |
| from typing import List
 | |
| 
 | |
| import pytest
 | |
| from locust import main
 | |
| 
 | |
| TEST_CASE_RESOURCE_PATH = "/api/v1/dataQuality/testCases"
 | |
| TEST_CASE_RESULT_RESOURCE_PATH = "/api/v1/dataQuality/testCases/testCaseResults"
 | |
| 
 | |
| 
 | |
| def run_load_test(args: List[str]):
 | |
|     """Test test case result resource"""
 | |
|     original_argv = sys.argv
 | |
|     try:
 | |
|         sys.argv = args
 | |
|         with pytest.raises(SystemExit) as excinfo:
 | |
|             main.main()
 | |
|         assert excinfo.value.code == 0
 | |
|     finally:
 | |
|         sys.argv = original_argv
 |