From ccd327d7144dbca5113c631f3515115ad1136ca0 Mon Sep 17 00:00:00 2001 From: paulusgaming Date: Mon, 7 Oct 2024 16:53:33 +0200 Subject: [PATCH] Added postman tests. --- README.md | 4 +- postman/Tracker.postman_collection.json | 80 +++++++++++++++++++++++++ 2 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 postman/Tracker.postman_collection.json diff --git a/README.md b/README.md index e4acb2c..27be58a 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # tracker -# !important to run application you need a local or remote mysql connection +# SETUP The connection parameters can be set in the file src/main/resources/application.properties. The MYSQL setup script can be found in SQL, alternatively you can use hibernate to create the tables. Fill in your parameters for 'password', 'username', 'host' and 'db' or delete them all and have hibernate create tables for you. +# Postman collection +Postman collection can be found in postman folder # Introduction This project uses Quarkus, the Supersonic Subatomic Java Framework. diff --git a/postman/Tracker.postman_collection.json b/postman/Tracker.postman_collection.json new file mode 100644 index 0000000..3e3d63b --- /dev/null +++ b/postman/Tracker.postman_collection.json @@ -0,0 +1,80 @@ +{ + "info": { + "_postman_id": "c1951f60-c409-4437-8353-e57e46efb23e", + "name": "Tracker", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "23599679" + }, + "item": [ + { + "name": "user_register", + "request": { + "auth": { + "type": "noauth" + }, + "method": "POST", + "header": [], + "body": { + "mode": "graphql", + "graphql": { + "query": "mutation { \r\n \"username\": \"user\",\r\n \"password\": \"test\"\r\n}", + "variables": "" + } + }, + "url": { + "raw": "http://localhost:8080/graphql", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "graphql" + ] + } + }, + "response": [] + }, + { + "name": "test", + "request": { + "auth": { + "type": "basic", + "basic": [ + { + "key": "password", + "value": "test", + "type": "string" + }, + { + "key": "username", + "value": "user", + "type": "string" + } + ] + }, + "method": "POST", + "header": [], + "body": { + "mode": "graphql", + "graphql": { + "query": "{ test }", + "variables": "" + } + }, + "url": { + "raw": "http://localhost:8080/graphql", + "protocol": "http", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "graphql" + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file