Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add py3-flask tests #14498

Merged
merged 1 commit into from Mar 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 24 additions & 0 deletions py3-flask.yaml
Expand Up @@ -41,3 +41,27 @@ update:
enabled: true
release-monitor:
identifier: 3867

test:
environment:
contents:
packages:
- curl
environment:
FLASK_APP: "/tmp/flask_app.py"
pipeline:
- name: Test Flask Installation and Server Running Capability
runs: |
cat <<EOF > /tmp/flask_app.py
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello, World!'
EOF
export FLASK_APP=/tmp/flask_app.py
flask run &> /dev/null &
flask_pid=$!
sleep 2
curl -s "http://127.0.0.1:5000/" | grep -q "Hello, World!"