Skip to content

Commit ef0de11

Browse files
- tests passing.
1 parent f30daaf commit ef0de11

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

test/python/flask/gcp/app.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,7 @@ def log_request_info():
1616

1717
@app.route('/v1/projects/testing-project-three/locations/global/keyRings/testing-three/cryptoKeys', methods=['GET'])
1818
def v1_projects_testing_project_three_locations_global_keyRings_testing_three_cryptoKeys():
19-
response = {
20-
"cryptoKeys": [
21-
{
22-
"name": "projects/testing-project-three/locations/global/keyRings/testing-three/cryptoKeys/demo-key",
23-
"primary": {
24-
"state": "ENABLED",
25-
"createTime": "2024-05-22T14:00:00.000000000Z"
26-
},
27-
"purpose": "ENCRYPT_DECRYPT"
28-
}
29-
]
30-
}
31-
return jsonify(response)
19+
return render_template('route_1_template.json'), 200, {'Content-Type': 'application/json'}
3220

3321
@app.route('/v1/projects/testing-project-three/locations/australia-southeast2/keyRings/big-m-testing-three/cryptoKeys', methods=['GET'])
3422
def v1_projects_testing_project_three_locations_australia_southeast2_keyRings_big_m_testing_three_cryptoKeys():

0 commit comments

Comments
 (0)