]> git.cworth.org Git - empires-server/commit
test: Update the test suite to work with game creation
authorCarl Worth <cworth@cworth.org>
Sun, 31 May 2020 23:00:39 +0000 (16:00 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 31 May 2020 23:00:39 +0000 (16:00 -0700)
commitd6817ef860a230cbbb694e729a400ed37ed43d68
tree9cce24c72ee2c21026948e8ea4bcbe4652cb5bcd
parent6bc844ae075838dee697197884fc0f302e9bb9ed
test: Update the test suite to work with game creation

Previously the test script only worked when given an API endpoint for
a single game of Empires.

In this commit we bring it up to something more modern by making it
aware of the top-level APIs for creating a new game ID and then using
that game ID to talk to the Empires API.

We also revamp the test script so that it does some actual
testing. Previously, it was just a simple script for exercising
several endpoints. Now, it actually inspects responses and ensures
that things are working correctly.
test