mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-15 20:02:15 +01:00
chore(libreoffice): switch to supervisor (#708)
This commit is contained in:
@@ -82,9 +82,9 @@ func (mod *PDFEngines) Provision(ctx *gotenberg.Context) error {
|
||||
mod.names = names
|
||||
|
||||
for i, name := range names {
|
||||
logger.Warn("unoconv-pdfengine is deprecated; prefer uno-pdfengine instead")
|
||||
logger.Warn("unoconv-pdfengine is deprecated; prefer api-pdfengine instead")
|
||||
if name == "unoconv-pdfengine" {
|
||||
mod.names[i] = "uno-pdfengine"
|
||||
mod.names[i] = "api-pdfengine"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -150,7 +150,7 @@ func TestPDFEngines_Provision(t *testing.T) {
|
||||
gotenberg.PDFEngineMock
|
||||
}{}
|
||||
engine.DescriptorMock = func() gotenberg.ModuleDescriptor {
|
||||
return gotenberg.ModuleDescriptor{ID: "uno-pdfengine", New: func() gotenberg.Module { return engine }}
|
||||
return gotenberg.ModuleDescriptor{ID: "api-pdfengine", New: func() gotenberg.Module { return engine }}
|
||||
}
|
||||
engine.ValidateMock = func() error {
|
||||
return nil
|
||||
@@ -172,7 +172,7 @@ func TestPDFEngines_Provision(t *testing.T) {
|
||||
},
|
||||
)
|
||||
}(),
|
||||
expectPDFEngineNames: []string{"uno-pdfengine"},
|
||||
expectPDFEngineNames: []string{"api-pdfengine"},
|
||||
},
|
||||
{
|
||||
name: "no logger provider",
|
||||
|
||||
Reference in New Issue
Block a user