Skip to content

Commit

Permalink
Update config tests
Browse files Browse the repository at this point in the history
  • Loading branch information
george-dorin committed Sep 15, 2023
1 parent 39acd32 commit 00cc2b9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
16 changes: 8 additions & 8 deletions core/services/chainlink/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ func TestConfig_Marshal(t *testing.T) {

full.TelemetryIngressEndpoint = toml.TelemetryIngressEndpoints{
ptr(toml.TelemetryIngressEndpoint{
Network: ptr("test-network"),
ChainID: ptr("123123123"),
ServerPubKey: ptr("test-pub-key-111551111-test-network"),
URL: mustURL("http://localhost-123123123-test-network:9000"),
Network: ptr("EVM"),
ChainID: ptr("1"),
ServerPubKey: ptr("test-pub-key"),
URL: mustURL("https://prom.test"),
}),
}
full.Log = toml.Log{
Expand Down Expand Up @@ -697,10 +697,10 @@ SendTimeout = '5s'
UseBatchSend = true
`},
{"TelemetryIngressEndpoint", Config{Core: toml.Core{TelemetryIngressEndpoint: full.TelemetryIngressEndpoint}}, `[[TelemetryIngressEndpoint]]
Network = 'test-network'
ChainID = '123123123'
URL = 'http://localhost-123123123-test-network:9000'
ServerPubKey = 'test-pub-key-111551111-test-network'
Network = 'EVM'
ChainID = '1'
URL = 'https://prom.test'
ServerPubKey = 'test-pub-key'
`},

{"Log", Config{Core: toml.Core{Log: full.Log}}, `[Log]
Expand Down
6 changes: 0 additions & 6 deletions core/services/chainlink/testdata/config-empty-effective.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ SendInterval = '500ms'
SendTimeout = '10s'
UseBatchSend = true

[[TelemetryIngressEndpoint]]
Network = ''
ChainID = ''
ServerPubKey = ''
URL = ''

[AuditLogger]
Enabled = false
ForwardToUrl = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ SendInterval = '500ms'
SendTimeout = '10s'
UseBatchSend = true

[[TelemetryIngressEndpoint]]
Network = ''
ChainID = ''
ServerPubKey = ''
URL = ''

[AuditLogger]
Enabled = true
ForwardToUrl = 'http://localhost:9898'
Expand Down
2 changes: 1 addition & 1 deletion core/web/resolver/testdata/config-full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ UseBatchSend = true
[[TelemetryIngressEndpoint]]
Network = 'EVM'
ChainID = '1'
ServerPubKey = 'test-pub-key'
URL = 'https://prom.test'
ServerPubKey = 'test-pub-key'

[AuditLogger]
Enabled = true
Expand Down

0 comments on commit 00cc2b9

Please sign in to comment.