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 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
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";
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";
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";
/*
* 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)
{
* 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.
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];
}
/*
- * Wait for the transaction to be commited
+ * Wait for the transaction to be committed
*/
ret = read(to_child[0], buf, 2);
if (ret != 2) {
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];
}
/*
- * Wait for the transaction to be commited
+ * Wait for the transaction to be committed
*/
ret = read(to_child[0], buf, 2);
if (ret != 2) {
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];
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];
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];
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",
"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)
"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)
"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)
"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)
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
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)
{