validate Nodeinfo response by schema (#2390)

* rm stable: 'false' from actions/setup-go@v3

* adapt tests from #2369

* set undefined as defaultStreamKey

pass adminpass to sendConfigChangeRequest()

* mv getAdminConfig to api/lib/config.js

* npm install --quiet for automated tests

* refactor tests

separate default values from new ones

* test adminpass change

fix defaultStreamKeys test

* fix defaultStreamKeys

* use getAdminStatus

* mv test/automated/lib/config.js to admin.js

* check default hideViewerCount

cleanup

* test more default options in api

erverName
SServerSummary
yp.instanceUrl
FederationConfig.username

* more testing of default config params

* update reference values for api test
This commit is contained in:
Meisam
2022-11-29 16:05:44 -08:00
committed by Gabe Kangas
parent f4c2a49887
commit 0a8fc6e8c5
8 changed files with 653 additions and 119 deletions
+5 -1
View File
@@ -10,7 +10,11 @@
"license": "ISC",
"dependencies": {
"supertest": "^6.0.1",
"websocket": "^1.0.32"
"websocket": "^1.0.32",
"ajv": "^8.11.0",
"ajv-draft-04" : "^1.0.0",
"jsonfile": "^6.1.0",
"crypto-random": "^2.0.1"
},
"devDependencies": {
"jest": "^26.6.3"