@@ -80,6 +80,7 @@ def modify(args)
8080 _ ( span . attributes [ 'ldap.auth.username' ] ) . must_equal 'test_user'
8181 _ ( span . attributes [ 'ldap.auth.method' ] ) . must_equal 'simple'
8282 _ ( span . attributes . values ) . wont_include 'test_password'
83+ _ ( span . attributes [ 'ldap.operation.type' ] ) . must_equal 'bind'
8384 _ ( span . attributes [ 'ldap.request.message' ] ) . must_equal '{}'
8485 _ ( span . attributes [ 'ldap.response.status_code' ] ) . must_equal 0
8586 _ ( span . attributes [ 'ldap.tree.base' ] ) . must_equal 'dc=com'
@@ -103,6 +104,7 @@ def modify(args)
103104 _ ( span . attributes [ 'ldap.auth.username' ] ) . must_equal 'test_user'
104105 _ ( span . attributes [ 'ldap.auth.method' ] ) . must_equal 'simple'
105106 _ ( span . attributes . values ) . wont_include 'test_password'
107+ _ ( span . attributes [ 'ldap.operation.type' ] ) . must_equal 'search'
106108 _ ( span . attributes [ 'ldap.request.message' ] ) . must_equal '{"filter":"(uid=user1)","paged_searches_supported":false,"base":"dc=com"}'
107109 _ ( span . attributes [ 'ldap.response.status_code' ] ) . must_equal 0
108110 _ ( span . attributes [ 'ldap.tree.base' ] ) . must_equal 'dc=com'
@@ -131,6 +133,7 @@ def modify(args)
131133 _ ( span . attributes [ 'ldap.auth.username' ] ) . must_equal 'test_user'
132134 _ ( span . attributes [ 'ldap.auth.method' ] ) . must_equal 'simple'
133135 _ ( span . attributes . values ) . wont_include 'test_password'
136+ _ ( span . attributes [ 'ldap.operation.type' ] ) . must_equal 'add'
134137 _ ( span . attributes [ 'ldap.request.message' ] ) . must_equal '{}'
135138 _ ( span . attributes [ 'ldap.tree.base' ] ) . must_equal 'dc=com'
136139 _ ( span . attributes [ 'network.protocol.name' ] ) . must_equal 'ldap'
@@ -156,6 +159,7 @@ def modify(args)
156159 _ ( span . attributes [ 'ldap.auth.username' ] ) . must_equal 'test_user'
157160 _ ( span . attributes [ 'ldap.auth.method' ] ) . must_equal 'simple'
158161 _ ( span . attributes . values ) . wont_include 'test_password'
162+ _ ( span . attributes [ 'ldap.operation.type' ] ) . must_equal 'modify'
159163 _ ( span . attributes [ 'ldap.request.message' ] ) . must_equal '{"dn":"CN=test,OU=test,DC=com","operations":[["replace","unicodePwd",["[REDACTED]"]]]}'
160164 _ ( span . attributes [ 'ldap.response.status_code' ] ) . must_equal 0
161165 _ ( span . attributes [ 'ldap.tree.base' ] ) . must_equal 'dc=com'
0 commit comments