aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/core/auth/token_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-14 17:04:06 +0100
committerGitHub <noreply@github.com>2020-02-14 17:04:06 +0100
commit2df72942f2b057956c7873f908b64880ab647331 (patch)
tree7d2938f7185ed6843ddd1681429b9c4f9d1e7db6 /bridge/core/auth/token_test.go
parent10284903e9f56d32a45e42edeb51973756743074 (diff)
parent34083de0df5187caed3f788c1dcedf7196180206 (diff)
downloadgit-bug-2df72942f2b057956c7873f908b64880ab647331.tar.gz
Merge pull request #321 from MichaelMure/cred-password
auth: refactor and introduce Login and LoginPassword, salt IDs
Diffstat (limited to 'bridge/core/auth/token_test.go')
-rw-r--r--bridge/core/auth/token_test.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/bridge/core/auth/token_test.go b/bridge/core/auth/token_test.go
new file mode 100644
index 00000000..d8cd6652
--- /dev/null
+++ b/bridge/core/auth/token_test.go
@@ -0,0 +1,13 @@
+package auth
+
+import (
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestTokenSerial(t *testing.T) {
+ original := NewToken("github", "value")
+ loaded := testCredentialSerial(t, original)
+ assert.Equal(t, original.Value, loaded.(*Token).Value)
+}