From 09acb111a2b22f5794541fac175b024dd0f9100e Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Fri, 20 May 2022 11:17:31 -0600 Subject: Rename api package to http --- srv/src/api/auth_test.go | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 srv/src/api/auth_test.go (limited to 'srv/src/api/auth_test.go') 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)) -} -- cgit v1.2.3