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
|
# Test Flask app imports and basic functionality
|
||||||
echo "🧪 Testing Flask application..."
|
echo "🧪 Testing Flask application..."
|
||||||
python -c "
|
python -c "
|
||||||
import sys
|
import sys
|
||||||
sys.path.append('.')
|
sys.path.append('.')
|
||||||
from app import app
|
from app import app
|
||||||
print('✅ Flask app import successful')
|
print('✅ Flask app import successful')
|
||||||
|
|
||||||
# Test app creation
|
# Test app creation
|
||||||
with app.test_client() as client:
|
with app.test_client() as client:
|
||||||
response = client.get('/health')
|
response = client.get('/health')
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
print('✅ Health endpoint test passed')
|
print('✅ Health endpoint test passed')
|
||||||
print(f'Health response: {response.get_json()}')
|
print(f'Health response: {response.get_json()}')
|
||||||
"
|
"
|
||||||
|
|
||||||
echo "✅ Application tests completed"
|
echo "✅ Application tests completed"
|
||||||
|
|||||||
Reference in New Issue
Block a user