File: compare.feature

package info (click to toggle)
libnet-ldapapi-perl 3.0.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: perl: 3,913; ansic: 9; makefile: 8
file content (29 lines) | stat: -rw-r--r-- 1,567 bytes parent folder | download | duplicates (6)
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: Comparing values to values of attributes of entries within the directory
 As a directory consumer
 I want to ensure that I can test the value of an attribute on an entry within the directory
 In order to perform simple comparisons

 Background:
   Given a usable Net::LDAPapi class

 Scenario: Can compare an attribute on an entry within 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 compared to an attribute on the new entry
   Then the new entry result is LDAP_SUCCESS
   And the new entry comparison result is LDAP_COMPARE_TRUE
   And the test container has been deleted

 Scenario: Can asynchronously compare an attribute on an entry within 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 compared to an attribute on the new entry
   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 new entry comparison result message type is LDAP_RES_COMPARE
   And the new entry comparison result is LDAP_COMPARE_TRUE
   And the test container has been deleted