blob: 663e08bbed1d32f120efb7e89bb7f0184131fe1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Feature: Deleting entries from the directory
As a directory consumer
I want to ensure that I can delete entries from the directory
In order to remove information
Background:
Given a usable Net::LDAPapi class
Scenario: Can remove an entry from the directory
Given a Net::LDAPapi object that has been connected to the LDAP server
When I've bound with default authentication to the directory
And a test container has been created
And I've added a new entry to the directory
And I've deleted the new entry from the directory
Then the new entry result is LDAP_SUCCESS
And the delete entry result is LDAP_SUCCESS
And the test container has been deleted
Scenario: Can asynchronously remove an entry from the directory
Given a Net::LDAPapi object that has been connected to the LDAP server
When I've asynchronously bound with default authentication to the directory
And a test container has been created
And I've asynchronously added a new entry to the directory
And I've asynchronously deleted the new entry from the directory
Then after waiting for all results, the new entry result message type is LDAP_RES_ADD
And the new entry result is LDAP_SUCCESS
And after waiting for all results, the delete entry result message type is LDAP_RES_DELETE
And the delete entry result is LDAP_SUCCESS
And the test container has been deleted
|