mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
b4e570358e
* build: include major in go.mod module directive * fix: xflags * revert: cobra changes * fix: mock doc
20 lines
541 B
Go
20 lines
541 B
Go
package configuration
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
"github.com/authelia/authelia/v4/internal/utils"
|
|
)
|
|
|
|
func TestShouldHaveSameChecksumForBothTemplates(t *testing.T) {
|
|
sumRoot, err := utils.HashSHA256FromPath("../../config.template.yml")
|
|
assert.NoError(t, err)
|
|
|
|
sumInternal, err := utils.HashSHA256FromPath("./config.template.yml")
|
|
assert.NoError(t, err)
|
|
|
|
assert.Equal(t, sumRoot, sumInternal, "Ensure both ./config.template.yml and ./internal/configuration/config.template.yml are exactly the same.")
|
|
}
|