summaryrefslogtreecommitdiff
path: root/srv/src/api/auth_test.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-20 11:17:31 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-20 11:17:31 -0600
commit09acb111a2b22f5794541fac175b024dd0f9100e (patch)
tree11d4578a42ad4aea968b42a2689f64c799f9176e /srv/src/api/auth_test.go
parentf69ed83de73bbfc4b7af0931de6ced8cf12dea61 (diff)
Rename api package to http
Diffstat (limited to 'srv/src/api/auth_test.go')
-rw-r--r--srv/src/api/auth_test.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/srv/src/api/auth_test.go b/srv/src/api/auth_test.go
deleted file mode 100644
index cdf83ef..0000000
--- a/srv/src/api/auth_test.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package api
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
-)
-
-func TestAuther(t *testing.T) {
-
- password := "foo"
- hashedPassword := NewPasswordHash(password)
-
- auther := NewAuther(map[string]string{
- "FOO": hashedPassword,
- })
-
- assert.False(t, auther.Allowed("BAR", password))
- assert.False(t, auther.Allowed("FOO", "bar"))
- assert.True(t, auther.Allowed("FOO", password))
-}