Auth: Refactor cluster configuration and provisioning API endpoints #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-09-24 08:28:38 +02:00
parent 3baabebf50
commit 61ced7119c
242 changed files with 4477 additions and 1789 deletions

View File

@@ -14,13 +14,11 @@ func TestEncode(t *testing.T) {
assert.Equal(t, expected, plusCode)
})
t.Run("lat_overflow", func(t *testing.T) {
plusCode := Encode(548.56344833333333, 8.996878333333333)
assert.Equal(t, "", plusCode)
})
t.Run("lng_overflow", func(t *testing.T) {
plusCode := Encode(48.56344833333333, 258.996878333333333)
@@ -39,7 +37,6 @@ func TestEncodeLength(t *testing.T) {
assert.Equal(t, expected, plusCode)
})
t.Run("germany_8", func(t *testing.T) {
plusCode, err := EncodeLength(48.56344833333333, 8.996878333333333, 8)
if err != nil {
@@ -50,7 +47,6 @@ func TestEncodeLength(t *testing.T) {
assert.Equal(t, expected, plusCode)
})
t.Run("germany_7", func(t *testing.T) {
plusCode, err := EncodeLength(48.56344833333333, 8.996878333333333, 7)
if err != nil {
@@ -61,7 +57,6 @@ func TestEncodeLength(t *testing.T) {
assert.Equal(t, expected, plusCode)
})
t.Run("germany_6", func(t *testing.T) {
plusCode, err := EncodeLength(48.56344833333333, 8.996878333333333, 6)
if err != nil {
@@ -72,7 +67,6 @@ func TestEncodeLength(t *testing.T) {
assert.Equal(t, expected, plusCode)
})
t.Run("lat_overflow", func(t *testing.T) {
plusCode, err := EncodeLength(548.56344833333333, 8.996878333333333, 7)
if err == nil {
@@ -80,7 +74,6 @@ func TestEncodeLength(t *testing.T) {
}
assert.Equal(t, "", plusCode)
})
t.Run("lng_overflow", func(t *testing.T) {
plusCode, err := EncodeLength(48.56344833333333, 258.996878333333333, 7)
if err == nil {