mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 08:44:04 +01:00
These changes allow you to force the re-creation of existing Unix domain sockets and set the permissions of sockets after they have been created. The flag or variable value for this must be formatted as follows: --http-host="unix:/var/run/photoprism.sock?force=true&mode=660" Signed-off-by: Michael Mayer <michael@photoprism.app>
21 lines
468 B
Go
21 lines
468 B
Go
package header
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRobots(t *testing.T) {
|
|
t.Run("Header", func(t *testing.T) {
|
|
assert.Equal(t, "X-Robots-Tag", RobotsTag)
|
|
})
|
|
t.Run("Values", func(t *testing.T) {
|
|
assert.Equal(t, "all", RobotsAll)
|
|
assert.Equal(t, "noindex, nofollow", RobotsNone)
|
|
assert.Equal(t, "noindex", RobotsNoIndex)
|
|
assert.Equal(t, "nofollow", RobotsNoFollow)
|
|
assert.Equal(t, "noimageindex", RobotsNoImages)
|
|
})
|
|
}
|