feat: gamemaster
This commit is contained in:
@@ -29,7 +29,7 @@ func TestGetTurn(t *testing.T) {
|
||||
payload := generateInitRequest(10)
|
||||
|
||||
w := httptest.NewRecorder()
|
||||
req, _ := http.NewRequest("POST", "/api/v1/init", asBody(payload))
|
||||
req, _ := http.NewRequest("POST", "/api/v1/admin/init", asBody(payload))
|
||||
r.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, http.StatusCreated, w.Code, w.Body)
|
||||
@@ -50,7 +50,7 @@ func TestGetTurn(t *testing.T) {
|
||||
// generate next turn
|
||||
|
||||
w = httptest.NewRecorder()
|
||||
req, _ = http.NewRequest("PUT", "/api/v1/turn", nil)
|
||||
req, _ = http.NewRequest("PUT", "/api/v1/admin/turn", nil)
|
||||
r.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, http.StatusOK, w.Code, w.Body)
|
||||
@@ -72,7 +72,7 @@ func TestGetTurn(t *testing.T) {
|
||||
// validate status
|
||||
|
||||
w = httptest.NewRecorder()
|
||||
req, _ = http.NewRequest("GET", "/api/v1/status", nil)
|
||||
req, _ = http.NewRequest("GET", "/api/v1/admin/status", nil)
|
||||
r.ServeHTTP(w, req)
|
||||
|
||||
assert.Equal(t, http.StatusOK, w.Code, w.Body)
|
||||
|
||||
Reference in New Issue
Block a user