automated terminal push
This commit is contained in:
22
infrastructure/services/Jenkinsfile
vendored
22
infrastructure/services/Jenkinsfile
vendored
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user