Commit a50e526
GH 731 - review (#362)
* begining with test server_initializer_collected_params_combine_vlcs_properly
* removed GatheredParams from server_initializer_collected_params, added bools for data_dir, config_file and real_user to MultiConfig, fixing the test
* add ComputedVcl struct and its implementation, add VclType enum, to be able to push into Vcl Vector, add processing in MultiConfig, add processing in server_initializer_collected_params
* back to VirtualCommandLine type without enum, passing different types to MultiConfig and selecting them to computed_value_names on behalf of their type
* fixed data flow with Evironment and Command line arguments, need to fix config file arguments data
* changes in test to access config.file for various scenarios, add machinery to determine if real-user is specified in config-file
* try to get rid of redundant MultiConfig construction in determine_user_specific_data
* handle computed arguments in multiconfig, closure for server_initializer_collected_params, closure for keeping in node_configurator, final removal of redundant construction of multiconfig
* computing env_args and cmd_args in create_preorientation_args fn!
* fix passing test server_initializer_collected_params_can_read_parameters_from_config_file, some optimization
* fixed VclArg problem with withdrawing data from VirtualCommandline, sorted server_initializer_collected_params and determine_user_specific_data fncs, new fns value_opt for VclArg and tests for them
* finalize preparing guts for multiconfig in server_initializer_collected_params, added handling for tilde in data_directory and config_file paths
* fix windows test of real_user soecified
* renaming, adding TODOs, removing resolved TODOS
* fixing tests for windows os
* fixed on windows
* formatting
* fixed real user for windows
* removed filling specified and unspecified boxes from server_initializer_collected_params, fixed formatting for get_real_user_from_vcl
* last fixes of extract_values_and_fill_boxes, and test server_initializer_collected_params_handle_config_file_from_commandline_and_real_user_from_config_file_with_data_dir_started_by_tilde
* fixed windows test for tilde
* fix tilde test for windows
* renaming of tests and functions
* remove GatheredParams (the goal), optimizing is_user_specified in MultiConfig, dealing with comments
* remove value_opt form VclArg, remove test for that, change MultiConfig and schema (config-file no longer defaulted), change value_from_vcl to multiconfig and value_m
* resolving comments from review
* optimization of get_config_file_from_mc fn
* fixed the config_path reference bin replace_dots fn
* solving dereferencing path in replace_dots fn
* solving config_path in replace_dots fn
* fixed get_config_file_from_mc fn - optimized for readability
* formatting
* removed println, and formated
* fixed windows tests
* formatting
* workaround for actual_server_drop test
* forgotten u64 for another test in connection_termination_test.rs
* add one more request to actual_serve_drop
* remove forgotten piece of code
* fixing comments from review2
* remove redundant lifetime, and remove convertion to PathBuf
* fixing absolute path for tests of handle config-file and data directory relative
* run the actions
* merge master into GH-731
* fix ENV and CLAP Guards in tests
* fix Windows panic message for server_initializer_collected_params_handles_only_path_in_config_file_param
* formatting
* removing debugging println from accountant
* fix CLI UI issue with config file
* remove canonicalize() from test uses home_dir() from dirs crate. Produces malfuncioning behaviour
* Reformatted some code, added a comment
* formatting, fix order of Vcls in setup_reporter, add assertion to node_configurator_standard
---------
Co-authored-by: Dan Wiebe <[email protected]>1 parent bd56d3f commit a50e526
File tree
10 files changed
+1044
-217
lines changed- masq_lib/src
- multinode_integration_tests/tests
- node
- src
- accountant
- db_access_objects
- daemon
- node_configurator
- tests
10 files changed
+1044
-217
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
227 | 232 | | |
228 | 233 | | |
229 | 234 | | |
| |||
347 | 352 | | |
348 | 353 | | |
349 | 354 | | |
| 355 | + | |
350 | 356 | | |
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
354 | 368 | | |
355 | 369 | | |
356 | 370 | | |
| |||
375 | 389 | | |
376 | 390 | | |
377 | 391 | | |
378 | | - | |
379 | | - | |
| 392 | + | |
| 393 | + | |
380 | 394 | | |
381 | 395 | | |
382 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
| |||
Lines changed: 60 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
168 | 203 | | |
169 | 204 | | |
170 | 205 | | |
| |||
178 | 213 | | |
179 | 214 | | |
180 | 215 | | |
| 216 | + | |
181 | 217 | | |
182 | 218 | | |
183 | 219 | | |
184 | 220 | | |
| 221 | + | |
185 | 222 | | |
186 | 223 | | |
187 | 224 | | |
| |||
309 | 346 | | |
310 | 347 | | |
311 | 348 | | |
| 349 | + | |
312 | 350 | | |
313 | 351 | | |
314 | 352 | | |
| |||
343 | 381 | | |
344 | 382 | | |
345 | 383 | | |
346 | | - | |
| 384 | + | |
347 | 385 | | |
348 | 386 | | |
349 | 387 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4523 | 4523 | | |
4524 | 4524 | | |
4525 | 4525 | | |
4526 | | - | |
4527 | 4526 | | |
4528 | 4527 | | |
4529 | 4528 | | |
| |||
0 commit comments