mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
lib:ldb:tests: Fix code spelling
Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Apr 4 08:30:28 UTC 2023 on atb-devel-224
This commit is contained in:
parent
a8c571e983
commit
925b026a23
@ -52,7 +52,7 @@ struct ldbtest_ctx {
|
||||
*
|
||||
* This test checks the current behaviour of the function, however
|
||||
* this is not in a public ABI and many of the tested behaviours are
|
||||
* not ideal. If the behaviour is deliberatly improved, this test
|
||||
* not ideal. If the behaviour is deliberately improved, this test
|
||||
* should be updated without worry to the new better behaviour.
|
||||
*
|
||||
* In particular the test is particularly to ensure the current
|
||||
@ -198,7 +198,7 @@ static void test_filter_attrs_two_attr_matched_attrs(void **state)
|
||||
|
||||
struct ldb_message *filtered_msg = ldb_msg_new(ctx);
|
||||
|
||||
/* deliberatly the other order */
|
||||
/* deliberately the other order */
|
||||
const char *attrs[] = {"bar", "foo", NULL};
|
||||
|
||||
uint8_t value1[] = "The value.......end";
|
||||
@ -273,7 +273,7 @@ static void test_filter_attrs_two_attr_matched_one_attr(void **state)
|
||||
|
||||
struct ldb_message *filtered_msg = ldb_msg_new(ctx);
|
||||
|
||||
/* deliberatly the other order */
|
||||
/* deliberately the other order */
|
||||
const char *attrs[] = {"bar", NULL};
|
||||
|
||||
uint8_t value1[] = "The value.......end";
|
||||
@ -342,7 +342,7 @@ static void test_filter_attrs_two_dup_attr_matched_one_attr(void **state)
|
||||
|
||||
struct ldb_message *filtered_msg = ldb_msg_new(ctx);
|
||||
|
||||
/* deliberatly the other order */
|
||||
/* deliberately the other order */
|
||||
const char *attrs[] = {"bar", NULL};
|
||||
|
||||
uint8_t value1[] = "The value.......end";
|
||||
@ -739,7 +739,7 @@ static void test_filter_attrs_two_attr_matched_star(void **state)
|
||||
/*
|
||||
* Test against a record with only one attribute, matching the * in
|
||||
* the list, but without the DN being pre-filled. Fails due to need
|
||||
* to contstruct the distinguishedName
|
||||
* to construct the distinguishedName
|
||||
*/
|
||||
static void test_filter_attrs_one_attr_matched_star_no_dn(void **state)
|
||||
{
|
||||
|
@ -37,9 +37,9 @@
|
||||
* A KV module is expected to have the following behaviour
|
||||
*
|
||||
* - A transaction must be open to perform any read, write or delete operation
|
||||
* - Writes and Deletes should not be visible until a transaction is commited
|
||||
* - Writes and Deletes should not be visible until a transaction is committed
|
||||
* - Nested transactions are not permitted
|
||||
* - transactions can be rolled back and commited.
|
||||
* - transactions can be rolled back and committed.
|
||||
* - supports iteration over all records in the database
|
||||
* - supports the update_in_iterate operation allowing entries to be
|
||||
* re-keyed.
|
||||
@ -1075,7 +1075,7 @@ static void test_write_transaction_isolation(void **state)
|
||||
const char *VAL2 = "VALUE02";
|
||||
|
||||
/*
|
||||
* Pipes etc to co-ordinate the processes
|
||||
* Pipes etc to coordinate the processes
|
||||
*/
|
||||
int to_child[2];
|
||||
int to_parent[2];
|
||||
@ -1222,7 +1222,7 @@ static void test_write_transaction_isolation(void **state)
|
||||
}
|
||||
|
||||
/*
|
||||
* Wait for the transaction to be commited
|
||||
* Wait for the transaction to be committed
|
||||
*/
|
||||
ret = read(to_child[0], buf, 2);
|
||||
if (ret != 2) {
|
||||
@ -1392,7 +1392,7 @@ static void test_delete_transaction_isolation(void **state)
|
||||
const char *VAL2 = "VALUE02";
|
||||
|
||||
/*
|
||||
* Pipes etc to co-ordinate the processes
|
||||
* Pipes etc to coordinate the processes
|
||||
*/
|
||||
int to_child[2];
|
||||
int to_parent[2];
|
||||
@ -1550,7 +1550,7 @@ static void test_delete_transaction_isolation(void **state)
|
||||
}
|
||||
|
||||
/*
|
||||
* Wait for the transaction to be commited
|
||||
* Wait for the transaction to be committed
|
||||
*/
|
||||
ret = read(to_child[0], buf, 2);
|
||||
if (ret != 2) {
|
||||
|
@ -224,7 +224,7 @@ static void test_free_list_no_read_lock(void **state)
|
||||
const char *KEY1 = "KEY01";
|
||||
|
||||
/*
|
||||
* Pipes etc to co-ordinate the processes
|
||||
* Pipes etc to coordinate the processes
|
||||
*/
|
||||
int to_child[2];
|
||||
int to_parent[2];
|
||||
@ -367,7 +367,7 @@ static void test_free_list_read_lock(void **state)
|
||||
const char *KEY1 = "KEY01";
|
||||
|
||||
/*
|
||||
* Pipes etc to co-ordinate the processes
|
||||
* Pipes etc to coordinate the processes
|
||||
*/
|
||||
int to_child[2];
|
||||
int to_parent[2];
|
||||
@ -516,7 +516,7 @@ static void test_free_list_stale_reader(void **state)
|
||||
const char *KEY1 = "KEY01";
|
||||
|
||||
/*
|
||||
* Pipes etc to co-ordinate the processes
|
||||
* Pipes etc to coordinate the processes
|
||||
*/
|
||||
int to_child[2];
|
||||
int to_parent[2];
|
||||
|
@ -2599,7 +2599,7 @@ static int test_ldb_callback_modify_during_search_callback1(struct ldb_request *
|
||||
msg = ldb_msg_new(tmp_ctx);
|
||||
assert_non_null(msg);
|
||||
|
||||
/* We deliberatly use ou= not cn= here */
|
||||
/* We deliberately use ou= not cn= here */
|
||||
msg->dn = ldb_dn_new_fmt(msg,
|
||||
ctx->test_ctx->ldb,
|
||||
"ou=test_search_cn_extra,%s",
|
||||
|
@ -2110,7 +2110,7 @@ class AddModifyTests(LdbBaseTest):
|
||||
"name": b"Admins",
|
||||
"x": "z", "y": "a",
|
||||
"objectUUID": b"0123456789abcde2"})
|
||||
self.fail("Should have failed adding dupliate entry")
|
||||
self.fail("Should have failed adding duplicate entry")
|
||||
except ldb.LdbError as err:
|
||||
enum = err.args[0]
|
||||
self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
|
||||
@ -2304,7 +2304,7 @@ class IndexedAddModifyTests(AddModifyTests):
|
||||
"name": b"Admins",
|
||||
"x": "z", "y": "a",
|
||||
"objectUUID": b"0123456789abcdef"})
|
||||
self.fail("Should have failed adding dupliate GUID")
|
||||
self.fail("Should have failed adding duplicate GUID")
|
||||
except ldb.LdbError as err:
|
||||
enum = err.args[0]
|
||||
self.assertEqual(enum, ldb.ERR_CONSTRAINT_VIOLATION)
|
||||
@ -2319,7 +2319,7 @@ class IndexedAddModifyTests(AddModifyTests):
|
||||
"name": b"Admins",
|
||||
"x": "z", "y": "a",
|
||||
"objectUUID": b"a123456789abcdef"})
|
||||
self.fail("Should have failed adding dupliate GUID")
|
||||
self.fail("Should have failed adding duplicate GUID")
|
||||
except ldb.LdbError as err:
|
||||
enum = err.args[0]
|
||||
self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
|
||||
@ -2334,7 +2334,7 @@ class IndexedAddModifyTests(AddModifyTests):
|
||||
"name": b"Admins",
|
||||
"x": "z", "y": "a",
|
||||
"objectUUID": b"aaa3456789abcdef"})
|
||||
self.fail("Should have failed adding dupliate DN")
|
||||
self.fail("Should have failed adding duplicate DN")
|
||||
except ldb.LdbError as err:
|
||||
enum = err.args[0]
|
||||
self.assertEqual(enum, ldb.ERR_ENTRY_ALREADY_EXISTS)
|
||||
|
@ -412,7 +412,7 @@ seealso: cn=All Staff,ou=Groups,o=University of Michigan,c=TEST
|
||||
homepostaladdress: 123 Anystreet $ Ann Arbor, MI 48104
|
||||
mail: uham@mail.alumni.example.com
|
||||
description: a long attribute name, longer than 128 bytes so that we
|
||||
trigger sign extension problems in tdb_pack, no thats not long enough
|
||||
trigger sign extension problems in tdb_pack, no that's not long enough
|
||||
yet, maybe this is. I'll just keep going till it triggers the error
|
||||
homephone: +1 313 555 8421
|
||||
pager: +1 313 555 2844
|
||||
|
@ -136,7 +136,7 @@ static int extended_dn_read_ID(struct ldb_context *ldb, void *mem_ctx,
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* write out (resued for both HEX and clear for now) */
|
||||
/* write out (reused for both HEX and clear for now) */
|
||||
static int extended_dn_write_ID(struct ldb_context *ldb, void *mem_ctx,
|
||||
const struct ldb_val *in, struct ldb_val *out)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user