forked from Axionvera/axionvera-network
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-config.yml
More file actions
145 lines (123 loc) · 3.45 KB
/
Copy pathtest-config.yml
File metadata and controls
145 lines (123 loc) · 3.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
name: Axionvera Network Test Configuration
env:
# Test Environment Configuration
TEST_NODE_HOST: localhost
TEST_NODE_PORT: "50051"
TEST_DATABASE_URL: "postgresql://testuser:testpass@localhost:5432/testdb"
# Test Timeout Configuration
TEST_TIMEOUT: "300000" # 5 minutes
GLOBAL_TIMEOUT: "900000" # 15 minutes
# Test Data Configuration
DEFAULT_DEPOSIT_AMOUNT: "1000"
DEFAULT_WITHDRAW_AMOUNT: "500"
DEFAULT_REWARD_DISTRIBUTION: "500000"
MIN_STAKE_AMOUNT: "100"
# User Configuration
TEST_USER_COUNT: "5"
TEST_USERS: |
["GALICE1234567890ABCDEFGHIJ1234567890ABCDEFGHIJKL",
"GBOB9876543210ABCDEFGHIJKLMNOPQRSTUVWXYZ0987654321",
"GCHARLIE111222333444555666777888999000111222333444",
"GDAVE444555666777888999000111222333444555666777888",
"GEVE999000111222333444555666777888999000111222333"]
# Contract Configuration
CONTRACT_ADDRESS: "CAXIONVERA001"
ADMIN_ADDRESS: "GBA_ADMIN0000000000000000000000000000000000000000000000"
# Token Configuration
DEPOSIT_TOKEN_ADDRESS: "CDEPOSIT123"
REWARD_TOKEN_ADDRESS: "CREWARD456"
# Governance Configuration
GOVERNANCE_THRESHOLD: "50"
VOTING_PERIOD: "86400"
EMERGENCY_DEADLINE: "3600"
# Test Coverage Thresholds
coverage:
minimum: "85%"
minimum_by_component:
core_protocol: "90%"
reward_distribution: "85%"
staking_operations: "80%"
treasury_actions: "85%"
governance: "90%"
# Test Reporting Configuration
reporting:
format: "json"
output_path: "test-results.json"
coverage_path: "test-coverage.json"
include_screenshots: true
include_logs: true
# Retries Configuration
retries:
max_attempts: 3
delay_ms: "1000"
backoff_multiplier: "2"
# Performance Thresholds
performance:
max_test_duration: "300000" # 5 minutes
max_memory_usage_mb: "512"
expected_throughput: "10_requests_per_second"
# Security Testing
security:
enable_penetration_tests: "false"
enable_rate_limit_tests: "true"
enable_auth_bypass_tests: "true"
enable_sql_injection_tests: "true"
# Compliance Requirements
compliance:
audit_all_transactions: "true"
log_transaction_details: "true"
maintain_audit_trail: "true"
data_encryption: "aes256"
# Environment-specific overrides
environments:
development:
host: "localhost"
port: "50051"
debug: "true"
verbose_logging: "true"
staging:
host: "staging.axionvera.network"
port: "443"
debug: "false"
verbose_logging: "false"
production:
host: "api.axionvera.network"
port: "443"
debug: "false"
verbose_logging: "false"
health_check_timeout: "10000"
# Test Data Generation
test_data:
generate_random_users: "true"
generate_realistic_balances: "true"
include_edge_cases: "true"
corrupt_data_percentage: "5"
# Failure Handling
failure_handling:
continue_on_failure: "false"
notify_on_failure: "true"
auto_retry_failed_tests: "true"
capture_failed_scenarios: "true"
# Artifact Management
artifacts:
test_results:
retention_days: 90
compression: "true"
encrypt: "true"
screenshots:
capture_on_failure: "true"
directory: "test-artifacts/screenshots"
format: "png"
logs:
capture_system_logs: "true"
capture_application_logs: "true"
directory: "test-artifacts/logs"
format: "log"
# Performance Monitoring
monitoring:
enable_performance_metrics: "true"
track_response_times: "true"
track_memory_usage: "true"
track_error_rates: "true"
alert_on_slow_tests: "true"
alert_on_high_error_rate: "true"