From 79454f12750cb8ded21e60db9a31fb63f9b78bf7 Mon Sep 17 00:00:00 2001 From: Leon <147289645+LeoninCS@users.noreply.github.com> Date: Sun, 7 Dec 2025 22:47:48 +0800 Subject: [PATCH] test: move ListLatest from video.json to feed.json --- test/feed.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ test/video.json | 28 ---------------------------- 2 files changed, 46 insertions(+), 28 deletions(-) create mode 100644 test/feed.json diff --git a/test/feed.json b/test/feed.json new file mode 100644 index 0000000..7d39e39 --- /dev/null +++ b/test/feed.json @@ -0,0 +1,46 @@ +{ + "info": { + "name": "FeedSystem Feed API", + "_postman_id": "1cc7b43c-0f0e-4da2-86f2-5e46f8d19803", + "description": "Postman collection for feed endpoints that surface latest videos.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "List Latest Feed", + "event": [ + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "pm.test(\"feed fetched\", function () {", + " pm.response.to.have.status(200);", + "});" + ] + } + } + ], + "request": { + "method": "POST", + "header": [ + { "key": "Content-Type", "value": "application/json" } + ], + "body": { + "mode": "raw", + "raw": "{\n \"limit\": {{feedLimit}},\n \"latest_time\": {{feedLatestTime}}\n}" + }, + "url": { + "raw": "{{host}}/feed/listLatest", + "host": ["{{host}}"], + "path": ["feed", "listLatest"] + } + } + } + ], + "variable": [ + { "key": "host", "value": "http://localhost:8080" }, + { "key": "feedLimit", "value": "10" }, + { "key": "feedLatestTime", "value": "0" } + ] +} diff --git a/test/video.json b/test/video.json index e6c6901..531070a 100644 --- a/test/video.json +++ b/test/video.json @@ -6,34 +6,6 @@ "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ - { - "name": "List Latest Videos", - "event": [ - { - "listen": "test", - "script": { - "type": "text/javascript", - "exec": [ - "pm.test(\"latest videos fetched\", function () {", - " pm.response.to.have.status(200);", - "});" - ] - } - } - ], - "request": { - "method": "POST", - "header": [ - { "key": "Content-Type", "value": "application/json" } - ], - "body": { "mode": "raw", "raw": "{}" }, - "url": { - "raw": "{{host}}/video/listLatest", - "host": ["{{host}}"], - "path": ["video", "listLatest"] - } - } - }, { "name": "List Videos By Author ID", "event": [