Ajay
7921bc4582
Remove chapters free test
2023-03-19 00:25:59 -04:00
Michael C
acae9da06c
increase coverage for tokenUtils
2023-03-12 16:30:08 -04:00
Michael C
8495a9d6c0
fix unban query hitting limit, use number as type
2023-02-25 00:04:15 -05:00
Ajay Ramachandran
d76ee7cd22
Merge pull request #541 from mchangrh/etagTest
...
add etag and other tests
2023-02-22 01:38:41 -05:00
Michael C
436e75e3e6
add explicit test checks in reset
2023-02-22 01:15:49 -05:00
Michael C
7ba654e476
remove tests for maxNumberOfActiveWarnings
2023-02-22 00:35:58 -05:00
Michael C
76ce1017ea
add warning webhook
2023-02-22 00:08:27 -05:00
Michael C
79b7b6ea4c
add highLoad tests
2023-02-21 20:10:01 -05:00
Michael C
80de71a68f
add misc 400 tests
2023-02-21 20:09:57 -05:00
Michael C
4b8bc418ba
clean up getCWSUsers
2023-02-21 20:09:38 -05:00
Michael C
f4537160de
split postSkipSegments into stubbed 400
2023-02-21 20:09:13 -05:00
Michael C
e6f54f11f0
decompose postSkipSegments more
2023-02-21 17:00:23 -05:00
Michael C
6296761fe4
postSkipSegments improvements
...
- fix 80% check from same user
- split test cases into multiple files for easier viewing
2023-02-21 03:25:46 -05:00
Michael C
820a7eb02f
simplify postWarning
2023-02-21 03:25:02 -05:00
Michael C
37a1c7e88d
used shared random gen for tests
2023-02-21 03:24:07 -05:00
Michael C
31a460e750
fix countcontributingusers
2023-02-20 22:56:38 -05:00
Michael C
1bda331b0c
add new CWS user parsing method
2023-02-20 22:22:33 -05:00
Michael C
72fb4eb6ec
add more tests for coverage
2023-02-20 22:22:33 -05:00
Michael C
d04230a1c4
reset postgres and redis between test runs
2023-02-20 22:22:33 -05:00
Michael C
cdc080b58b
skip etag tests if no redis
2023-02-20 16:03:46 -05:00
Michael C
c586c9a7e7
add etag tests
...
- add shadowban self test
- add init and -it to docker runs
2023-02-20 15:56:08 -05:00
Ajay Ramachandran
7985d131ef
Merge pull request #537 from mchangrh/lenientSetUsername
...
make privateIDUsername check more lenient #532
2023-02-18 00:09:37 -05:00
Michael C
a384079562
more lenient privateIDUsername checks
...
- disallow username = privateID
- disallow username = other privateID on username table if length > minLength
2023-02-17 22:28:23 -05:00
Ajay
46c372a764
Unlock other segments when vip votes for new segment
2023-02-14 22:10:46 -05:00
Ajay
c5426e5fc4
Fix reputation test
2023-02-04 18:43:08 -05:00
Ajay
d5c544f1ee
Allow auto banning ips
2023-01-28 14:00:12 -05:00
Ajay
5426ae826e
Add IP banning
2023-01-28 13:09:04 -05:00
Michael C
74c0ba37e2
remove debug statements, fix shadowBanUser tests
2023-01-28 02:54:01 -05:00
Michael C
a64b8f99b7
use shared parseParams helper
2023-01-28 02:40:09 -05:00
Ajay
10e9aef8cc
use await in get branding test
2023-01-28 02:20:16 -05:00
Ajay Ramachandran
d07aac3a33
Merge branch 'master' into clickbait
2023-01-28 02:13:42 -05:00
Ajay
36f1d15605
Add tests for get branding and fix issues
...
Also improve deep partial equals
2023-01-28 01:53:59 -05:00
Ajay
07c683e8f0
Add vote/submission for titles and thumbnails
2023-01-27 22:36:29 -05:00
Ajay
2ed23d7fcb
Fix duplicate chapter issue
...
Fix https://github.com/ajayyy/SponsorBlockServer/issues/521
2023-01-21 21:52:39 -05:00
Ajay
66c2be6012
remove hash and extra segment params
2022-12-30 15:39:45 -05:00
Michael C
be03367557
fix privateIDUsername
2022-12-30 01:04:23 -05:00
Michael C
90e5446078
add privateID username check
...
- bump AGPL to package-lock
2022-12-30 00:41:45 -05:00
Michael C
7c2feb80bc
videoID validation and userID min length
2022-12-27 01:45:50 -05:00
Michael C
7fb68937d0
add innertube tests for private videos
2022-11-09 14:39:02 -05:00
Ajay
5139c7aaf0
Fix tests
2022-10-30 17:07:25 -04:00
Michael C
80c018c9d5
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-10-28 16:49:50 -04:00
Michael C
19289a149b
test against new chapters access
2022-10-27 01:47:12 -04:00
Michael C
622511c8fd
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage
2022-10-27 01:38:08 -04:00
mini-bomba
eb5458427d
Make /searchSegments return the segment description
2022-10-01 13:46:27 +02:00
Michael C
95dd36a782
getUserInfo and free chapters tests
2022-09-30 22:58:49 -04:00
Michael C
67eb165b53
getSearchSegments tests
2022-09-30 22:58:37 -04:00
Michael C
d163b1d436
shadowban tests
2022-09-30 22:58:20 -04:00
Michael C
715d41fbb2
getStatus, token tests and mocks
2022-09-30 22:58:08 -04:00
Michael C
d80be9e7b3
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into more-coverage
2022-09-30 19:36:58 -04:00
Michael C
968ffe785f
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-09-30 19:21:54 -04:00
Ajay Ramachandran
847f1bbabb
Merge pull request #499 from mchangrh/getStatus-redis
...
add redis process time to getStatus
2022-09-29 16:52:16 -04:00
Ajay Ramachandran
ada32217d9
Merge pull request #503 from mchangrh/innerTubeDuration
...
add innerTube API, types and tests
2022-09-29 16:45:55 -04:00
Michael C
a8ddae131d
Merge branch 'master' of github.com:ajayyy/SponsorBlockServer into more-coverage
2022-09-29 15:39:36 -04:00
mini-bomba
ed251a047a
Add a test case for getUserInfo.ts ignoring chapters for time saved calc
2022-09-28 18:18:41 +02:00
mini-bomba
771fa18731
Modify getUserStats test cases to include chapter counts
2022-09-28 17:59:04 +02:00
Michael C
55aa33aa6e
add DiskCache to getPlayerData
2022-09-26 15:58:33 -04:00
Michael C
07926ada57
switch test videoID, remove useless import
2022-09-26 15:44:04 -04:00
Michael C
c34de1baa4
add 4xx tests
2022-09-25 03:31:25 -04:00
Michael C
8562dc2240
lint fix
2022-09-25 02:05:51 -04:00
Michael C
9ca087206e
add token tests
2022-09-25 02:04:30 -04:00
Michael C
c0952c15c8
fix getTotalStats userCount
2022-09-24 23:08:36 -04:00
Michael C
47616711ce
move patreon mock
2022-09-24 22:52:55 -04:00
Michael C
7457b51aa4
add getByHash tests, remove redundant check
...
- `{}` always returns true so the early exit is never taken
2022-09-24 22:51:52 -04:00
Michael C
a00048aaac
add getIP test cases, misc others
2022-09-24 22:51:20 -04:00
Michael C
0a102c15fd
add lockCategory tests and typo tweak
2022-09-24 22:48:48 -04:00
Michael C
e0be4744be
fix tokenUtils tests, skip if not configured
2022-09-24 22:48:23 -04:00
Michael C
dd7656d143
add lockCategories tests, getUserInfo
2022-09-24 22:47:40 -04:00
Michael C
f683ed4f29
add userCounter mocks and rearrange webhook path
2022-09-24 22:47:18 -04:00
Michael C
3f470a72f5
add additional/missing tests
2022-09-24 22:46:35 -04:00
Michael C
b652102c42
move mocks to subfolder
2022-09-24 22:45:23 -04:00
Michael C
62a9b0eddd
add innerTube as primary videoInfo endpoint
...
- drop videoInfo.genreUrl since it's always empty
- bump ts target to ES2021 for Promise.any
- fix mocks to return err: false
- get maxResThumbnail from static endpoint
2022-09-15 17:02:33 -04:00
Michael C
3c09033267
add innerTube API, types and tests
2022-09-14 00:33:52 -04:00
Michael C
9be9d05dbe
add redis process time and add timeout clause
2022-09-07 23:43:14 -04:00
Ajay Ramachandran
0ca134dc8f
Merge pull request #500 from mchangrh/fix-tests
...
fix tests
2022-09-07 12:03:05 -04:00
Michael C
d1d7675a8c
test fixes
...
test fixes
- fix timeout in redis (by @ajayyy)
- allow "errors" in tempVIP test
- remove duplicate warning in postSkipSegments
- remove duplicate VIP in tempVIP
- run tests against different user once tempVIP removed
- fix typo in getHashCache fetching
syntax and wording
- use standard syntax in redisTest
- fix spacing in getLockReason
- typo in npm script name
test cases
- add getHashCache test case
- add more tests to redisTest
configuration
- update config to use redis timeout
- update docker-compose to use newest pinned version
Co-Authored-By: Ajay Ramachandran <dev@ajay.app>
2022-09-07 02:16:23 -04:00
Ajay
9c72e20d1b
test for changing chapter category
2022-09-07 01:31:38 -04:00
Ajay
dad205e729
don't scan ratings dir for tests
2022-08-22 11:07:30 -04:00
Ajay
8dbfe17ee4
remove ratings tests
2022-08-22 11:04:33 -04:00
Ajay
6239e53091
Fix flaky test
2022-07-29 12:06:38 -04:00
Ajay
04eabd5141
Fix error
2022-07-29 11:49:08 -04:00
Ajay
af7634b498
Fix ad feature auth logic
2022-07-28 13:55:43 -04:00
Ajay
603bad4967
Add another warning test
2022-07-21 14:19:41 -04:00
Ajay Ramachandran
e050a6eec3
Merge pull request #484 from mini-bomba/fix/requiredSegments-hidden
...
Fix (shadow)hidden segments not being sent when requested via requiredSegments + test cases
2022-07-20 20:04:24 -04:00
mini-bomba
b3c05bc606
Merge branch 'master' into fix/requiredSegments-hidden
...
# Conflicts:
# src/routes/getSkipSegments.ts
2022-07-21 00:54:14 +02:00
Ajay
3203271fdf
Allow removing your own warning
2022-07-20 18:52:27 -04:00
mini-bomba
4ac70d2d7e
add test cases for getting (shadow)hidden segments with requiredSegments
2022-07-16 15:07:22 +02:00
mini-bomba
55a8b5d514
voteOnSponsorTime: add test cases for categoryVote as warned/banned user
2022-07-14 21:31:43 +02:00
Ajay Ramachandran
972cb96259
Merge pull request #476 from mchangrh/fullvideo-revive-nonvip
...
add tests for #454
2022-07-12 23:14:03 -04:00
Ajay
c2b0ecd6f6
Add ability to add manually choose who can submit chapters
2022-07-06 00:11:45 -04:00
Ajay
47f460bb2c
Fix non-sequencial reputation in getSkipSegments
2022-07-05 20:11:30 -04:00
Ajay
f9de547b95
Add malicious vote type for chapters
2022-07-04 16:18:58 -04:00
Ajay
de60415f55
more generous reputation
2022-06-28 18:14:12 -04:00
Michael C
8560c3f673
add tests for #454
2022-06-28 15:02:09 -04:00
Michael C
cbdd852566
add additional poi_highlight tests
2022-05-26 21:17:58 -04:00
Michael C
6a826b63c9
Merge branch 'master' of https://github.com/ajayyy/SponsorBlockServer into fullVideoLabels
2022-05-09 02:42:18 -04:00
Ajay
5b177a3e53
Prepare dockerfile for use, allow configuring via env vars
2022-05-03 22:08:44 -04:00
Ajay
8dc87da462
Back rate limit by redia and upgrade node-redis
2022-04-13 17:36:07 -04:00
Michael C
76cc603a3f
update auotmod check
...
- remove NB code
- reduce complexity + unnecessary iterations
- use client duration if given
2022-03-31 16:02:50 -04:00
Michael C
ed560425a0
removed logging, fixed labelByHash test cases
2022-03-31 14:05:07 -04:00
Michael C
e6bf20937d
endpoint + tests for getVideoLabels
2022-03-31 03:47:06 -04:00