mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Auth: Refactor cluster configuration and provisioning API endpoints #98
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user