mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
fix test of config endpoint
This commit is contained in:
parent
8ac188c942
commit
13783dd2f5
1 changed files with 3 additions and 2 deletions
|
@ -38,10 +38,11 @@ func TestConfig(t *testing.T) {
|
|||
assert.NoError(t, err)
|
||||
|
||||
router = gin.Default()
|
||||
api := router.Group("/api/v2")
|
||||
|
||||
RegisterConfigEndpoint(router.Group("/config"))
|
||||
RegisterConfigEndpoint(api.Group("/config"))
|
||||
|
||||
code, resp, err := helper.TestEndpoint(router, "", "config", http.MethodGet, nil)
|
||||
code, resp, err := helper.TestEndpoint(router, "", "/api/v2/config", http.MethodGet, nil)
|
||||
assert.NoError(t, err)
|
||||
assert.Equalf(t, 200, code, "Response body: \n%v\n", resp)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue