Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ Configuring Jenkins and Docker.
Three jobs : test-build-deploy.
SonarQube
Creating new ocker Image and pushing on dockerhub.
Using docker compose to run multi containers.
Final touch
Once Again
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def create_app():
app = Flask(__name__)
@app.route('/')
def home():
return 'Hey Guys ! This is my python App1'
return 'Hey Guys ! This is my python App12'

return app

Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sonar.projectKey=gfg20pythonci-cd
sonar.ws.timeout=600

2 changes: 1 addition & 1 deletion test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def client(app):
def test_home(client):
response = client.get('/')
assert response.status_code == 200
expected_text = 'Hey Guys ! This is my python App1'
expected_text = 'Hey Guys ! This is my python App12'
print(response.data)
assert expected_text.encode() == response.data