Skip to content

Commit

Permalink
DIV-8414 | Fix e2e test case by reading file
Browse files Browse the repository at this point in the history
  • Loading branch information
varadeth committed May 19, 2022
1 parent 5972e08 commit 0a78923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion e2e/test_certify_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,15 @@ def call_and_verify():
w3c_template = open(W3C_TEMPLATE)
ddcc_template = open(DDCC_TEMPLATE)
fields_key_path = json.load(open(FIELDS_KEY_PATH))
notification_templates = json.load(open(NOTIFICATION_TEMPLATES))

etcd = etcd3.client(host='etcd')
etcd.put('ICD', str(icd_data).replace("'", '"'))
etcd.put('VACCINE_ICD', str(vaccine_icd_data).replace("'", '"'))
etcd.put('W3C_TEMPLATE', str(w3c_template.read()))
etcd.put('DDCC_TEMPLATE', str(ddcc_template.read()))
etcd.put('certificateOptionalFieldsKeyPaths', str(fields_key_path).replace("'", '"'))
etcd.put('NOTIFICATION_TEMPLATES', str(NOTIFICATION_TEMPLATES).replace("'", '"'))
etcd.put('NOTIFICATION_TEMPLATES', str(notification_templates).replace("'", '"'))

certify_data = json.load(open(CERTIFY_REQUEST_BODY))[0]
certify_data["preEnrollmentCode"] = cid
Expand Down

0 comments on commit 0a78923

Please sign in to comment.