Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ratushnyy committed Jan 11, 2024
1 parent 7cb5fdf commit 2abf16b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async def get_secret_content(ops_test, secret_id) -> Dict[str, str]:
return data[secret_id]["content"]["Data"]


def aduit_log_line_sanity_check(entry) -> bool:
def audit_log_line_sanity_check(entry) -> bool:
fields = ["atype", "ts", "local", "remote", "users", "roles", "param", "result"]
for field in fields:
if entry.get(field) is None:
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/test_charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
APP_NAME,
PORT,
UNIT_IDS,
aduit_log_line_sanity_check,
audit_log_line_sanity_check,
count_primaries,
find_unit,
get_leader_id,
Expand Down Expand Up @@ -335,4 +335,4 @@ async def test_audit_log(ops_test: OpsTest) -> None:
continue
item = json.loads(line)
# basic sanity check
assert aduit_log_line_sanity_check(item), "Audit sanity log check failed for first line"
assert audit_log_line_sanity_check(item), "Audit sanity log check failed for first line"

0 comments on commit 2abf16b

Please sign in to comment.