diff --git a/managed/services/supervisord/logs_test.go b/managed/services/supervisord/logs_test.go index b4b8bffcee..b79e38c02c 100644 --- a/managed/services/supervisord/logs_test.go +++ b/managed/services/supervisord/logs_test.go @@ -54,6 +54,7 @@ var commonExpectedFiles = []string{ "postgresql14.log", "qan-api2.ini", "qan-api2.log", + "supervisorctl_status.log", "supervisord.conf", "supervisord.log", "victoriametrics-promscrape.yml", @@ -120,8 +121,6 @@ func TestReadLog(t *testing.T) { } func TestAddAdminSummary(t *testing.T) { - t.Skip("FIXME") - zipfile, err := os.CreateTemp("", "*-test.zip") assert.NoError(t, err) @@ -173,9 +172,11 @@ func TestFiles(t *testing.T) { continue } - if f.Name == "supervisorctl_status.log" { - // FIXME: this fails following the transition to EL9 - continue + if f.Name != "supervisorctl_status.log" { + // Note: following the transition to EL9 querying this file generates an error. No workaround is available ATM. + assert.NoError(t, f.Err, "name = %q", f.Name) + } else { + assert.EqualError(t, f.Err, "exit status 3") } assert.NoError(t, f.Err, "name = %q", f.Name) @@ -188,8 +189,6 @@ func TestFiles(t *testing.T) { } func TestZip(t *testing.T) { - t.Skip("FIXME") - checker := NewPMMUpdateChecker(logrus.WithField("test", t.Name())) params, err := models.NewVictoriaMetricsParams(models.BasePrometheusConfigPath, models.VMBaseURL) require.NoError(t, err)