Skip to content

best way to save what you love

api/tests: update outdated tests

wukko8cefaab1bd59
diff --git a/api/src/util/tests/bilibili.json b/api/src/util/tests/bilibili.json
index 88b42cdf..0d4d6106 100644
--- a/api/src/util/tests/bilibili.json
+++ b/api/src/util/tests/bilibili.json
@@ -59,7 +59,7 @@
},
{
"name": "bilibili.com link with part id",
- "url": "https://www.bilibili.com/video/BV1uo4y1K72s?spm_id_from=333.788.videopod.episodes&p=6",
+ "url": "https://www.bilibili.com/video/BV1bK411W797?p=3&spm_id_from=333.788.videopod.episodes",
"params": {},
"expected": {
"code": 200,
diff --git a/api/src/util/tests/facebook.json b/api/src/util/tests/facebook.json
index a8b9607e..0f7f43a8 100644
--- a/api/src/util/tests/facebook.json
+++ b/api/src/util/tests/facebook.json
@@ -26,15 +26,6 @@
"status": "redirect"
}
},
- {
- "name": "shortlink video",
- "url": "https://fb.watch/r1K6XHMfGT/",
- "params": {},
- "expected": {
- "code": 200,
- "status": "redirect"
- }
- },
{
"name": "reel video",
"url": "https://web.facebook.com/reel/730293269054758",
@@ -46,15 +37,6 @@
},
{
"name": "shared video link",
- "url": "https://www.facebook.com/share/v/6EJK4Z8EAEAHtz8K/",
- "params": {},
- "expected": {
- "code": 200,
- "status": "redirect"
- }
- },
- {
- "name": "shared video link v2",
"url": "https://web.facebook.com/share/r/JFZfPVgLkiJQmWrr/",
"params": {},
"expected": {
diff --git a/api/src/util/tests/rutube.json b/api/src/util/tests/rutube.json
index 2eaf69bf..1052aa92 100644
--- a/api/src/util/tests/rutube.json
+++ b/api/src/util/tests/rutube.json
@@ -19,15 +19,6 @@
"status": "tunnel"
}
},
- {
- "name": "russian region lock",
- "url": "https://rutube.ru/video/b521653b4f71ece57b8ff54e57ca9b82/",
- "params": {},
- "expected": {
- "code": 400,
- "status": "error"
- }
- },
{
"name": "vertical video",
"url": "https://rutube.ru/video/18a281399b96f9184c647455a86f6724/",
@@ -88,7 +79,17 @@
}
},
{
- "name": "region locked video, should fail",
+ "name": "russian region lock",
+ "url": "https://rutube.ru/video/b521653b4f71ece57b8ff54e57ca9b82/",
+ "canFail": true,
+ "params": {},
+ "expected": {
+ "code": 400,
+ "status": "error"
+ }
+ },
+ {
+ "name": "region locked video",
"canFail": true,
"url": "https://rutube.ru/video/e7ac82708cc22bd068a3bf6a7004d1b1/",
"params": {},
@@ -97,4 +98,4 @@
"status": "error"
}
}
-]
\ No newline at end of file
+]
diff --git a/api/src/util/tests/snapchat.json b/api/src/util/tests/snapchat.json
index bf0c9da3..df8a2f83 100644
--- a/api/src/util/tests/snapchat.json
+++ b/api/src/util/tests/snapchat.json
@@ -8,15 +8,6 @@
"status": "redirect"
}
},
- {
- "name": "shortlinked spotlight",
- "url": "https://t.snapchat.com/4ZsiBLDi",
- "params": {},
- "expected": {
- "code": 200,
- "status": "redirect"
- }
- },
{
"name": "story",
"url": "https://www.snapchat.com/add/bazerkmakane",