Sha256: 3982930881a00ad4e1e32335d4e7dee667ea24588353d0a50eb06670a18a52b0
Contents?: true
Size: 701 Bytes
Versions: 4
Compression:
Stored size: 701 Bytes
Contents
require_relative '../test_helper' class TestAddIntegration < LDAPIntegrationTestCase def setup super @ldap.authenticate "cn=admin,dc=rubyldap,dc=com", "passworD1" @dn = "uid=added-user1,ou=People,dc=rubyldap,dc=com" end def test_add attrs = { objectclass: %w(top inetOrgPerson organizationalPerson person), uid: "added-user1", cn: "added-user1", sn: "added-user1", mail: "added-user1@rubyldap.com", } assert @ldap.add(dn: @dn, attributes: attrs), @ldap.get_operation_result.inspect assert result = @ldap.search(base: @dn, scope: Net::LDAP::SearchScope_BaseObject).first end def teardown @ldap.delete dn: @dn end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
net-ldap-0.16.1 | test/integration/test_add.rb |
net-ldap-0.16.0 | test/integration/test_add.rb |
net-ldap-0.15.0 | test/integration/test_add.rb |
net-ldap-0.14.0 | test/integration/test_add.rb |