Преглед изворни кода

Remove ldap package from core

Andrea Fazzi пре 7 година
родитељ
комит
d26d1407ad
2 измењених фајлова са 0 додато и 34 уклоњено
  1. 0 11
      ldap/ldap.go
  2. 0 23
      ldap/ldap_test.go

+ 0 - 11
ldap/ldap.go

@@ -1,11 +0,0 @@
-package ldap
-
-import (
-	"strings"
-
-	"gogs.carducci-dante.gov.it/andrea.fazzi/karmen/config"
-)
-
-func DN(rdns ...string) string {
-	return strings.Join(append(rdns, config.LDAPRootDN), ",")
-}

+ 0 - 23
ldap/ldap_test.go

@@ -1,23 +0,0 @@
-package ldap
-
-import (
-	"testing"
-
-	"github.com/remogatto/prettytest"
-)
-
-type testSuite struct {
-	prettytest.Suite
-}
-
-func TestRunner(t *testing.T) {
-	prettytest.Run(
-		t,
-		new(testSuite),
-	)
-}
-
-func (t *testSuite) TestDN() {
-	t.Equal("cn=billy,dc=foo,dc=org", DN("cn=billy"))
-	t.Equal("cn=billy,ou=people,dc=foo,dc=org", DN("cn=billy", "ou=people"))
-}