mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
OIDC: Add additional config options and OAuth2 API endpoints #782
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -3,24 +3,21 @@ package commands
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
"github.com/photoprism/photoprism/pkg/capture"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/photoprism/photoprism/pkg/capture"
|
||||
)
|
||||
|
||||
func TestShowConfigOptionsCommand(t *testing.T) {
|
||||
var err error
|
||||
|
||||
ctx := config.CliTestContext()
|
||||
ctx := NewTestContext(nil)
|
||||
|
||||
output := capture.Output(func() {
|
||||
err = ShowConfigOptionsCommand.Run(ctx)
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
assert.NoError(t, err)
|
||||
assert.Contains(t, output, "PHOTOPRISM_IMPORT_PATH")
|
||||
assert.Contains(t, output, "--sidecar-path")
|
||||
assert.Contains(t, output, "sidecar `PATH` *optional*")
|
||||
|
||||
Reference in New Issue
Block a user