fd683f0a72
* block and unblock ipv6 explicitly * refactor admin api tests * use sendAdminPayload() for chatuser tests * fix sendAdminRequests * add getAdminResponse() to api test lib/admin.js * some admin apis don't have response body * cleanup test/automated/api/chatusers.test.js * cleanup test/automated/api/chatusers.test.js use getAdminResponse() to access admin apis |
||
---|---|---|
.. | ||
automated | ||
load | ||
.gitignore | ||
fakeChat.js | ||
ocTestStream.sh | ||
package-lock.json | ||
package.json | ||
populateContent.sh | ||
README.md | ||
testContent.sh | ||
userColorsTest.js |
Tests
Load Tests
- Install artillery from NPM/Yarn/Whatever Javascript package manager is popular this week.
- Start an instance of the server on localhost.
artillery run httpGetTest.yaml
for endpoint load tests.artillery run websocketTest.yaml
for websocket load tests.
Chat test
This will send automated fake chat messages to your localhost instance. Edit the messages, usernames or point to a different instance.
npm install
node fakeChat.js