build: move version to a single place

Instead of trying to copy Akvorado version around, move it to a single
place, which can be imported by everything else.
This commit is contained in:
Vincent Bernat
2024-06-02 14:04:54 +02:00
parent a8da1eeebf
commit 3af8b942d2
8 changed files with 19 additions and 22 deletions

View File

@@ -13,13 +13,12 @@ import (
func TestConfigHandler(t *testing.T) {
config := DefaultConfiguration()
config.Version = "1.2.3"
_, h, _, _ := NewMock(t, config)
helpers.TestHTTPEndpoints(t, h.LocalAddr(), helpers.HTTPEndpointCases{
{
URL: "/api/v0/console/configuration",
JSONOutput: gin.H{
"version": "1.2.3",
"version": "dev",
"defaultVisualizeOptions": gin.H{
"graphType": "stacked",
"start": "24 hours ago",