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
|
||||
@@ -0,0 +1,50 @@
|
||||
api:
|
||||
timeout: 1800
|
||||
retry: 3
|
||||
modules:
|
||||
- everything-is-suitable-app
|
||||
- everything-is-suitable-biz
|
||||
- everything-is-suitable-sys
|
||||
- everything-is-suitable-client
|
||||
- everything-is-suitable-gateway
|
||||
- everything-is-suitable-common
|
||||
|
||||
frontend:
|
||||
timeout: 1200
|
||||
retry: 2
|
||||
admin:
|
||||
enabled: true
|
||||
base_url: http://localhost:8080
|
||||
uniapp:
|
||||
enabled: true
|
||||
base_url: http://localhost:8080
|
||||
|
||||
e2e:
|
||||
timeout: 2400
|
||||
retry: 2
|
||||
browsers:
|
||||
- chromium
|
||||
headless: true
|
||||
video: true
|
||||
screenshot: on-failure
|
||||
|
||||
auto_fix:
|
||||
enabled: true
|
||||
max_attempts: 3
|
||||
rules_file: config/auto-fix-rules.yml
|
||||
log_file: logs/auto-fix.log
|
||||
|
||||
database:
|
||||
type: h2
|
||||
mode: memory
|
||||
init_script: scripts/init-test-data.sql
|
||||
cleanup: true
|
||||
|
||||
report:
|
||||
output_dir: test-reports
|
||||
formats:
|
||||
- json
|
||||
- xml
|
||||
- html
|
||||
- allure
|
||||
retention_days: 30
|
||||
Reference in New Issue
Block a user