Commit 948d3d2
committed
Round 24 fixes: chain JSON parse error, contain log-file import side effect
- _load_permission_data now reports both JSON and YAML parse errors
in the ValueError message. A user feeding a JSON file with a syntax
error was previously shown only the downstream YAML error, which
described the file in YAML-grammar terms and was confusing.
- TestPermissionFileParsing.setUpClass chdir's to ROOT around the
exec_module call. The module's top-level dictConfig writes
provider-kubeconfig.log via RotatingFileHandler with a relative
path; the log now lands in the gitignored location regardless of
where pytest was invoked from.1 parent 12b0c4d commit 948d3d2
2 files changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
96 | 104 | | |
97 | 105 | | |
98 | 106 | | |
| |||
0 commit comments