Skip to content

Commit 06b8ec5

Browse files
committed
feat: display canaille logs
1 parent 7e880be commit 06b8ec5

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
Versions follow [Semantic Versioning](https://semver.org/>) (<major>.<minor>.<patch>).
99

10+
### Added
11+
12+
- Display Canaille debug logs by default.
13+
1014
## [0.0.6] - 2024-01-24
1115

1216
### Fixed

doc/resource-servers.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ request against the identity server token introspection endpoint.
1515
)
1616
assert res.status_code == 200
1717
18+
1819
def test_invalid_token_auth(iam_server, testclient):
1920
res = testclient.get(
2021
"/protected-resource", headers={"Authorization": "Bearer invalid"}

pytest_iam/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def consent(self, user, client=None):
136136

137137

138138
@pytest.fixture(scope="session")
139-
def iam_configuration() -> Dict[str, Any]:
139+
def iam_configuration(tmp_path_factory) -> Dict[str, Any]:
140140
"""Fixture for editing the configuration of
141141
:meth:`~pytest_iam.iam_server`."""
142142

@@ -158,6 +158,10 @@ def iam_configuration() -> Dict[str, Any]:
158158
"PERMISSIONS": ["use_oidc", "manage_oidc"],
159159
}
160160
},
161+
"LOGGING": {
162+
"LEVEL": "DEBUG",
163+
"PATH": tmp_path_factory.mktemp("logs") / "canaille.log",
164+
},
161165
}
162166

163167

0 commit comments

Comments
 (0)