Skip to content

Commit 58fceaa

Browse files
committed
🧪 tests: fix audit module testcase.
1 parent 4abfdfb commit 58fceaa

File tree

3 files changed

+24
-25
lines changed

3 files changed

+24
-25
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -253,18 +253,18 @@ it will use default value and do not raise any error to you.
253253
> The config value that you will set on the environment should combine with
254254
> prefix, component, and name which is `WORKFLOW_{component}_{name}` (Upper case).
255255
256-
| Name | Component | Default | Description |
257-
|:----------------------------|:---------:|:--------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
258-
| **REGISTRY_CALLER** | CORE | `.` | List of importable string for the call stage. |
259-
| **REGISTRY_FILTER** | CORE | `ddeutil.workflow.templates` | List of importable string for the filter template. |
260-
| **CONF_PATH** | CORE | `./conf` | The config path that keep all template `.yaml` files. |
261-
| **STAGE_DEFAULT_ID** | CORE | `false` | A flag that enable default stage ID that use for catch an execution output. |
262-
| **GENERATE_ID_SIMPLE_MODE** | CORE | `true` | A flog that enable generating ID with `md5` algorithm. |
263-
| **DEBUG_MODE** | LOG | `true` | A flag that enable logging with debug level mode. |
264-
| **TIMEZONE** | LOG | `Asia/Bangkok` | A Timezone string value that will pass to `ZoneInfo` object. |
265-
| **TRACE_HANDLERS** | LOG | `[{"type": "console"}]` | A pointer URL of trace log that use to emit log message. Now uses optimized handler by default. |
266-
| **AUDIT_CONF** | LOG | `{"type": "file", "path": "./audits"}` | A pointer URL of audit log that use to write audit metrix. |
267-
| **AUDIT_ENABLE_WRITE** | LOG | `true` | A flag that enable writing audit log after end execution in the workflow release step. |
256+
| Name | Component | Default | Description |
257+
|:----------------------------|:---------:|:---------------------------------------|:---------------------------------------------------------------------------------------|
258+
| **REGISTRY_CALLER** | CORE | `.` | List of importable string for the call stage. |
259+
| **REGISTRY_FILTER** | CORE | `ddeutil.workflow.templates` | List of importable string for the filter template. |
260+
| **CONF_PATH** | CORE | `./conf` | The config path that keep all template `.yaml` files. |
261+
| **STAGE_DEFAULT_ID** | CORE | `false` | A flag that enable default stage ID that use for catch an execution output. |
262+
| **GENERATE_ID_SIMPLE_MODE** | CORE | `true` | A flog that enable generating ID with `md5` algorithm. |
263+
| **DEBUG_MODE** | LOG | `true` | A flag that enable logging with debug level mode. |
264+
| **TIMEZONE** | LOG | `Asia/Bangkok` | A Timezone string value that will pass to `ZoneInfo` object. |
265+
| **TRACE_HANDLERS** | LOG | `[{"type": "console"}]` | A Json string of list of trace handler config data that use to emit log message. |
266+
| **AUDIT_CONF** | LOG | `{"type": "file", "path": "./audits"}` | A Json string of audit config data that use to write audit metrix. |
267+
| **AUDIT_ENABLE_WRITE** | LOG | `true` | A flag that enable writing audit log after end execution in the workflow release step. |
268268

269269
## :rocket: Deployment
270270

docs/configuration.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ The main configuration that use to dynamic changing with your objective of this
1414
application. If any configuration values do not set yet, it will use default value
1515
and do not raise any error to you.
1616

17-
| Name | Component | Default | Description |
18-
|:----------------------------|:---------:|:--------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
19-
| **REGISTRY_CALLER** | CORE | `.` | List of importable string for the call stage. |
20-
| **REGISTRY_FILTER** | CORE | `ddeutil.workflow.templates` | List of importable string for the filter template. |
21-
| **CONF_PATH** | CORE | `./conf` | The config path that keep all template `.yaml` files. |
22-
| **STAGE_DEFAULT_ID** | CORE | `false` | A flag that enable default stage ID that use for catch an execution output. |
23-
| **GENERATE_ID_SIMPLE_MODE** | CORE | `true` | A flog that enable generating ID with `md5` algorithm. |
24-
| **DEBUG_MODE** | LOG | `true` | A flag that enable logging with debug level mode. |
25-
| **TIMEZONE** | LOG | `Asia/Bangkok` | A Timezone string value that will pass to `ZoneInfo` object. |
26-
| **TRACE_HANDLERS** | LOG | `[{"type": "console"}]` | A pointer URL of trace log that use to emit log message. Now uses optimized handler by default. |
27-
| **AUDIT_CONF** | LOG | `{"type": "file", "path": "./audits"}` | A pointer URL of audit log that use to write audit metrix. |
28-
| **AUDIT_ENABLE_WRITE** | LOG | `true` | A flag that enable writing audit log after end execution in the workflow release step. |
17+
| Name | Component | Default | Description |
18+
|:----------------------------|:---------:|:---------------------------------------|:---------------------------------------------------------------------------------------|
19+
| **REGISTRY_CALLER** | CORE | `.` | List of importable string for the call stage. |
20+
| **REGISTRY_FILTER** | CORE | `ddeutil.workflow.templates` | List of importable string for the filter template. |
21+
| **CONF_PATH** | CORE | `./conf` | The config path that keep all template `.yaml` files. |
22+
| **STAGE_DEFAULT_ID** | CORE | `false` | A flag that enable default stage ID that use for catch an execution output. |
23+
| **GENERATE_ID_SIMPLE_MODE** | CORE | `true` | A flog that enable generating ID with `md5` algorithm. |
24+
| **DEBUG_MODE** | LOG | `true` | A flag that enable logging with debug level mode. |
25+
| **TIMEZONE** | LOG | `Asia/Bangkok` | A Timezone string value that will pass to `ZoneInfo` object. |
26+
| **TRACE_HANDLERS** | LOG | `[{"type": "console"}]` | A Json string of list of trace handler config data that use to emit log message. |
27+
| **AUDIT_CONF** | LOG | `{"type": "file", "path": "./audits"}` | A Json string of audit config data that use to write audit metrix. |
28+
| **AUDIT_ENABLE_WRITE** | LOG | `true` | A flag that enable writing audit log after end execution in the workflow release step. |
2929

3030
## Execution Override
3131

tests/test_audits.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ def test_base_audit():
5252
)
5353
assert log.model_dump() == {
5454
"type": "base",
55-
"logging_name": "ddeutil.workflow",
5655
"extras": {"foo": "bar", "datetime": datetime(2024, 1, 1, 1, 15)},
5756
}
5857

0 commit comments

Comments
 (0)