goal: allow ConfigJSONOverride in local network templates#5017
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5017 +/- ##
=======================================
Coverage 53.62% 53.63%
=======================================
Files 432 432
Lines 54060 54065 +5
=======================================
+ Hits 28991 28999 +8
+ Misses 22824 22821 -3
Partials 2245 2245
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
brianolson
left a comment
There was a problem hiding this comment.
Go code looks fine, I wrote a unit test that I sent a PR about to add to this.
What's the implication of the mkconf.py change?
| "Name": "NPNode%d" % n, | ||
| "Wallets": [], | ||
| "DeadlockDetection": -1, | ||
| "ConfigJSONOverride": '{"ForceFetchTransactions":true}' |
There was a problem hiding this comment.
This is what the change is really about. So, why this?
There was a problem hiding this comment.
I used mkconf to generate local topologies for some tests, and decided to leave ConfigJSONOverride example there. I can remove if it does not make much sense having it here.
|
Nice. This is semi related to a "profile" feature we've been working on #5069 |
|
I think the mkconf.py change is a little weird as an "example" because it has concrete consequences that aren't necessarily intended? |
|
fair, thank you, applied. |
Co-authored-by: Shant Karakashian <55754073+algonautshant@users.noreply.github.com>
algonautshant
left a comment
There was a problem hiding this comment.
Looks fine. Very useful.
| } | ||
|
|
||
| // TestJsonOverlay ensures that encoding/json will only clobber fields present in the json and leave other fields unchanged | ||
| func TestJsonOverlay(t *testing.T) { |
There was a problem hiding this comment.
What is the purpose of this test? It looks like it is a json and dec test, and not a netdeploy test.
Ideally, the test should test netdeploy/.
Summary
Allow ConfigJSONOverride in
goal network createtemplates similarly tonetgoal.Test Plan
Tested manually