diff --git a/infrastructure/services/Jenkinsfile b/infrastructure/services/Jenkinsfile index 220aad2..031b09c 100644 --- a/infrastructure/services/Jenkinsfile +++ b/infrastructure/services/Jenkinsfile @@ -230,18 +230,18 @@ sonar.terraform.provider.aws=true # Test Flask app imports and basic functionality echo "๐Ÿงช Testing Flask application..." - python -c " - import sys - sys.path.append('.') - from app import app - print('โœ… Flask app import successful') +python -c " +import sys +sys.path.append('.') +from app import app +print('โœ… Flask app import successful') - # Test app creation - with app.test_client() as client: - response = client.get('/health') - assert response.status_code == 200 - print('โœ… Health endpoint test passed') - print(f'Health response: {response.get_json()}') +# Test app creation +with app.test_client() as client: +response = client.get('/health') +assert response.status_code == 200 +print('โœ… Health endpoint test passed') +print(f'Health response: {response.get_json()}') " echo "โœ… Application tests completed"