feat(admin): 添加用户管理相关文件
添加用户管理视图、API和状态管理文件
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
rules:
|
||||
- name: database_connection_failed
|
||||
pattern: "Cannot create poolable connection factory|Connection refused|Unable to acquire JDBC Connection"
|
||||
category: config
|
||||
action: check_h2_config
|
||||
auto_fix: true
|
||||
priority: 1
|
||||
|
||||
- name: port_already_in_use
|
||||
pattern: "Port .* already in use|Address already in use"
|
||||
category: config
|
||||
action: find_available_port
|
||||
auto_fix: true
|
||||
priority: 1
|
||||
|
||||
- name: environment_variable_missing
|
||||
pattern: "Could not resolve placeholder|Environment variable .* not found"
|
||||
category: config
|
||||
action: use_default_value
|
||||
auto_fix: true
|
||||
priority: 2
|
||||
|
||||
- name: flyway_migration_failed
|
||||
pattern: "Flyway migration failed|Validation failed for migration"
|
||||
category: config
|
||||
action: clean_and_re_migrate
|
||||
auto_fix: true
|
||||
priority: 1
|
||||
|
||||
- name: test_data_missing
|
||||
pattern: "No data found|Empty result set|Expected .* but was null"
|
||||
category: data
|
||||
action: init_test_data
|
||||
auto_fix: true
|
||||
priority: 2
|
||||
|
||||
- name: unique_constraint_violation
|
||||
pattern: "Unique constraint violation|Duplicate entry|PRIMARY KEY constraint"
|
||||
category: data
|
||||
action: generate_unique_identifier
|
||||
auto_fix: true
|
||||
priority: 2
|
||||
|
||||
- name: foreign_key_constraint_failed
|
||||
pattern: "Foreign key constraint|Cannot delete or update a parent row"
|
||||
category: data
|
||||
action: reorder_data_insertion
|
||||
auto_fix: true
|
||||
priority: 3
|
||||
|
||||
- name: null_pointer_exception
|
||||
pattern: "NullPointerException"
|
||||
category: code
|
||||
action: add_null_check
|
||||
auto_fix: true
|
||||
priority: 3
|
||||
conditions:
|
||||
in_test_code_only: true
|
||||
|
||||
- name: type_conversion_error
|
||||
pattern: "ClassCastException|Cannot cast|NumberFormatException"
|
||||
category: code
|
||||
action: add_type_conversion
|
||||
auto_fix: true
|
||||
priority: 3
|
||||
conditions:
|
||||
in_test_code_only: true
|
||||
|
||||
- name: assertion_failed
|
||||
pattern: "AssertionError|Expected:|but was:"
|
||||
category: test
|
||||
action: analyze_and_adjust
|
||||
auto_fix: false
|
||||
generate_report: true
|
||||
priority: 5
|
||||
|
||||
- name: test_timeout
|
||||
pattern: "test timed out|Timeout.*milliseconds"
|
||||
category: test
|
||||
action: increase_timeout
|
||||
auto_fix: true
|
||||
priority: 3
|
||||
|
||||
- name: service_unavailable
|
||||
pattern: "Service Unavailable|Connection timed out|SocketTimeoutException"
|
||||
category: test
|
||||
action: add_wait_logic
|
||||
auto_fix: true
|
||||
priority: 2
|
||||
Reference in New Issue
Block a user