aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/import_test.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2020-02-04 00:25:27 +0100
committerMichael Muré <batolettre@gmail.com>2020-02-08 17:19:57 +0100
commitf515b9a1291ddd3e4fe1b43bf5891ab19569e33f (patch)
tree05f043ba5d2279f547d6dbc8e2f938c240f9b04d /bridge/gitlab/import_test.go
parent74e91144105790cc997c1d79a7f638e1e3a1f3f8 (diff)
downloadgit-bug-f515b9a1291ddd3e4fe1b43bf5891ab19569e33f.tar.gz
gitlab also compile
Diffstat (limited to 'bridge/gitlab/import_test.go')
-rw-r--r--bridge/gitlab/import_test.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/bridge/gitlab/import_test.go b/bridge/gitlab/import_test.go
index 1e2f5d50..3c0caa55 100644
--- a/bridge/gitlab/import_test.go
+++ b/bridge/gitlab/import_test.go
@@ -21,6 +21,7 @@ import (
func TestImport(t *testing.T) {
author := identity.NewIdentity("Amine Hilaly", "hilalyamine@gmail.com")
+
tests := []struct {
name string
url string
@@ -94,13 +95,11 @@ func TestImport(t *testing.T) {
t.Skip("Env var GITLAB_PROJECT_ID missing")
}
- err = author.Commit(repo)
- require.NoError(t, err)
-
- err = identity.SetUserIdentity(repo, author)
- require.NoError(t, err)
+ login := "test-identity"
+ author.SetMetadata(metaKeyGitlabLogin, login)
- token := auth.NewToken(author.Id(), envToken, target)
+ token := auth.NewToken(envToken, target)
+ token.SetMetadata(metaKeyGitlabLogin, login)
err = auth.Store(repo, token)
require.NoError(t, err)