diff --git a/ark-tools/tests.hurl b/ark-tools/tests.hurl new file mode 100644 index 0000000..839809c --- /dev/null +++ b/ark-tools/tests.hurl @@ -0,0 +1,36 @@ +POST {{host}}/v1/67375/stamp?subpublisher=XXX&indent=true +content-type: application/json +[ + { "id":"12345","value": true }, + { "id":"6789","value": true } +] + +HTTP 200 +[Asserts] +jsonpath "$[0].id" == "12345" +jsonpath "$[0].value" matches /ark:\/67375\/XXX-.{8}-./ +jsonpath "$[1].id" == "6789" +jsonpath "$[1].value" matches /ark:\/67375\/XXX-.{8}-./ + +POST {{host}}/v1/67375/stamp?subpublisher=XXX&indent=true +content-type: application/json +[ + { + "title": "Integer eget dignissim neque, sit amet sagittis nisi. In ornare massa lacus." + }, + { + "title": "Curabitur molestie posuere arcu, eget pharetra lacus lobortis in." + }, + { + "title": "Nulla in ipsum eu dui rhoncus fringilla. Ut interdum mi metus" + } +] + +HTTP 200 +[Asserts] +jsonpath "$[0].title" == "Integer eget dignissim neque, sit amet sagittis nisi. In ornare massa lacus." +jsonpath "$[0].value" matches /ark:\/67375\/XXX-.{8}-./ +jsonpath "$[1].title" == "Curabitur molestie posuere arcu, eget pharetra lacus lobortis in." +jsonpath "$[1].value" matches /ark:\/67375\/XXX-.{8}-./ +jsonpath "$[2].title" == "Nulla in ipsum eu dui rhoncus fringilla. Ut interdum mi metus" +jsonpath "$[2].value" matches /ark:\/67375\/XXX-.{8}-./