mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
27 lines
493 B
Go
27 lines
493 B
Go
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
package console
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"akvorado/common/helpers"
|
|
)
|
|
|
|
func TestConfigHandler(t *testing.T) {
|
|
config := DefaultConfiguration()
|
|
config.Version = "1.2.3"
|
|
_, h, _, _ := NewMock(t, config)
|
|
helpers.TestHTTPEndpoints(t, h.Address, helpers.HTTPEndpointCases{
|
|
{
|
|
URL: "/api/v0/console/configuration",
|
|
JSONOutput: gin.H{
|
|
"version": "1.2.3",
|
|
},
|
|
},
|
|
})
|
|
}
|