From c6be20706f28fbf745ccaf2c6009cd4c8a084db8 Mon Sep 17 00:00:00 2001 From: Alex Demidoff Date: Thu, 2 Nov 2023 18:42:34 +0000 Subject: [PATCH] PMM-8471 fix supervisord tests --- managed/services/supervisord/supervisord_test.go | 2 +- managed/testdata/supervisord.d/pmm-db_disabled.ini | 1 + managed/testdata/supervisord.d/pmm-db_enabled.ini | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/managed/services/supervisord/supervisord_test.go b/managed/services/supervisord/supervisord_test.go index 8092666727..079d30a5b0 100644 --- a/managed/services/supervisord/supervisord_test.go +++ b/managed/services/supervisord/supervisord_test.go @@ -100,7 +100,7 @@ func TestAddAlertManagerParam(t *testing.T) { require.NoError(t, err) require.Equal(t, "http://127.0.0.1:9093/alertmanager,https://some-alertmanager", params["AlertmanagerURL"]) require.Equal(t, ",username1", params["AlertManagerUser"]) - require.Equal(t, `,"PAsds!234"`, params["AlertManagerPassword"]) + require.Equal(t, `,"PAsds!234"`, params["ATestSavePMMConfiglertManagerPassword"]) }) t.Run("incorrect alertmanager url", func(t *testing.T) { diff --git a/managed/testdata/supervisord.d/pmm-db_disabled.ini b/managed/testdata/supervisord.d/pmm-db_disabled.ini index b45251ab1f..341bafd9f8 100644 --- a/managed/testdata/supervisord.d/pmm-db_disabled.ini +++ b/managed/testdata/supervisord.d/pmm-db_disabled.ini @@ -43,6 +43,7 @@ redirect_stderr = true [program:nginx] priority = 4 command = nginx +user = nginx autorestart = true autostart = true startretries = 10 diff --git a/managed/testdata/supervisord.d/pmm-db_enabled.ini b/managed/testdata/supervisord.d/pmm-db_enabled.ini index 4d4ad4afd9..7fdbfba722 100644 --- a/managed/testdata/supervisord.d/pmm-db_enabled.ini +++ b/managed/testdata/supervisord.d/pmm-db_enabled.ini @@ -67,6 +67,7 @@ redirect_stderr = true [program:nginx] priority = 4 command = nginx +user = nginx autorestart = true autostart = true startretries = 10