Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
d4e8e22f
Commit
d4e8e22f
authored
Nov 09, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: adds tests for password encodiing
parent
5b38c230
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
pkg/util/encoding_test.go
+4
-1
No files found.
pkg/util/encoding_test.go
View file @
d4e8e22f
...
...
@@ -7,7 +7,6 @@ import (
)
func
TestEncoding
(
t
*
testing
.
T
)
{
Convey
(
"When generating base64 header"
,
t
,
func
()
{
result
:=
GetBasicAuthHeader
(
"grafana"
,
"1234"
)
...
...
@@ -23,4 +22,8 @@ func TestEncoding(t *testing.T) {
So
(
password
,
ShouldEqual
,
"1234"
)
})
Convey
(
"When encoding password"
,
t
,
func
()
{
encodedPassword
:=
EncodePassword
(
"iamgod"
,
"pepper"
)
So
(
encodedPassword
,
ShouldEqual
,
"e59c568621e57756495a468f47c74e07c911b037084dd464bb2ed72410970dc849cabd71b48c394faf08a5405dae53741ce9"
)
})
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment