-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.example.ini
More file actions
114 lines (92 loc) · 4.37 KB
/
config.example.ini
File metadata and controls
114 lines (92 loc) · 4.37 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
[wallet]
# Wallet Instance Configuration
wallet_id = wallet_cli_instance
wallet_name = CEN TC Wallet CLI
# Admissible values for wallet_version are : V1_0, V1_3
wallet_version = V1_0
# Port for the local Wallet Provider federation metadata server.
port = 3002
# Storage Configuration
wallet_attestations_storage_path = ./data/attestation
credentials_storage_path = ./data/credentials # each credential within a file named using its credential type
backup_storage_path = ./data/backup
[issuer]
# Port for the local Mocked Credential Issuer federation metadata server.
port = 3003
[trust]
# eIDAS Trusted Lists
eidas_trusted_lists[] = [array of urls] # Optional
# X.509 CA Configuration
ca_cert_path = ./data/trust_anchor/localhost # single cert or chain per each pem file
certificate_subject="CN=localhost, O=myOrg, OU=myUnit, C=IT, ST=Roma, L=Roma, E=example@email.it"
# OpenID Federation Configuration
# Optional. List of URLs of Federation Trust Anchors to trust. If not set, no Federation TA will be trusted and federation-based tests will be skipped.
federation_trust_anchors[] = [array of urls]
federation_trust_anchors_jwks_path = ./data/trust_anchor/localhost # each named with the related TA name
[issuance]
url = https://issuer.example
# Optional: override the directory where issuance test specs are discovered
# tests_dir = ./tests/conformance/issuance
# Save the received credential to disk after test issuance (if supported by the flow)
# The credential will be saved in the path specified in wallet->credentials_storage_path
save_credential = false
# List of credentialConfigurationIds to test (used by test suite)
# Example:
credential_types[] = dc_sd_jwt_EuropeanDisabilityCard
# Optional: enable credential offer resolution if present
# The credential_issuer field in the response will override the issuance url.
# credential_offer_uri=https://offer.example
[presentation]
# Optional: override the directory where presentation test specs are discovered
# tests_dir = ./tests/conformance/presentation
# Optional: RP Verifier URL in case endpoint metadata is different from the authorize_request_url domain
# verifier = https://rp-example.example
# URL to initiate the presentation request, metadata will be fetched from client_id domain if [verifier] is not set
authorize_request_url = https://rp-example.example/auth?client_id=https://rp-example.example&request_uri=https://rp-example.example/auth/request/2f4c8d91-7b35-4e2a-9c1d-5a6f8b3e2d10&state=2f4c8d91-7b35-4e2a-9c1d-5a6f8b3e2d10
[network]
# Network Configuration
# Optional. Default value: 10
timeout = 10
# Optional. Default value: 10
max_retries = 2
# Optional. Default value: CEN-TC-Wallet-CLI/<wct_version>
user_agent = CEN-TC-Wallet-CLI/1.0.0
# Optional. Set to false to disable TLS certificate verification (e.g. self-signed certs on local services).
# WARNING: Never use false in production — it disables all TLS trust checks for HTTP calls.
# tls_reject_unauthorized = false
[trust_anchor]
# Trust Anchor Server Configuration
port = 3001
# Trust Anchor Server Certificates dir
# Directory that contains the certificates for the trust anchor's HTTPS server.
# Expected filenames: server.cert.pem and server.key.pem (auto-generated if absent).
tls_cert_dir = ./data/backup
[logging]
# Logging Configuration
log_level = INFO
log_file = ./data/logs/test_run.log
log_format = [%(tag)]: %(message)
# Optional: override the format used when writing to log_file (defaults to log_format)
# Available placeholders: %(date) %(utc) %(tag) %(levelname) %(message)
# log_file_format = %(date) - [%(tag)]: %(message)
[testing]
# Test Configuration
# Pattern for test spec files (glob pattern)
spec_pattern = **/*.spec.ts
# Pattern for custom step files (glob pattern, excludes *.spec.ts)
custom_step_pattern = **/*.ts
[steps_mapping]
# Step Mapping Configuration
# Maps test names to their custom step implementation directories.
#
# Specific mappings:
# Key = Test flow name passed to defineIssuanceTest() / definePresentationTest()
# Value = Relative path to directory containing custom step implementations
#
# How it works:
# - Steps are first searched in the specific mapped directory
# - Missing steps are automatically searched in default src/step and that implementations are used
#
# Example: Map specific tests to their custom step directories
# HappyFlowIssuance = tests/steps/wrong_authorize/issuance
# HappyFlowPresentation = tests/steps/fail_redirect/presentation