From 134a0dcac04820d51622c960fdbdbfde32738ee6 Mon Sep 17 00:00:00 2001 From: David Allen Date: Sun, 24 Aug 2025 20:42:27 -0600 Subject: [PATCH] feat: added initial hurl tests --- tests/01-download-localhost.hurl | 11 +++++++++++ tests/02-upload-localhost.hurl | 8 ++++++++ tests/03-list-localhost.hurl | 2 ++ tests/04-profiles-localhost.hurl | 6 ++++++ tests/05-plugins-localhost.hurl | 6 ++++++ 5 files changed, 33 insertions(+) create mode 100644 tests/01-download-localhost.hurl create mode 100644 tests/02-upload-localhost.hurl create mode 100644 tests/03-list-localhost.hurl create mode 100644 tests/04-profiles-localhost.hurl create mode 100644 tests/05-plugins-localhost.hurl diff --git a/tests/01-download-localhost.hurl b/tests/01-download-localhost.hurl new file mode 100644 index 0000000..1c1d0c0 --- /dev/null +++ b/tests/01-download-localhost.hurl @@ -0,0 +1,11 @@ +# download single file +GET http://localhost:5050/downloads + +# download directory as archive +GET + +# download single file using plugins + +# download directory as archive using plugins + + diff --git a/tests/02-upload-localhost.hurl b/tests/02-upload-localhost.hurl new file mode 100644 index 0000000..ff0163a --- /dev/null +++ b/tests/02-upload-localhost.hurl @@ -0,0 +1,8 @@ +# upload a single new file +POST http://localhost:5050/upload + +# upload a new directory + +# upload a new plugin + +# upload a new profile \ No newline at end of file diff --git a/tests/03-list-localhost.hurl b/tests/03-list-localhost.hurl new file mode 100644 index 0000000..bfc2558 --- /dev/null +++ b/tests/03-list-localhost.hurl @@ -0,0 +1,2 @@ +GET http://localhost:5050/list +GET http://localhost:5050/status \ No newline at end of file diff --git a/tests/04-profiles-localhost.hurl b/tests/04-profiles-localhost.hurl new file mode 100644 index 0000000..82786b2 --- /dev/null +++ b/tests/04-profiles-localhost.hurl @@ -0,0 +1,6 @@ +GET http://localhost:5050/profiles +GET http://localhost:5050/profiles/test +POST http://localhost:5050/profiles/test +GET http://localhost:5050/profiles/test/data +POST http://localhost:5050/profiles/test/data +DELETE http://localhost:5050/profiles/test/data diff --git a/tests/05-plugins-localhost.hurl b/tests/05-plugins-localhost.hurl new file mode 100644 index 0000000..e52e383 --- /dev/null +++ b/tests/05-plugins-localhost.hurl @@ -0,0 +1,6 @@ +GET http://localhost:5050/plugins +GET http://localhost:5050/plugin/test +POST http://localhost:5050/plugins/test +DELETE http://localhost:5050/plugin/test + +