node-testswarm
node-testswarm copied to clipboard
Update authentication
Currently the recent builds of test swarm use Project Name and Token instead of username/token.
it would be nice if node-testswarm can be updated to refelect the new testswarm api changes.
This was fixed 2 months ago with 4eee6f59677de94e77dff560bf633ed85be27005 and released in v1.0.4.
The comments may say otherwise still, but the code certainly has been updated. Or did you mean something else?
Yesterday, I upgraded testswarm to the latest in their git repo, then updated the node-testswarm to build 1.1.0, and I was getting
{"error":{"code":"unauthorized","info":"This action requires authorization. The token or username may be missing or invalid."}}
since then I reverted node-testswarm back to 1.0.3, and testswarm install back to commit 2a2a020. I could have something setup wrong, but the devs were telling me they ran into this issue before I did and somehow that combination was what worked.
jquery/testswarm@2a2a020 is from before the introduction of Projects in TestSwarm, and node-testswarm@v1.0.3 is compatible with that older version.
When you upgraded TestSwarm to the latest version (with projects instead of users etc.), did you:
- Migrate your TestSwarm database schema from users to projects? (run
dbUpdate.php, leave version empty). - Verified the
auth.idandauth.tokenconfigured with node-testswarm are indeed correct (try logging in through the TestSwarm web interface). - Update node-testswarm to the latest version as well (v1.0.4 or later).